vxe-table 4.11.15 → 4.11.17
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 +16 -31
- package/es/style.css +1 -1
- package/es/table/module/custom/panel.js +19 -21
- package/es/table/module/edit/hook.js +7 -7
- package/es/table/module/export/export-panel.js +17 -19
- package/es/table/module/export/hook.js +5 -11
- package/es/table/module/export/import-panel.js +11 -13
- package/es/table/module/validator/hook.js +1 -3
- package/es/table/render/index.js +2 -4
- package/es/table/src/body.js +2 -2
- package/es/table/src/columnInfo.js +26 -28
- package/es/table/src/table.js +112 -78
- package/es/toolbar/src/toolbar.js +16 -24
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +16 -33
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +253 -247
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +21 -23
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +7 -7
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/export-panel.js +17 -19
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/hook.js +5 -11
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/export/import-panel.js +11 -13
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/validator/hook.js +1 -3
- package/lib/table/module/validator/hook.min.js +1 -1
- package/lib/table/render/index.js +2 -4
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +2 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/columnInfo.js +30 -32
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +119 -75
- package/lib/table/src/table.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +16 -24
- package/lib/toolbar/src/toolbar.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 +2 -2
- package/packages/grid/src/grid.ts +17 -31
- package/packages/table/module/custom/panel.ts +19 -21
- package/packages/table/module/edit/hook.ts +7 -7
- package/packages/table/module/export/export-panel.ts +17 -19
- package/packages/table/module/export/hook.ts +5 -11
- package/packages/table/module/export/import-panel.ts +11 -13
- package/packages/table/module/keyboard/hook.ts +2 -2
- package/packages/table/module/validator/hook.ts +1 -3
- package/packages/table/render/index.ts +2 -4
- package/packages/table/src/body.ts +2 -2
- package/packages/table/src/columnInfo.ts +26 -28
- package/packages/table/src/table.ts +111 -76
- package/packages/toolbar/src/toolbar.ts +16 -24
- /package/es/{iconfont.1740723830079.ttf → iconfont.1741140593243.ttf} +0 -0
- /package/es/{iconfont.1740723830079.woff → iconfont.1741140593243.woff} +0 -0
- /package/es/{iconfont.1740723830079.woff2 → iconfont.1741140593243.woff2} +0 -0
- /package/lib/{iconfont.1740723830079.ttf → iconfont.1741140593243.ttf} +0 -0
- /package/lib/{iconfont.1740723830079.woff → iconfont.1741140593243.woff} +0 -0
- /package/lib/{iconfont.1740723830079.woff2 → iconfont.1741140593243.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -408,9 +408,7 @@ export default defineComponent({
|
|
|
408
408
|
return slots[funcSlot];
|
|
409
409
|
}
|
|
410
410
|
else {
|
|
411
|
-
|
|
412
|
-
errLog('vxe.error.notSlot', [funcSlot]);
|
|
413
|
-
}
|
|
411
|
+
errLog('vxe.error.notSlot', [funcSlot]);
|
|
414
412
|
}
|
|
415
413
|
}
|
|
416
414
|
else {
|
|
@@ -915,9 +913,7 @@ export default defineComponent({
|
|
|
915
913
|
});
|
|
916
914
|
}
|
|
917
915
|
else {
|
|
918
|
-
|
|
919
|
-
errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
920
|
-
}
|
|
916
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
921
917
|
}
|
|
922
918
|
break;
|
|
923
919
|
}
|
|
@@ -979,9 +975,7 @@ export default defineComponent({
|
|
|
979
975
|
}
|
|
980
976
|
}
|
|
981
977
|
else {
|
|
982
|
-
|
|
983
|
-
errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
984
|
-
}
|
|
978
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
985
979
|
}
|
|
986
980
|
break;
|
|
987
981
|
}
|
|
@@ -1056,9 +1050,7 @@ export default defineComponent({
|
|
|
1056
1050
|
});
|
|
1057
1051
|
}
|
|
1058
1052
|
else {
|
|
1059
|
-
|
|
1060
|
-
errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
1061
|
-
}
|
|
1053
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
1062
1054
|
}
|
|
1063
1055
|
break;
|
|
1064
1056
|
}
|
|
@@ -1070,9 +1062,7 @@ export default defineComponent({
|
|
|
1070
1062
|
tCommandMethod({ code, button, $grid: $xeGrid, $table: $xeTable }, ...args);
|
|
1071
1063
|
}
|
|
1072
1064
|
else {
|
|
1073
|
-
|
|
1074
|
-
errLog('vxe.error.notCommands', [code]);
|
|
1075
|
-
}
|
|
1065
|
+
errLog('vxe.error.notCommands', [code]);
|
|
1076
1066
|
}
|
|
1077
1067
|
}
|
|
1078
1068
|
}
|
|
@@ -1182,7 +1172,6 @@ export default defineComponent({
|
|
|
1182
1172
|
* 获取需要排除的高度
|
|
1183
1173
|
*/
|
|
1184
1174
|
getExcludeHeight() {
|
|
1185
|
-
const { height } = props;
|
|
1186
1175
|
const { isZMax } = reactData;
|
|
1187
1176
|
const el = refElem.value;
|
|
1188
1177
|
const formWrapper = refFormWrapper.value;
|
|
@@ -1190,7 +1179,7 @@ export default defineComponent({
|
|
|
1190
1179
|
const topWrapper = refTopWrapper.value;
|
|
1191
1180
|
const bottomWrapper = refBottomWrapper.value;
|
|
1192
1181
|
const pagerWrapper = refPagerWrapper.value;
|
|
1193
|
-
const parentPaddingSize = isZMax
|
|
1182
|
+
const parentPaddingSize = isZMax ? 0 : getPaddingTopBottomSize(el.parentNode);
|
|
1194
1183
|
return parentPaddingSize + getPaddingTopBottomSize(el) + getOffsetHeight(formWrapper) + getOffsetHeight(toolbarWrapper) + getOffsetHeight(topWrapper) + getOffsetHeight(bottomWrapper) + getOffsetHeight(pagerWrapper);
|
|
1195
1184
|
},
|
|
1196
1185
|
getParentHeight() {
|
|
@@ -1252,22 +1241,18 @@ export default defineComponent({
|
|
|
1252
1241
|
});
|
|
1253
1242
|
initPages();
|
|
1254
1243
|
onMounted(() => {
|
|
1255
|
-
if (process.env.NODE_ENV === 'development') {
|
|
1256
|
-
nextTick(() => {
|
|
1257
|
-
if (props.formConfig) {
|
|
1258
|
-
if (!VxeUIFormComponent) {
|
|
1259
|
-
errLog('vxe.error.reqComp', ['vxe-form']);
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
if (props.pagerConfig) {
|
|
1263
|
-
if (!VxeUIPagerComponent) {
|
|
1264
|
-
errLog('vxe.error.reqComp', ['vxe-pager']);
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
1244
|
nextTick(() => {
|
|
1270
1245
|
const { columns } = props;
|
|
1246
|
+
if (props.formConfig) {
|
|
1247
|
+
if (!VxeUIFormComponent) {
|
|
1248
|
+
errLog('vxe.error.reqComp', ['vxe-form']);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
if (props.pagerConfig) {
|
|
1252
|
+
if (!VxeUIPagerComponent) {
|
|
1253
|
+
errLog('vxe.error.reqComp', ['vxe-pager']);
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1271
1256
|
// const { data, columns, proxyConfig } = props
|
|
1272
1257
|
// const proxyOpts = computeProxyOpts.value
|
|
1273
1258
|
// const formOpts = computeFormOpts.value
|