vxe-table 4.13.43 → 4.13.45
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/README.md +4 -4
- package/es/{iconfont.1750301151390.ttf → iconfont.1750641793236.ttf} +0 -0
- package/es/iconfont.1750641793236.woff +0 -0
- package/es/iconfont.1750641793236.woff2 +0 -0
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/hook.js +9 -1
- package/es/table/module/custom/panel.js +320 -224
- package/es/table/module/edit/hook.js +24 -10
- package/es/table/module/export/hook.js +19 -6
- package/es/table/src/cell.js +4 -4
- package/es/table/src/emits.js +3 -0
- package/es/table/src/table.js +16 -4
- package/es/table/style.css +37 -9
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +7 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +37 -9
- package/es/vxe-table/style.min.css +1 -1
- package/lib/{iconfont.1750301151390.ttf → iconfont.1750641793236.ttf} +0 -0
- package/lib/iconfont.1750641793236.woff +0 -0
- package/lib/iconfont.1750641793236.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +275 -89
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/hook.js +11 -1
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +181 -60
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +46 -10
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/hook.js +19 -4
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/src/cell.js +4 -4
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/emits.js +1 -1
- package/lib/table/src/emits.min.js +1 -1
- package/lib/table/src/table.js +5 -5
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +37 -9
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +7 -3
- 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/lib/vxe-table/style/style.css +37 -9
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/table/module/custom/hook.ts +10 -1
- package/packages/table/module/custom/panel.ts +338 -236
- package/packages/table/module/edit/hook.ts +24 -10
- package/packages/table/module/export/hook.ts +18 -7
- package/packages/table/src/cell.ts +4 -4
- package/packages/table/src/emits.ts +3 -0
- package/packages/table/src/table.ts +17 -4
- package/packages/ui/index.ts +6 -2
- package/styles/components/icon.scss +9 -1
- package/styles/components/table-module/custom.scss +26 -3
- package/styles/helpers/baseMixin.scss +16 -2
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/es/iconfont.1750301151390.woff +0 -0
- package/es/iconfont.1750301151390.woff2 +0 -0
- package/lib/iconfont.1750301151390.woff +0 -0
- package/lib/iconfont.1750301151390.woff2 +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { nextTick } from 'vue';
|
|
2
2
|
import { VxeUI } from '../../../ui';
|
|
3
3
|
import XEUtils from 'xe-utils';
|
|
4
|
-
const tableCustomMethodKeys = ['openCustom', 'closeCustom', 'saveCustom', 'cancelCustom', 'resetCustom', 'toggleCustomAllCheckbox', 'setCustomAllCheckbox'];
|
|
4
|
+
const tableCustomMethodKeys = ['openCustom', 'closeCustom', 'toggleCustom', 'saveCustom', 'cancelCustom', 'resetCustom', 'toggleCustomAllCheckbox', 'setCustomAllCheckbox'];
|
|
5
5
|
VxeUI.hooks.add('tableCustomModule', {
|
|
6
6
|
setupTable($xeTable) {
|
|
7
7
|
const { reactData, internalData } = $xeTable;
|
|
@@ -60,6 +60,13 @@ VxeUI.hooks.add('tableCustomModule', {
|
|
|
60
60
|
}
|
|
61
61
|
return nextTick();
|
|
62
62
|
};
|
|
63
|
+
const toggleCustom = () => {
|
|
64
|
+
const { customStore } = reactData;
|
|
65
|
+
if (customStore.visible) {
|
|
66
|
+
return closeCustom();
|
|
67
|
+
}
|
|
68
|
+
return openCustom();
|
|
69
|
+
};
|
|
63
70
|
const saveCustom = () => {
|
|
64
71
|
const { customColumnList, aggHandleFields, rowGroupList } = reactData;
|
|
65
72
|
const customOpts = computeCustomOpts.value;
|
|
@@ -177,6 +184,7 @@ VxeUI.hooks.add('tableCustomModule', {
|
|
|
177
184
|
const customMethods = {
|
|
178
185
|
openCustom,
|
|
179
186
|
closeCustom,
|
|
187
|
+
toggleCustom,
|
|
180
188
|
saveCustom,
|
|
181
189
|
cancelCustom,
|
|
182
190
|
resetCustom(options) {
|