vxe-table 4.6.5 → 4.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/button/style.css +6 -6
- package/es/checkbox/src/group.js +7 -1
- package/es/custom/src/hook.js +1 -0
- package/es/custom/src/panel.js +207 -45
- package/es/custom/style.css +326 -80
- package/es/export/src/export-panel.js +1 -1
- package/es/export/src/import-panel.js +1 -1
- package/es/icon/style.css +1 -1
- package/es/input/style.css +0 -1
- package/es/loading/src/loading.js +1 -1
- package/es/loading/style.css +1 -1
- package/es/locale/lang/en-US.js +18 -7
- package/es/locale/lang/es-ES.js +18 -7
- package/es/locale/lang/ja-JP.js +18 -6
- package/es/locale/lang/pt-BR.js +18 -7
- package/es/locale/lang/zh-CN.js +18 -7
- package/es/locale/lang/zh-TC.js +18 -7
- package/es/modal/src/modal.js +1 -1
- package/es/radio/src/group.js +7 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/columnInfo.js +3 -3
- package/es/table/src/table.js +60 -36
- package/es/table/style.css +4 -4
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/style.css +1 -1
- package/es/vxe-button/style.css +6 -6
- package/es/vxe-input/style.css +0 -1
- package/es/vxe-loading/style.css +1 -1
- package/es/vxe-table/style.css +4 -4
- package/es/vxe-table-custom-module/style.css +326 -80
- package/lib/button/style/style.css +6 -6
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/src/group.js +7 -1
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/custom/src/hook.js +1 -0
- package/lib/custom/src/hook.min.js +1 -1
- package/lib/custom/src/panel.js +185 -30
- package/lib/custom/src/panel.min.js +1 -1
- package/lib/custom/style/style.css +326 -80
- package/lib/custom/style/style.min.css +1 -1
- package/lib/export/src/export-panel.js +1 -1
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/import-panel.js +1 -1
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +288 -84
- package/lib/index.umd.min.js +1 -1
- package/lib/input/style/style.css +0 -1
- package/lib/input/style/style.min.css +1 -1
- package/lib/loading/src/loading.js +1 -1
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/loading/style/style.css +1 -1
- package/lib/loading/style/style.min.css +1 -1
- package/lib/locale/lang/en-US.js +18 -7
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +18 -7
- package/lib/locale/lang/es-ES.js +18 -7
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +18 -7
- package/lib/locale/lang/ja-JP.js +18 -6
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +18 -6
- package/lib/locale/lang/pt-BR.js +18 -7
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +18 -7
- package/lib/locale/lang/zh-CN.js +18 -7
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +18 -7
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +18 -7
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +18 -7
- package/lib/locale/lang/zh-TC.js +18 -7
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +18 -7
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +18 -7
- package/lib/modal/src/modal.js +1 -1
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/radio/src/group.js +7 -1
- package/lib/radio/src/group.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/columnInfo.js +3 -3
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +61 -36
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +4 -4
- package/lib/table/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +1 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/vxe-button/style/style.css +6 -6
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-input/style/style.css +0 -1
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-loading/style/style.css +1 -1
- package/lib/vxe-loading/style/style.min.css +1 -1
- package/lib/vxe-table/style/style.css +4 -4
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-table-custom-module/style/style.css +326 -80
- package/lib/vxe-table-custom-module/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/checkbox/src/group.ts +8 -1
- package/packages/custom/src/hook.ts +1 -0
- package/packages/custom/src/panel.ts +213 -45
- package/packages/export/src/export-panel.ts +1 -1
- package/packages/export/src/import-panel.ts +1 -1
- package/packages/loading/src/loading.ts +1 -1
- package/packages/locale/lang/en-US.ts +18 -7
- package/packages/locale/lang/es-ES.ts +18 -7
- package/packages/locale/lang/ja-JP.ts +18 -6
- package/packages/locale/lang/pt-BR.ts +18 -7
- package/packages/locale/lang/zh-CN.ts +18 -7
- package/packages/locale/lang/zh-TC.ts +18 -7
- package/packages/modal/src/modal.ts +1 -1
- package/packages/radio/src/group.ts +8 -1
- package/packages/table/src/columnInfo.ts +9 -6
- package/packages/table/src/table.ts +62 -39
- package/packages/table/src/util.ts +1 -1
- package/styles/base/common.scss +4 -4
- package/styles/button.scss +5 -5
- package/styles/custom.scss +192 -86
- package/styles/helpers/mixin.scss +1 -1
- package/styles/input.scss +1 -2
- package/styles/loading.scss +1 -1
- package/styles/modal.scss +2 -2
- package/styles/select.scss +1 -1
- package/styles/table.scss +2 -2
- package/types/table.d.ts +32 -22
- package/types/v-x-e-table/renderer.d.ts +1 -0
- /package/es/icon/style/{iconfont.1714102086168.ttf → iconfont.1714295309081.ttf} +0 -0
- /package/es/icon/style/{iconfont.1714102086168.woff → iconfont.1714295309081.woff} +0 -0
- /package/es/icon/style/{iconfont.1714102086168.woff2 → iconfont.1714295309081.woff2} +0 -0
- /package/es/{iconfont.1714102086168.ttf → iconfont.1714295309081.ttf} +0 -0
- /package/es/{iconfont.1714102086168.woff → iconfont.1714295309081.woff} +0 -0
- /package/es/{iconfont.1714102086168.woff2 → iconfont.1714295309081.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1714102086168.ttf → iconfont.1714295309081.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1714102086168.woff → iconfont.1714295309081.woff} +0 -0
- /package/lib/icon/style/{iconfont.1714102086168.woff2 → iconfont.1714295309081.woff2} +0 -0
- /package/lib/{iconfont.1714102086168.ttf → iconfont.1714295309081.ttf} +0 -0
- /package/lib/{iconfont.1714102086168.woff → iconfont.1714295309081.woff} +0 -0
- /package/lib/{iconfont.1714102086168.woff2 → iconfont.1714295309081.woff2} +0 -0
|
@@ -111,12 +111,12 @@ export class ColumnInfo {
|
|
|
111
111
|
rowSpan: 1,
|
|
112
112
|
// 跨列
|
|
113
113
|
colSpan: 1,
|
|
114
|
-
//
|
|
114
|
+
// 数据排序
|
|
115
115
|
order: null,
|
|
116
|
-
// 数据排序-用于多列的先后顺序
|
|
117
116
|
sortTime: 0,
|
|
118
117
|
// 列排序
|
|
119
|
-
|
|
118
|
+
sortNumber: 0,
|
|
119
|
+
renderSortNumber: 0,
|
|
120
120
|
renderWidth: 0,
|
|
121
121
|
renderHeight: 0,
|
|
122
122
|
resizeWidth: 0,
|
package/es/table/src/table.js
CHANGED
|
@@ -21,7 +21,7 @@ const isWebkit = browse['-webkit'] && !browse.edge;
|
|
|
21
21
|
const resizableStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_WIDTH';
|
|
22
22
|
const visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
23
23
|
const fixedStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_FIXED';
|
|
24
|
-
const
|
|
24
|
+
const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
25
25
|
export default defineComponent({
|
|
26
26
|
name: 'VxeTable',
|
|
27
27
|
props: tableProps,
|
|
@@ -120,6 +120,7 @@ export default defineComponent({
|
|
|
120
120
|
visible: false,
|
|
121
121
|
maxHeight: 0
|
|
122
122
|
},
|
|
123
|
+
customColumnList: [],
|
|
123
124
|
// 当前选中的筛选列
|
|
124
125
|
filterStore: {
|
|
125
126
|
isAllSelected: false,
|
|
@@ -472,9 +473,10 @@ export default defineComponent({
|
|
|
472
473
|
return Object.assign({}, GlobalConfig.table.customConfig, props.customConfig);
|
|
473
474
|
});
|
|
474
475
|
const computeFixedColumnSize = computed(() => {
|
|
475
|
-
const {
|
|
476
|
+
const { collectColumn } = internalData;
|
|
476
477
|
let fixedSize = 0;
|
|
477
|
-
|
|
478
|
+
// 只判断第一层
|
|
479
|
+
collectColumn.forEach((column) => {
|
|
478
480
|
if (column.fixed) {
|
|
479
481
|
fixedSize++;
|
|
480
482
|
}
|
|
@@ -814,11 +816,13 @@ export default defineComponent({
|
|
|
814
816
|
const { collectColumn } = internalData;
|
|
815
817
|
const customOpts = computeCustomOpts.value;
|
|
816
818
|
const { storage } = customOpts;
|
|
817
|
-
const
|
|
818
|
-
const
|
|
819
|
-
const
|
|
820
|
-
const
|
|
821
|
-
|
|
819
|
+
const isAllCustom = storage === true;
|
|
820
|
+
const storageOpts = isAllCustom ? {} : Object.assign({}, storage || {});
|
|
821
|
+
const isCustomResizable = isAllCustom || storageOpts.resizable;
|
|
822
|
+
const isCustomVisible = isAllCustom || storageOpts.visible;
|
|
823
|
+
const isCustomFixed = isAllCustom || storageOpts.fixed;
|
|
824
|
+
const isCustomSort = isAllCustom || storageOpts.sort;
|
|
825
|
+
if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
822
826
|
const customMap = {};
|
|
823
827
|
if (!id) {
|
|
824
828
|
errLog('vxe.error.reqProp', ['id']);
|
|
@@ -850,18 +854,19 @@ export default defineComponent({
|
|
|
850
854
|
}
|
|
851
855
|
}
|
|
852
856
|
// 自定义顺序
|
|
853
|
-
if (
|
|
854
|
-
const
|
|
855
|
-
if (
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
857
|
+
if (isCustomSort) {
|
|
858
|
+
const columnSortStorage = getCustomStorageMap(sortStorageKey)[id];
|
|
859
|
+
if (columnSortStorage) {
|
|
860
|
+
const colOrderSeqs = columnSortStorage.split(',');
|
|
861
|
+
colOrderSeqs.forEach((orderConf) => {
|
|
862
|
+
const [colKey, sortNumber] = orderConf.split('|');
|
|
863
|
+
if (customMap[colKey]) {
|
|
864
|
+
customMap[colKey].sortNumber = sortNumber;
|
|
865
|
+
}
|
|
866
|
+
else {
|
|
867
|
+
customMap[colKey] = { sortNumber };
|
|
868
|
+
}
|
|
869
|
+
});
|
|
865
870
|
}
|
|
866
871
|
}
|
|
867
872
|
// 自定义隐藏列
|
|
@@ -896,7 +901,7 @@ export default defineComponent({
|
|
|
896
901
|
keyMap[colKey] = column;
|
|
897
902
|
}
|
|
898
903
|
});
|
|
899
|
-
XEUtils.each(customMap, ({ visible, resizeWidth, fixed,
|
|
904
|
+
XEUtils.each(customMap, ({ visible, resizeWidth, fixed, sortNumber }, colKey) => {
|
|
900
905
|
const column = keyMap[colKey];
|
|
901
906
|
if (column) {
|
|
902
907
|
if (XEUtils.isNumber(resizeWidth)) {
|
|
@@ -908,8 +913,8 @@ export default defineComponent({
|
|
|
908
913
|
if (fixed) {
|
|
909
914
|
column.fixed = fixed;
|
|
910
915
|
}
|
|
911
|
-
if (
|
|
912
|
-
column.
|
|
916
|
+
if (sortNumber) {
|
|
917
|
+
column.renderSortNumber = Number(sortNumber);
|
|
913
918
|
}
|
|
914
919
|
}
|
|
915
920
|
});
|
|
@@ -919,7 +924,7 @@ export default defineComponent({
|
|
|
919
924
|
* 更新数据列的 Map
|
|
920
925
|
* 牺牲数据组装的耗时,用来换取使用过程中的流畅
|
|
921
926
|
*/
|
|
922
|
-
const cacheColumnMap = () => {
|
|
927
|
+
const cacheColumnMap = (isInit) => {
|
|
923
928
|
const { tableFullColumn, collectColumn } = internalData;
|
|
924
929
|
const fullColumnIdData = internalData.fullColumnIdData = {};
|
|
925
930
|
const fullColumnFieldData = internalData.fullColumnFieldData = {};
|
|
@@ -995,6 +1000,9 @@ export default defineComponent({
|
|
|
995
1000
|
if (fullColumnIdData[colid]) {
|
|
996
1001
|
errLog('vxe.error.colRepet', ['colId', colid]);
|
|
997
1002
|
}
|
|
1003
|
+
if (isInit) {
|
|
1004
|
+
column.sortNumber = index;
|
|
1005
|
+
}
|
|
998
1006
|
fullColumnIdData[colid] = rest;
|
|
999
1007
|
};
|
|
1000
1008
|
if (isGroup) {
|
|
@@ -1297,7 +1305,7 @@ export default defineComponent({
|
|
|
1297
1305
|
}
|
|
1298
1306
|
}
|
|
1299
1307
|
if (!allRemoteSort && sortable && order) {
|
|
1300
|
-
orderColumns.push({ column, field, property: field, order, sortTime: column.sortTime });
|
|
1308
|
+
orderColumns.push({ column, field, property: field, order: order, sortTime: column.sortTime });
|
|
1301
1309
|
}
|
|
1302
1310
|
});
|
|
1303
1311
|
if (sortMultiple && chronological && orderColumns.length > 1) {
|
|
@@ -2451,7 +2459,7 @@ export default defineComponent({
|
|
|
2451
2459
|
internalData.collectColumn = collectColumn;
|
|
2452
2460
|
const tableFullColumn = getColumnList(collectColumn);
|
|
2453
2461
|
internalData.tableFullColumn = tableFullColumn;
|
|
2454
|
-
cacheColumnMap();
|
|
2462
|
+
cacheColumnMap(true);
|
|
2455
2463
|
restoreCustomStorage();
|
|
2456
2464
|
parseColumns().then(() => {
|
|
2457
2465
|
if (reactData.scrollXLoad) {
|
|
@@ -3022,7 +3030,7 @@ export default defineComponent({
|
|
|
3022
3030
|
*/
|
|
3023
3031
|
getColumnById(colid) {
|
|
3024
3032
|
const fullColumnIdData = internalData.fullColumnIdData;
|
|
3025
|
-
return fullColumnIdData[colid] ? fullColumnIdData[colid].column : null;
|
|
3033
|
+
return colid && fullColumnIdData[colid] ? fullColumnIdData[colid].column : null;
|
|
3026
3034
|
},
|
|
3027
3035
|
/**
|
|
3028
3036
|
* 根据列的字段名获取列
|
|
@@ -3030,7 +3038,7 @@ export default defineComponent({
|
|
|
3030
3038
|
*/
|
|
3031
3039
|
getColumnByField(field) {
|
|
3032
3040
|
const fullColumnFieldData = internalData.fullColumnFieldData;
|
|
3033
|
-
return fullColumnFieldData[field] ? fullColumnFieldData[field].column : null;
|
|
3041
|
+
return field && fullColumnFieldData[field] ? fullColumnFieldData[field].column : null;
|
|
3034
3042
|
},
|
|
3035
3043
|
/**
|
|
3036
3044
|
* 获取当前表格的列
|
|
@@ -3109,7 +3117,7 @@ export default defineComponent({
|
|
|
3109
3117
|
*/
|
|
3110
3118
|
getRowById(cellValue) {
|
|
3111
3119
|
const { fullDataRowIdData } = internalData;
|
|
3112
|
-
const rowid = XEUtils.eqNull(cellValue) ? '' : encodeURIComponent(cellValue);
|
|
3120
|
+
const rowid = XEUtils.eqNull(cellValue) ? '' : encodeURIComponent(cellValue || '');
|
|
3113
3121
|
return fullDataRowIdData[rowid] ? fullDataRowIdData[rowid].row : null;
|
|
3114
3122
|
},
|
|
3115
3123
|
/**
|
|
@@ -3233,7 +3241,8 @@ export default defineComponent({
|
|
|
3233
3241
|
const opts = Object.assign({
|
|
3234
3242
|
visible: true,
|
|
3235
3243
|
resizable: options === true,
|
|
3236
|
-
fixed: options === true
|
|
3244
|
+
fixed: options === true,
|
|
3245
|
+
sort: options === true
|
|
3237
3246
|
}, options);
|
|
3238
3247
|
XEUtils.eachTree(collectColumn, (column) => {
|
|
3239
3248
|
if (opts.resizable) {
|
|
@@ -3242,6 +3251,9 @@ export default defineComponent({
|
|
|
3242
3251
|
if (opts.fixed) {
|
|
3243
3252
|
column.fixed = column.defaultFixed;
|
|
3244
3253
|
}
|
|
3254
|
+
if (opts.sort) {
|
|
3255
|
+
column.renderSortNumber = column.sortNumber;
|
|
3256
|
+
}
|
|
3245
3257
|
if (!checkMethod || checkMethod({ column })) {
|
|
3246
3258
|
column.visible = column.defaultVisible;
|
|
3247
3259
|
}
|
|
@@ -3257,8 +3269,16 @@ export default defineComponent({
|
|
|
3257
3269
|
/**
|
|
3258
3270
|
* 刷新列信息
|
|
3259
3271
|
* 将固定的列左边、右边分别靠边
|
|
3272
|
+
* 如果传 true 则会检查列顺序并排序
|
|
3260
3273
|
*/
|
|
3261
|
-
refreshColumn() {
|
|
3274
|
+
refreshColumn(resiveOrder) {
|
|
3275
|
+
if (resiveOrder) {
|
|
3276
|
+
const columnList = XEUtils.orderBy(internalData.collectColumn, 'renderSortNumber');
|
|
3277
|
+
internalData.collectColumn = columnList;
|
|
3278
|
+
const tableFullColumn = getColumnList(columnList);
|
|
3279
|
+
internalData.tableFullColumn = tableFullColumn;
|
|
3280
|
+
cacheColumnMap();
|
|
3281
|
+
}
|
|
3262
3282
|
return parseColumns().then(() => {
|
|
3263
3283
|
return tableMethods.refreshScroll();
|
|
3264
3284
|
}).then(() => {
|
|
@@ -3786,7 +3806,7 @@ export default defineComponent({
|
|
|
3786
3806
|
tableFullColumn.forEach((column) => {
|
|
3787
3807
|
const { field, order } = column;
|
|
3788
3808
|
if (column.sortable && order) {
|
|
3789
|
-
sortList.push({ column, field, property: field, order, sortTime: column.sortTime });
|
|
3809
|
+
sortList.push({ column, field, property: field, order: order, sortTime: column.sortTime });
|
|
3790
3810
|
}
|
|
3791
3811
|
});
|
|
3792
3812
|
if (multiple && chronological && sortList.length > 1) {
|
|
@@ -5221,7 +5241,9 @@ export default defineComponent({
|
|
|
5221
5241
|
const { collectColumn } = internalData;
|
|
5222
5242
|
const customOpts = computeCustomOpts.value;
|
|
5223
5243
|
const { storage } = customOpts;
|
|
5224
|
-
const
|
|
5244
|
+
const isAllStorage = storage === true;
|
|
5245
|
+
const storageOpts = isAllStorage ? {} : Object.assign({}, storage || {});
|
|
5246
|
+
const isCustomFixed = isAllStorage || storageOpts.fixed;
|
|
5225
5247
|
if (customConfig && isCustomFixed) {
|
|
5226
5248
|
const columnFixedStorageMap = getCustomStorageMap(fixedStorageKey);
|
|
5227
5249
|
const colFixeds = [];
|
|
@@ -5246,7 +5268,9 @@ export default defineComponent({
|
|
|
5246
5268
|
const { collectColumn } = internalData;
|
|
5247
5269
|
const customOpts = computeCustomOpts.value;
|
|
5248
5270
|
const { checkMethod, storage } = customOpts;
|
|
5249
|
-
const
|
|
5271
|
+
const isAllStorage = storage === true;
|
|
5272
|
+
const storageOpts = isAllStorage ? {} : Object.assign({}, storage || {});
|
|
5273
|
+
const isCustomVisible = isAllStorage || storageOpts.visible;
|
|
5250
5274
|
if (customConfig && isCustomVisible) {
|
|
5251
5275
|
const columnVisibleStorageMap = getCustomStorageMap(visibleStorageKey);
|
|
5252
5276
|
const colHides = [];
|
|
@@ -5278,7 +5302,7 @@ export default defineComponent({
|
|
|
5278
5302
|
handleCustom() {
|
|
5279
5303
|
tablePrivateMethods.saveCustomVisible();
|
|
5280
5304
|
tablePrivateMethods.analyColumnWidth();
|
|
5281
|
-
return tableMethods.refreshColumn();
|
|
5305
|
+
return tableMethods.refreshColumn(true);
|
|
5282
5306
|
},
|
|
5283
5307
|
handleUpdateDataQueue() {
|
|
5284
5308
|
reactData.upDataFlag++;
|
|
@@ -6645,7 +6669,7 @@ export default defineComponent({
|
|
|
6645
6669
|
ref: refElem,
|
|
6646
6670
|
class: ['vxe-table', 'vxe-table--render-default', `tid_${xID}`, `border--${tableBorder}`, {
|
|
6647
6671
|
[`size--${vSize}`]: vSize,
|
|
6648
|
-
[`
|
|
6672
|
+
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
6649
6673
|
'vxe-editable': !!editConfig,
|
|
6650
6674
|
'old-cell-valid': editRules && GlobalConfig.cellVaildMode === 'obsolete',
|
|
6651
6675
|
'cell--highlight': highlightCell,
|
package/es/table/style.css
CHANGED
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
.vxe-loading.is--visible {
|
|
209
209
|
display: block;
|
|
210
210
|
}
|
|
211
|
-
.vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--
|
|
211
|
+
.vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--wrapper {
|
|
212
212
|
width: 100%;
|
|
213
213
|
position: absolute;
|
|
214
214
|
top: 50%;
|
|
@@ -1251,13 +1251,13 @@
|
|
|
1251
1251
|
.vxe-table--render-default .vxe-body--column.col--valid-error .vxe-input > .vxe-input--inner {
|
|
1252
1252
|
border-color: var(--vxe-table-validate-error-color);
|
|
1253
1253
|
}
|
|
1254
|
-
.vxe-table--render-default.
|
|
1254
|
+
.vxe-table--render-default.valid-msg--single .vxe-body--row:last-child .vxe-cell--valid-error-hint {
|
|
1255
1255
|
bottom: 100%;
|
|
1256
1256
|
}
|
|
1257
|
-
.vxe-table--render-default.
|
|
1257
|
+
.vxe-table--render-default.valid-msg--single .vxe-body--row:last-child:first-child .vxe-cell--valid-error-hint {
|
|
1258
1258
|
bottom: auto;
|
|
1259
1259
|
}
|
|
1260
|
-
.vxe-table--render-default.
|
|
1260
|
+
.vxe-table--render-default.valid-msg--full .vxe-body--row:last-child .vxe-cell--valid-error-hint {
|
|
1261
1261
|
top: calc(100% - 1.3em);
|
|
1262
1262
|
}
|
|
1263
1263
|
.vxe-table--render-default.old-cell-valid .vxe-body--column.col--valid-error .vxe-cell--valid-error-hint {
|
package/es/tools/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import GlobalConfig from '../v-x-e-table/src/conf';
|
|
2
2
|
export function getLog(message, params) {
|
|
3
|
-
return `[vxe-table v${"4.6.
|
|
3
|
+
return `[vxe-table v${"4.6.6"}] ${GlobalConfig.i18n(message, params)}`;
|
|
4
4
|
}
|
|
5
5
|
function outLog(type) {
|
|
6
6
|
return function (message, params) {
|
package/es/v-x-e-table/index.js
CHANGED
package/es/v-x-e-table/style.css
CHANGED
|
@@ -1372,7 +1372,7 @@
|
|
|
1372
1372
|
.vxe-loading.is--visible {
|
|
1373
1373
|
display: block;
|
|
1374
1374
|
}
|
|
1375
|
-
.vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--
|
|
1375
|
+
.vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--wrapper {
|
|
1376
1376
|
width: 100%;
|
|
1377
1377
|
position: absolute;
|
|
1378
1378
|
top: 50%;
|
package/es/vxe-button/style.css
CHANGED
|
@@ -381,13 +381,13 @@
|
|
|
381
381
|
min-width: var(--vxe-font-size-mini);
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
.vxe-input + .vxe-button-
|
|
385
|
-
.vxe-button + .vxe-button-
|
|
384
|
+
.vxe-input + .vxe-button-wrapper, .vxe-input + .vxe-button.type--button, .vxe-input + .vxe-button--dropdown,
|
|
385
|
+
.vxe-button + .vxe-button-wrapper,
|
|
386
386
|
.vxe-button + .vxe-button.type--button,
|
|
387
387
|
.vxe-button + .vxe-button--dropdown,
|
|
388
|
-
.vxe-button-
|
|
389
|
-
.vxe-button-
|
|
390
|
-
.vxe-button-
|
|
388
|
+
.vxe-button-wrapper + .vxe-button-wrapper,
|
|
389
|
+
.vxe-button-wrapper + .vxe-button.type--button,
|
|
390
|
+
.vxe-button-wrapper + .vxe-button--dropdown {
|
|
391
391
|
margin-left: 12px;
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
.vxe-button--dropdown {
|
|
409
409
|
position: relative;
|
|
410
410
|
}
|
|
411
|
-
.vxe-button--dropdown + .vxe-button-
|
|
411
|
+
.vxe-button--dropdown + .vxe-button-wrapper, .vxe-button--dropdown + .vxe-button.type--button, .vxe-button--dropdown + .vxe-button--dropdown {
|
|
412
412
|
margin-left: 12px;
|
|
413
413
|
}
|
|
414
414
|
.vxe-button--dropdown > .vxe-button.type--button.theme--primary {
|
package/es/vxe-input/style.css
CHANGED
package/es/vxe-loading/style.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
.vxe-loading.is--visible {
|
|
42
42
|
display: block;
|
|
43
43
|
}
|
|
44
|
-
.vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--
|
|
44
|
+
.vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--wrapper {
|
|
45
45
|
width: 100%;
|
|
46
46
|
position: absolute;
|
|
47
47
|
top: 50%;
|
package/es/vxe-table/style.css
CHANGED
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
.vxe-loading.is--visible {
|
|
209
209
|
display: block;
|
|
210
210
|
}
|
|
211
|
-
.vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--
|
|
211
|
+
.vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--wrapper {
|
|
212
212
|
width: 100%;
|
|
213
213
|
position: absolute;
|
|
214
214
|
top: 50%;
|
|
@@ -1251,13 +1251,13 @@
|
|
|
1251
1251
|
.vxe-table--render-default .vxe-body--column.col--valid-error .vxe-input > .vxe-input--inner {
|
|
1252
1252
|
border-color: var(--vxe-table-validate-error-color);
|
|
1253
1253
|
}
|
|
1254
|
-
.vxe-table--render-default.
|
|
1254
|
+
.vxe-table--render-default.valid-msg--single .vxe-body--row:last-child .vxe-cell--valid-error-hint {
|
|
1255
1255
|
bottom: 100%;
|
|
1256
1256
|
}
|
|
1257
|
-
.vxe-table--render-default.
|
|
1257
|
+
.vxe-table--render-default.valid-msg--single .vxe-body--row:last-child:first-child .vxe-cell--valid-error-hint {
|
|
1258
1258
|
bottom: auto;
|
|
1259
1259
|
}
|
|
1260
|
-
.vxe-table--render-default.
|
|
1260
|
+
.vxe-table--render-default.valid-msg--full .vxe-body--row:last-child .vxe-cell--valid-error-hint {
|
|
1261
1261
|
top: calc(100% - 1.3em);
|
|
1262
1262
|
}
|
|
1263
1263
|
.vxe-table--render-default.old-cell-valid .vxe-body--column.col--valid-error .vxe-cell--valid-error-hint {
|