vxe-table 4.13.28 → 4.13.30
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/grid/src/grid.js +25 -26
- package/es/style.css +1 -1
- package/es/table/module/edit/hook.js +11 -27
- package/es/table/module/export/hook.js +15 -20
- package/es/table/module/validator/hook.js +104 -44
- package/es/table/src/table.js +33 -26
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +25 -26
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +171 -136
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/hook.js +11 -27
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/hook.js +15 -20
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/validator/hook.js +106 -47
- package/lib/table/module/validator/hook.min.js +1 -1
- package/lib/table/src/table.js +12 -14
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +25 -27
- package/packages/table/module/edit/hook.ts +11 -27
- package/packages/table/module/export/hook.ts +17 -22
- package/packages/table/module/validator/hook.ts +106 -43
- package/packages/table/src/table.ts +33 -26
- /package/es/{iconfont.1747194464593.ttf → iconfont.1747357348072.ttf} +0 -0
- /package/es/{iconfont.1747194464593.woff → iconfont.1747357348072.woff} +0 -0
- /package/es/{iconfont.1747194464593.woff2 → iconfont.1747357348072.woff2} +0 -0
- /package/lib/{iconfont.1747194464593.ttf → iconfont.1747357348072.ttf} +0 -0
- /package/lib/{iconfont.1747194464593.woff → iconfont.1747357348072.woff} +0 -0
- /package/lib/{iconfont.1747194464593.woff2 → iconfont.1747357348072.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -1148,31 +1148,6 @@ export default defineComponent({
|
|
|
1148
1148
|
// return nextTick()
|
|
1149
1149
|
// }
|
|
1150
1150
|
};
|
|
1151
|
-
// 检查插槽
|
|
1152
|
-
if (process.env.NODE_ENV === 'development') {
|
|
1153
|
-
gridMethods.loadColumn = (columns) => {
|
|
1154
|
-
const $xeTable = refTable.value;
|
|
1155
|
-
XEUtils.eachTree(columns, (column) => {
|
|
1156
|
-
if (column.slots) {
|
|
1157
|
-
XEUtils.each(column.slots, (func) => {
|
|
1158
|
-
if (!XEUtils.isFunction(func)) {
|
|
1159
|
-
if (!slots[func]) {
|
|
1160
|
-
errLog('vxe.error.notSlot', [func]);
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
});
|
|
1164
|
-
}
|
|
1165
|
-
});
|
|
1166
|
-
if ($xeTable) {
|
|
1167
|
-
return $xeTable.loadColumn(columns);
|
|
1168
|
-
}
|
|
1169
|
-
return nextTick();
|
|
1170
|
-
};
|
|
1171
|
-
gridMethods.reloadColumn = (columns) => {
|
|
1172
|
-
gridExtendTableMethods.clearAll();
|
|
1173
|
-
return gridMethods.loadColumn(columns);
|
|
1174
|
-
};
|
|
1175
|
-
}
|
|
1176
1151
|
const gridPrivateMethods = {
|
|
1177
1152
|
extendTableMethods,
|
|
1178
1153
|
callSlot(slotFunc, params) {
|
|
@@ -1233,7 +1208,31 @@ export default defineComponent({
|
|
|
1233
1208
|
gridMethods.dispatchEvent('zoom', { type: reactData.isZMax ? 'max' : 'revert' }, evnt);
|
|
1234
1209
|
}
|
|
1235
1210
|
};
|
|
1236
|
-
Object.assign($xeGrid, gridExtendTableMethods, gridMethods, gridPrivateMethods
|
|
1211
|
+
Object.assign($xeGrid, gridExtendTableMethods, gridMethods, gridPrivateMethods, {
|
|
1212
|
+
// 检查插槽
|
|
1213
|
+
loadColumn(columns) {
|
|
1214
|
+
const $xeTable = refTable.value;
|
|
1215
|
+
XEUtils.eachTree(columns, (column) => {
|
|
1216
|
+
if (column.slots) {
|
|
1217
|
+
XEUtils.each(column.slots, (func) => {
|
|
1218
|
+
if (!XEUtils.isFunction(func)) {
|
|
1219
|
+
if (!slots[func]) {
|
|
1220
|
+
errLog('vxe.error.notSlot', [func]);
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
if ($xeTable) {
|
|
1227
|
+
return $xeTable.loadColumn(columns);
|
|
1228
|
+
}
|
|
1229
|
+
return nextTick();
|
|
1230
|
+
},
|
|
1231
|
+
reloadColumn(columns) {
|
|
1232
|
+
$xeGrid.clearAll();
|
|
1233
|
+
return $xeGrid.loadColumn(columns);
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1237
1236
|
const columnFlag = ref(0);
|
|
1238
1237
|
watch(() => props.columns ? props.columns.length : -1, () => {
|
|
1239
1238
|
columnFlag.value++;
|