perf: separate element by file
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
93b138e7c4
commit
6af9b5493e
|
@ -0,0 +1,20 @@
|
||||||
|
import { QInput } from 'quasar';
|
||||||
|
// import setDefault from './setDefault';
|
||||||
|
QInput.props.outlined = {
|
||||||
|
type: QInput.props.outlined,
|
||||||
|
default: false,
|
||||||
|
};
|
||||||
|
QInput.props.dense = {
|
||||||
|
type: QInput.props.dense,
|
||||||
|
default: false,
|
||||||
|
};
|
||||||
|
QInput.props.stackLabel = {
|
||||||
|
type: QInput.props.stackLabel,
|
||||||
|
default: true,
|
||||||
|
};
|
||||||
|
QInput.props.hideBottomSpace = {
|
||||||
|
type: QInput.props.hideBottomSpace,
|
||||||
|
default: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
// setDefault(QInput, 'outlined', false);
|
|
@ -0,0 +1,14 @@
|
||||||
|
import setDefault from './setDefault';
|
||||||
|
import { QSelect } from 'quasar';
|
||||||
|
|
||||||
|
QSelect.props.optionLabel = {
|
||||||
|
type: QSelect.props.optionLabel,
|
||||||
|
default: 'name',
|
||||||
|
};
|
||||||
|
QSelect.props.optionValue = {
|
||||||
|
type: QSelect.props.optionValue,
|
||||||
|
default: 'id',
|
||||||
|
};
|
||||||
|
|
||||||
|
// setDefault(QSelect, 'optionValue', 'id');
|
||||||
|
// setDefault(QSelect, 'optionLabel', 'name');
|
|
@ -1,34 +1,9 @@
|
||||||
import { QTable } from 'quasar';
|
import { QTable } from 'quasar';
|
||||||
import { QInput } from 'quasar';
|
|
||||||
import setDefault from './setDefault';
|
import setDefault from './setDefault';
|
||||||
import { QSelect } from 'quasar';
|
|
||||||
|
|
||||||
setDefault(QTable, 'pagination', { rowsPerPage: 0 });
|
setDefault(QTable, 'pagination', { rowsPerPage: 0 });
|
||||||
setDefault(QTable, 'hidePagination', true);
|
setDefault(QTable, 'hidePagination', true);
|
||||||
QInput.props.outlined = {
|
|
||||||
type: QInput.props.outlined,
|
|
||||||
default: false,
|
|
||||||
};
|
|
||||||
QInput.props.dense = {
|
|
||||||
type: QInput.props.dense,
|
|
||||||
default: false,
|
|
||||||
};
|
|
||||||
QInput.props.stackLabel = {
|
|
||||||
type: QInput.props.stackLabel,
|
|
||||||
default: true,
|
|
||||||
};
|
|
||||||
QSelect.props.optionLabel = {
|
|
||||||
type: QSelect.props.optionLabel,
|
|
||||||
default: 'name',
|
|
||||||
};
|
|
||||||
QSelect.props.optionValue = {
|
|
||||||
type: QSelect.props.optionValue,
|
|
||||||
default: 'id',
|
|
||||||
};
|
|
||||||
QInput.props.hideBottomSpace = {
|
|
||||||
type: QInput.props.hideBottomSpace,
|
|
||||||
default: true,
|
|
||||||
};
|
|
||||||
QTable.props.columns = {
|
QTable.props.columns = {
|
||||||
type: QTable.props.columns,
|
type: QTable.props.columns,
|
||||||
align: 'right',
|
align: 'right',
|
||||||
|
@ -38,7 +13,6 @@ QTable.props.noDataLabel = {
|
||||||
default: 'asd',
|
default: 'asd',
|
||||||
};
|
};
|
||||||
|
|
||||||
setDefault(QInput, 'outlined', false);
|
|
||||||
// setDefault(QTable, "noDataLabel", t('globalfs.noResults'));
|
// setDefault(QTable, "noDataLabel", t('globalfs.noResults'));
|
||||||
setDefault(QTable, 'gridHeader', true);
|
setDefault(QTable, 'gridHeader', true);
|
||||||
setDefault(QTable, 'color', 'red-8');
|
setDefault(QTable, 'color', 'red-8');
|
||||||
|
@ -47,5 +21,3 @@ setDefault(QTable, 'rowKey', 'id');
|
||||||
// setDefault(QTable, 'columns', (data) => {
|
// setDefault(QTable, 'columns', (data) => {
|
||||||
// console.log(this);
|
// console.log(this);
|
||||||
// });
|
// });
|
||||||
// setDefault(QSelect, 'optionValue', 'id');
|
|
||||||
// setDefault(QSelect, 'optionLabel', 'name');
|
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
export * from './defaults/qTable';
|
export * from './defaults/qTable';
|
||||||
|
export * from './defaults/qInput';
|
||||||
|
export * from './defaults/qSelect';
|
||||||
|
|
Loading…
Reference in New Issue