vxe-table 4.23.12 → 4.23.13
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/dist/all.esm.js +4789 -4773
- package/dist/all.esm.min.js +3 -3
- package/es/colgroup/index.d.ts +18 -18
- package/es/column/index.d.ts +18 -18
- package/es/grid/index.d.ts +174 -174
- package/es/grid/src/emits.d.ts +1 -1
- package/es/grid/src/emits.js +3 -3
- package/es/grid/src/grid.d.ts +27 -27
- package/es/grid/src/grid.js +10 -10
- package/es/grid/src/props.d.ts +2 -2
- package/es/grid/src/props.js +4 -4
- package/es/index.esm.js +1 -0
- package/es/index.js +1 -0
- package/es/table/index.d.ts +174 -174
- package/es/table/module/custom/panel.js +1588 -1585
- package/es/table/module/export/export-panel.js +587 -584
- package/es/table/module/export/import-panel.js +258 -255
- package/es/table/module/filter/hook.js +1 -15
- package/es/table/module/filter/panel.js +281 -278
- package/es/table/module/menu/panel.js +225 -222
- package/es/table/src/body.js +895 -892
- package/es/table/src/column.d.ts +3 -3
- package/es/table/src/emits.d.ts +1 -1
- package/es/table/src/emits.js +2 -2
- package/es/table/src/footer.d.ts +2 -2
- package/es/table/src/footer.js +341 -338
- package/es/table/src/group.d.ts +3 -3
- package/es/table/src/header.js +539 -536
- package/es/table/src/props.d.ts +2 -2
- package/es/table/src/props.js +2 -2
- package/es/table/src/table.d.ts +27 -27
- package/es/table/src/table.js +15 -10
- package/es/toolbar/index.d.ts +18 -18
- package/es/toolbar/src/toolbar.d.ts +3 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.d.ts +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/vn.d.ts +2 -2
- package/lib/colgroup/index.d.ts +760 -0
- package/lib/column/index.d.ts +760 -0
- package/lib/components.d.ts +13 -0
- package/lib/grid/index.d.ts +2824 -0
- package/lib/grid/src/emits.d.ts +2 -0
- package/lib/grid/src/emits.js +2 -2
- package/lib/grid/src/grid.d.ts +556 -0
- package/lib/grid/src/grid.js +6 -6
- package/lib/grid/src/props.d.ts +200 -0
- package/lib/grid/src/props.js +3 -3
- package/lib/index.common.js +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -0
- package/lib/index.umd.js +4789 -4773
- package/lib/index.umd.min.js +3 -3
- package/lib/locale/ar-EG.umd.d.ts +908 -0
- package/lib/locale/de-DE.umd.d.ts +908 -0
- package/lib/locale/en-US.umd.d.ts +908 -0
- package/lib/locale/es-ES.umd.d.ts +908 -0
- package/lib/locale/fr-FR.umd.d.ts +908 -0
- package/lib/locale/hu-HU.umd.d.ts +908 -0
- package/lib/locale/hy-AM.umd.d.ts +908 -0
- package/lib/locale/id-ID.umd.d.ts +908 -0
- package/lib/locale/it-IT.umd.d.ts +908 -0
- package/lib/locale/ja-JP.umd.d.ts +908 -0
- package/lib/locale/ko-KR.umd.d.ts +908 -0
- package/lib/locale/lang/ar-EG.d.ts +908 -0
- package/lib/locale/lang/ar-EG.umd.d.ts +908 -0
- package/lib/locale/lang/de-DE.d.ts +908 -0
- package/lib/locale/lang/de-DE.umd.d.ts +908 -0
- package/lib/locale/lang/en-US.d.ts +908 -0
- package/lib/locale/lang/en-US.umd.d.ts +908 -0
- package/lib/locale/lang/es-ES.d.ts +908 -0
- package/lib/locale/lang/es-ES.umd.d.ts +908 -0
- package/lib/locale/lang/fr-FR.d.ts +908 -0
- package/lib/locale/lang/fr-FR.umd.d.ts +908 -0
- package/lib/locale/lang/hu-HU.d.ts +908 -0
- package/lib/locale/lang/hu-HU.umd.d.ts +908 -0
- package/lib/locale/lang/hy-AM.d.ts +908 -0
- package/lib/locale/lang/hy-AM.umd.d.ts +908 -0
- package/lib/locale/lang/id-ID.d.ts +908 -0
- package/lib/locale/lang/id-ID.umd.d.ts +908 -0
- package/lib/locale/lang/it-IT.d.ts +908 -0
- package/lib/locale/lang/it-IT.umd.d.ts +908 -0
- package/lib/locale/lang/ja-JP.d.ts +908 -0
- package/lib/locale/lang/ja-JP.umd.d.ts +908 -0
- package/lib/locale/lang/ko-KR.d.ts +908 -0
- package/lib/locale/lang/ko-KR.umd.d.ts +908 -0
- package/lib/locale/lang/ms-MY.d.ts +908 -0
- package/lib/locale/lang/ms-MY.umd.d.ts +908 -0
- package/lib/locale/lang/nb-NO.d.ts +908 -0
- package/lib/locale/lang/nb-NO.umd.d.ts +908 -0
- package/lib/locale/lang/pt-BR.d.ts +908 -0
- package/lib/locale/lang/pt-BR.umd.d.ts +908 -0
- package/lib/locale/lang/ru-RU.d.ts +908 -0
- package/lib/locale/lang/ru-RU.umd.d.ts +908 -0
- package/lib/locale/lang/th-TH.d.ts +908 -0
- package/lib/locale/lang/th-TH.umd.d.ts +908 -0
- package/lib/locale/lang/ug-CN.d.ts +908 -0
- package/lib/locale/lang/ug-CN.umd.d.ts +908 -0
- package/lib/locale/lang/uk-UA.d.ts +908 -0
- package/lib/locale/lang/uk-UA.umd.d.ts +908 -0
- package/lib/locale/lang/uz-UZ.d.ts +908 -0
- package/lib/locale/lang/uz-UZ.umd.d.ts +908 -0
- package/lib/locale/lang/vi-VN.d.ts +908 -0
- package/lib/locale/lang/vi-VN.umd.d.ts +908 -0
- package/lib/locale/lang/zh-CHT.d.ts +908 -0
- package/lib/locale/lang/zh-CHT.umd.d.ts +908 -0
- package/lib/locale/lang/zh-CN.d.ts +908 -0
- package/lib/locale/lang/zh-CN.umd.d.ts +908 -0
- package/lib/locale/lang/zh-HK.d.ts +908 -0
- package/lib/locale/lang/zh-HK.umd.d.ts +908 -0
- package/lib/locale/lang/zh-MO.d.ts +908 -0
- package/lib/locale/lang/zh-MO.umd.d.ts +908 -0
- package/lib/locale/lang/zh-TC.d.ts +908 -0
- package/lib/locale/lang/zh-TC.umd.d.ts +908 -0
- package/lib/locale/lang/zh-TW.d.ts +908 -0
- package/lib/locale/lang/zh-TW.umd.d.ts +908 -0
- package/lib/locale/ms-MY.umd.d.ts +908 -0
- package/lib/locale/nb-NO.umd.d.ts +908 -0
- package/lib/locale/pt-BR.umd.d.ts +908 -0
- package/lib/locale/ru-RU.umd.d.ts +908 -0
- package/lib/locale/th-TH.umd.d.ts +908 -0
- package/lib/locale/ug-CN.umd.d.ts +908 -0
- package/lib/locale/uk-UA.umd.d.ts +908 -0
- package/lib/locale/uz-UZ.umd.d.ts +908 -0
- package/lib/locale/vi-VN.umd.d.ts +908 -0
- package/lib/locale/zh-CHT.umd.d.ts +908 -0
- package/lib/locale/zh-CN.umd.d.ts +908 -0
- package/lib/locale/zh-HK.umd.d.ts +908 -0
- package/lib/locale/zh-MO.umd.d.ts +908 -0
- package/lib/locale/zh-TC.umd.d.ts +908 -0
- package/lib/locale/zh-TW.umd.d.ts +908 -0
- package/lib/table/index.d.ts +2672 -0
- package/lib/table/module/custom/hook.d.ts +1 -0
- package/lib/table/module/custom/panel.d.ts +17 -0
- package/lib/table/module/custom/panel.js +1588 -1585
- package/lib/table/module/edit/hook.d.ts +1 -0
- package/lib/table/module/export/export-panel.d.ts +27 -0
- package/lib/table/module/export/export-panel.js +587 -584
- package/lib/table/module/export/hook.d.ts +1 -0
- package/lib/table/module/export/import-panel.d.ts +27 -0
- package/lib/table/module/export/import-panel.js +258 -255
- package/lib/table/module/export/util.d.ts +5 -0
- package/lib/table/module/filter/hook.d.ts +1 -0
- package/lib/table/module/filter/hook.js +1 -15
- package/lib/table/module/filter/panel.d.ts +16 -0
- package/lib/table/module/filter/panel.js +281 -278
- package/lib/table/module/keyboard/hook.d.ts +1 -0
- package/lib/table/module/menu/hook.d.ts +1 -0
- package/lib/table/module/menu/panel.d.ts +2 -0
- package/lib/table/module/menu/panel.js +225 -222
- package/lib/table/module/validator/hook.d.ts +1 -0
- package/lib/table/render/index.d.ts +1 -0
- package/lib/table/src/body.d.ts +24 -0
- package/lib/table/src/body.js +895 -892
- package/lib/table/src/cell.d.ts +192 -0
- package/lib/table/src/column.d.ts +263 -0
- package/lib/table/src/columnInfo.d.ts +13 -0
- package/lib/table/src/emits.d.ts +2 -0
- package/lib/table/src/emits.js +2 -2
- package/lib/table/src/footer.d.ts +45 -0
- package/lib/table/src/footer.js +341 -338
- package/lib/table/src/group.d.ts +178 -0
- package/lib/table/src/header.d.ts +26 -0
- package/lib/table/src/header.js +539 -536
- package/lib/table/src/props.d.ts +238 -0
- package/lib/table/src/props.js +2 -2
- package/lib/table/src/store.d.ts +6 -0
- package/lib/table/src/table.d.ts +539 -0
- package/lib/table/src/table.js +13 -8
- package/lib/table/src/use/cell-view.d.ts +10 -0
- package/lib/table/src/use/index.d.ts +1 -0
- package/lib/table/src/util.d.ts +74 -0
- package/lib/toolbar/index.d.ts +340 -0
- package/lib/toolbar/src/toolbar.d.ts +75 -0
- package/lib/ui/index.d.ts +85 -0
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/anime.d.ts +10 -0
- package/lib/ui/src/comp.d.ts +2 -0
- package/lib/ui/src/dom.d.ts +80 -0
- package/lib/ui/src/log.d.ts +6 -0
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/utils.d.ts +23 -0
- package/lib/ui/src/vn.d.ts +7 -0
- package/lib/v-x-e-table/index.d.ts +2 -0
- package/lib/vxe-colgroup/index.d.ts +3 -0
- package/lib/vxe-column/index.d.ts +3 -0
- package/lib/vxe-grid/index.d.ts +3 -0
- package/lib/vxe-table/index.d.ts +3 -0
- package/lib/vxe-toolbar/index.d.ts +3 -0
- package/lib/vxe-ui/index.d.ts +3 -0
- package/package.json +2 -2
- package/packages/grid/src/emits.ts +2 -2
- package/packages/grid/src/grid.ts +8 -8
- package/packages/grid/src/props.ts +3 -3
- package/packages/index.ts +2 -2
- package/packages/table/module/custom/panel.ts +2 -2
- package/packages/table/module/export/export-panel.ts +2 -2
- package/packages/table/module/export/import-panel.ts +2 -2
- package/packages/table/module/filter/hook.ts +1 -15
- package/packages/table/module/filter/panel.ts +2 -2
- package/packages/table/module/menu/panel.ts +2 -2
- package/packages/table/src/body.ts +2 -2
- package/packages/table/src/emits.ts +1 -1
- package/packages/table/src/footer.ts +2 -2
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/props.ts +1 -1
- package/packages/table/src/table.ts +21 -33
- /package/dist/{iconfont.1793090564415.ttf → iconfont.1793627868721.ttf} +0 -0
- /package/dist/{iconfont.1793090564415.woff → iconfont.1793627868721.woff} +0 -0
- /package/dist/{iconfont.1793090564415.woff2 → iconfont.1793627868721.woff2} +0 -0
- /package/es/{iconfont.1793090564415.ttf → iconfont.1793627868721.ttf} +0 -0
- /package/es/{iconfont.1793090564415.woff → iconfont.1793627868721.woff} +0 -0
- /package/es/{iconfont.1793090564415.woff2 → iconfont.1793627868721.woff2} +0 -0
- /package/lib/{iconfont.1793090564415.ttf → iconfont.1793627868721.ttf} +0 -0
- /package/lib/{iconfont.1793090564415.woff → iconfont.1793627868721.woff} +0 -0
- /package/lib/{iconfont.1793090564415.woff2 → iconfont.1793627868721.woff2} +0 -0
|
@@ -38,233 +38,236 @@ var import_core = require("@vxe-ui/core");
|
|
|
38
38
|
var import_utils = require("../../../ui/src/utils");
|
|
39
39
|
var import_vn = require("../../../ui/src/vn");
|
|
40
40
|
const { getIcon, getI18n, renderEmptyElement } = import_core.VxeUI;
|
|
41
|
-
var panel_default = (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
refElem
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
key: `${gIndex}_${index}`
|
|
111
|
-
},
|
|
112
|
-
[
|
|
113
|
-
(0, import_vue.h)(
|
|
114
|
-
"a",
|
|
115
|
-
{
|
|
116
|
-
class: "vxe-context-menu--link",
|
|
117
|
-
onClick(evnt) {
|
|
118
|
-
$xeTable.ctxMenuLinkEvent(evnt, item);
|
|
119
|
-
},
|
|
120
|
-
onMouseover(evnt) {
|
|
121
|
-
$xeTable.ctxMenuMouseoverEvent(evnt, item);
|
|
122
|
-
},
|
|
123
|
-
onMouseout(evnt) {
|
|
124
|
-
$xeTable.ctxMenuMouseoutEvent(evnt, item);
|
|
41
|
+
var panel_default = (
|
|
42
|
+
/* define-vxe-component start */
|
|
43
|
+
(0, import_comp.defineVxeComponent)({
|
|
44
|
+
name: "VxeTableMenuPanel",
|
|
45
|
+
setup(props, context) {
|
|
46
|
+
const xID = import_xe_utils.default.uniqueId();
|
|
47
|
+
const $xeTable = (0, import_vue.inject)("$xeTable", {});
|
|
48
|
+
const { reactData: tableReactData } = $xeTable;
|
|
49
|
+
const refElem = (0, import_vue.ref)();
|
|
50
|
+
const refMaps = {
|
|
51
|
+
refElem
|
|
52
|
+
};
|
|
53
|
+
const $xeMenuPanel = {
|
|
54
|
+
xID,
|
|
55
|
+
props,
|
|
56
|
+
context,
|
|
57
|
+
getRefMaps: () => refMaps
|
|
58
|
+
};
|
|
59
|
+
const renderVN = () => {
|
|
60
|
+
const { ctxMenuStore } = tableReactData;
|
|
61
|
+
const { computeMenuOpts } = $xeTable.getComputeMaps();
|
|
62
|
+
const menuOpts = computeMenuOpts.value;
|
|
63
|
+
const { transfer, destroyOnClose, className } = menuOpts;
|
|
64
|
+
const { visible, list } = ctxMenuStore;
|
|
65
|
+
return (0, import_vue.h)(
|
|
66
|
+
import_vue.Teleport,
|
|
67
|
+
{
|
|
68
|
+
to: "body",
|
|
69
|
+
disabled: !transfer
|
|
70
|
+
},
|
|
71
|
+
[
|
|
72
|
+
(0, import_vue.h)(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
ref: refElem,
|
|
76
|
+
class: [
|
|
77
|
+
"vxe-table--context-menu-wrapper",
|
|
78
|
+
className,
|
|
79
|
+
{
|
|
80
|
+
"is--visible": visible
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
style: ctxMenuStore.style
|
|
84
|
+
},
|
|
85
|
+
(destroyOnClose ? visible : true) ? list.map((options, gIndex) => {
|
|
86
|
+
return options.every((item) => item.visible === false) ? renderEmptyElement($xeTable) : (0, import_vue.h)(
|
|
87
|
+
"ul",
|
|
88
|
+
{
|
|
89
|
+
class: "vxe-table--context-menu-group-wrapper",
|
|
90
|
+
key: gIndex
|
|
91
|
+
},
|
|
92
|
+
options.map((item, index) => {
|
|
93
|
+
const { children, loading } = item;
|
|
94
|
+
const hasChildMenus = children && children.some((child) => child.visible !== false);
|
|
95
|
+
const prefixOpts = Object.assign({}, item.prefixConfig);
|
|
96
|
+
const prefixIcon = prefixOpts.icon || item.prefixIcon;
|
|
97
|
+
const suffixOpts = Object.assign({}, item.suffixConfig);
|
|
98
|
+
const suffixIcon = suffixOpts.icon || item.suffixIcon;
|
|
99
|
+
const menuContent = (0, import_utils.getFuncText)(item.name);
|
|
100
|
+
return item.visible === false ? renderEmptyElement($xeTable) : (0, import_vue.h)(
|
|
101
|
+
"li",
|
|
102
|
+
{
|
|
103
|
+
class: [
|
|
104
|
+
"vxe-table--context-menu--option",
|
|
105
|
+
item.className,
|
|
106
|
+
{
|
|
107
|
+
"link--loading": loading,
|
|
108
|
+
"link--disabled": item.disabled,
|
|
109
|
+
"link--active": item === ctxMenuStore.selected
|
|
125
110
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}) : prefixIcon && import_xe_utils.default.isFunction(prefixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(prefixIcon({}))) : (0, import_vue.h)("span", {}, [
|
|
137
|
-
(0, import_vue.h)("i", {
|
|
138
|
-
class: prefixIcon
|
|
139
|
-
})
|
|
140
|
-
]),
|
|
141
|
-
prefixOpts.content ? (0, import_vue.h)("span", {}, `${prefixOpts.content}`) : renderEmptyElement($xeTable)
|
|
142
|
-
]
|
|
143
|
-
),
|
|
144
|
-
(0, import_vue.h)(
|
|
145
|
-
"div",
|
|
146
|
-
{
|
|
147
|
-
class: "vxe-context-menu--link-content",
|
|
148
|
-
title: menuContent
|
|
111
|
+
],
|
|
112
|
+
key: `${gIndex}_${index}`
|
|
113
|
+
},
|
|
114
|
+
[
|
|
115
|
+
(0, import_vue.h)(
|
|
116
|
+
"a",
|
|
117
|
+
{
|
|
118
|
+
class: "vxe-context-menu--link",
|
|
119
|
+
onClick(evnt) {
|
|
120
|
+
$xeTable.ctxMenuLinkEvent(evnt, item);
|
|
149
121
|
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
(0, import_vue.h)(
|
|
153
|
-
"div",
|
|
154
|
-
{
|
|
155
|
-
class: ["vxe-context-menu--link-suffix", suffixOpts.className || ""]
|
|
122
|
+
onMouseover(evnt) {
|
|
123
|
+
$xeTable.ctxMenuMouseoverEvent(evnt, item);
|
|
156
124
|
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
class: suffixIcon || (hasChildMenus ? getIcon().TABLE_MENU_OPTIONS : "")
|
|
160
|
-
}),
|
|
161
|
-
suffixOpts.content ? (0, import_vue.h)("span", `${suffixOpts.content}`) : renderEmptyElement($xeTable)
|
|
162
|
-
]
|
|
163
|
-
)
|
|
164
|
-
]
|
|
165
|
-
),
|
|
166
|
-
hasChildMenus && children ? (0, import_vue.h)(
|
|
167
|
-
"ul",
|
|
168
|
-
{
|
|
169
|
-
class: [
|
|
170
|
-
"vxe-table--context-menu-clild-wrapper",
|
|
171
|
-
{
|
|
172
|
-
"is--show": item === ctxMenuStore.selected && ctxMenuStore.showChild
|
|
125
|
+
onMouseout(evnt) {
|
|
126
|
+
$xeTable.ctxMenuMouseoutEvent(evnt, item);
|
|
173
127
|
}
|
|
128
|
+
},
|
|
129
|
+
[
|
|
130
|
+
(0, import_vue.h)(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
class: ["vxe-context-menu--link-prefix", prefixOpts.className || ""]
|
|
134
|
+
},
|
|
135
|
+
[
|
|
136
|
+
loading ? (0, import_vue.h)("span", {
|
|
137
|
+
class: getIcon("TABLE_MENU_OPTION_LOADING")
|
|
138
|
+
}) : prefixIcon && import_xe_utils.default.isFunction(prefixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(prefixIcon({}))) : (0, import_vue.h)("span", {}, [
|
|
139
|
+
(0, import_vue.h)("i", {
|
|
140
|
+
class: prefixIcon
|
|
141
|
+
})
|
|
142
|
+
]),
|
|
143
|
+
prefixOpts.content ? (0, import_vue.h)("span", {}, `${prefixOpts.content}`) : renderEmptyElement($xeTable)
|
|
144
|
+
]
|
|
145
|
+
),
|
|
146
|
+
(0, import_vue.h)(
|
|
147
|
+
"div",
|
|
148
|
+
{
|
|
149
|
+
class: "vxe-context-menu--link-content",
|
|
150
|
+
title: menuContent
|
|
151
|
+
},
|
|
152
|
+
loading ? getI18n("vxe.table.menuLoading") : menuContent
|
|
153
|
+
),
|
|
154
|
+
(0, import_vue.h)(
|
|
155
|
+
"div",
|
|
156
|
+
{
|
|
157
|
+
class: ["vxe-context-menu--link-suffix", suffixOpts.className || ""]
|
|
158
|
+
},
|
|
159
|
+
[
|
|
160
|
+
suffixIcon && import_xe_utils.default.isFunction(suffixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(suffixIcon({}))) : (0, import_vue.h)("i", {
|
|
161
|
+
class: suffixIcon || (hasChildMenus ? getIcon().TABLE_MENU_OPTIONS : "")
|
|
162
|
+
}),
|
|
163
|
+
suffixOpts.content ? (0, import_vue.h)("span", `${suffixOpts.content}`) : renderEmptyElement($xeTable)
|
|
164
|
+
]
|
|
165
|
+
)
|
|
174
166
|
]
|
|
175
|
-
|
|
176
|
-
children
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
$xeTable.ctxMenuLinkEvent(evnt, child);
|
|
204
|
-
},
|
|
205
|
-
onMouseover(evnt) {
|
|
206
|
-
$xeTable.ctxMenuMouseoverEvent(evnt, item, child);
|
|
207
|
-
},
|
|
208
|
-
onMouseout(evnt) {
|
|
209
|
-
$xeTable.ctxMenuMouseoutEvent(evnt, item);
|
|
167
|
+
),
|
|
168
|
+
hasChildMenus && children ? (0, import_vue.h)(
|
|
169
|
+
"ul",
|
|
170
|
+
{
|
|
171
|
+
class: [
|
|
172
|
+
"vxe-table--context-menu-clild-wrapper",
|
|
173
|
+
{
|
|
174
|
+
"is--show": item === ctxMenuStore.selected && ctxMenuStore.showChild
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
children.map((child, cIndex) => {
|
|
179
|
+
const { loading: childLoading } = child;
|
|
180
|
+
const childPrefixOpts = Object.assign({}, child.prefixConfig);
|
|
181
|
+
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
|
|
182
|
+
const childSuffixOpts = Object.assign({}, child.suffixConfig);
|
|
183
|
+
const childSuffixIcon = childSuffixOpts.icon || child.suffixIcon;
|
|
184
|
+
const childMenuContent = (0, import_utils.getFuncText)(child.name);
|
|
185
|
+
return child.visible === false ? null : (0, import_vue.h)(
|
|
186
|
+
"li",
|
|
187
|
+
{
|
|
188
|
+
class: [
|
|
189
|
+
"vxe-table--context-menu--option",
|
|
190
|
+
child.className,
|
|
191
|
+
{
|
|
192
|
+
"link--loading": childLoading,
|
|
193
|
+
"link--disabled": child.disabled,
|
|
194
|
+
"link--active": child === ctxMenuStore.selectChild
|
|
210
195
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}) : childPrefixIcon && import_xe_utils.default.isFunction(childPrefixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(childPrefixIcon({}))) : (0, import_vue.h)("span", {}, [
|
|
222
|
-
(0, import_vue.h)("i", {
|
|
223
|
-
class: childPrefixIcon
|
|
224
|
-
})
|
|
225
|
-
]),
|
|
226
|
-
childPrefixOpts.content ? (0, import_vue.h)("span", `${childPrefixOpts.content}`) : renderEmptyElement($xeTable)
|
|
227
|
-
]
|
|
228
|
-
),
|
|
229
|
-
(0, import_vue.h)(
|
|
230
|
-
"div",
|
|
231
|
-
{
|
|
232
|
-
class: "vxe-context-menu--link-content",
|
|
233
|
-
title: childMenuContent
|
|
196
|
+
],
|
|
197
|
+
key: `${gIndex}_${index}_${cIndex}`
|
|
198
|
+
},
|
|
199
|
+
[
|
|
200
|
+
(0, import_vue.h)(
|
|
201
|
+
"a",
|
|
202
|
+
{
|
|
203
|
+
class: "vxe-context-menu--link",
|
|
204
|
+
onClick(evnt) {
|
|
205
|
+
$xeTable.ctxMenuLinkEvent(evnt, child);
|
|
234
206
|
},
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
(0, import_vue.h)(
|
|
238
|
-
"div",
|
|
239
|
-
{
|
|
240
|
-
class: ["vxe-context-menu--link-suffix", childSuffixOpts.className || ""]
|
|
207
|
+
onMouseover(evnt) {
|
|
208
|
+
$xeTable.ctxMenuMouseoverEvent(evnt, item, child);
|
|
241
209
|
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
210
|
+
onMouseout(evnt) {
|
|
211
|
+
$xeTable.ctxMenuMouseoutEvent(evnt, item);
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
[
|
|
215
|
+
(0, import_vue.h)(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
class: ["vxe-context-menu--link-prefix", childPrefixOpts.className || ""]
|
|
219
|
+
},
|
|
220
|
+
[
|
|
221
|
+
child.loading ? (0, import_vue.h)("span", {
|
|
222
|
+
class: getIcon("TABLE_MENU_OPTION_LOADING")
|
|
223
|
+
}) : childPrefixIcon && import_xe_utils.default.isFunction(childPrefixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(childPrefixIcon({}))) : (0, import_vue.h)("span", {}, [
|
|
224
|
+
(0, import_vue.h)("i", {
|
|
225
|
+
class: childPrefixIcon
|
|
226
|
+
})
|
|
227
|
+
]),
|
|
228
|
+
childPrefixOpts.content ? (0, import_vue.h)("span", `${childPrefixOpts.content}`) : renderEmptyElement($xeTable)
|
|
229
|
+
]
|
|
230
|
+
),
|
|
231
|
+
(0, import_vue.h)(
|
|
232
|
+
"div",
|
|
233
|
+
{
|
|
234
|
+
class: "vxe-context-menu--link-content",
|
|
235
|
+
title: childMenuContent
|
|
236
|
+
},
|
|
237
|
+
childLoading ? getI18n("vxe.table.menuLoading") : childMenuContent
|
|
238
|
+
),
|
|
239
|
+
(0, import_vue.h)(
|
|
240
|
+
"div",
|
|
241
|
+
{
|
|
242
|
+
class: ["vxe-context-menu--link-suffix", childSuffixOpts.className || ""]
|
|
243
|
+
},
|
|
244
|
+
[
|
|
245
|
+
childSuffixIcon && import_xe_utils.default.isFunction(childSuffixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(childSuffixIcon({}))) : (0, import_vue.h)("i", {
|
|
246
|
+
class: childSuffixIcon
|
|
247
|
+
}),
|
|
248
|
+
childSuffixOpts.content ? (0, import_vue.h)("span", `${childSuffixOpts.content}`) : renderEmptyElement($xeTable)
|
|
249
|
+
]
|
|
250
|
+
)
|
|
251
|
+
]
|
|
252
|
+
)
|
|
253
|
+
]
|
|
254
|
+
);
|
|
255
|
+
})
|
|
256
|
+
) : null
|
|
257
|
+
]
|
|
258
|
+
);
|
|
259
|
+
})
|
|
260
|
+
);
|
|
261
|
+
}) : []
|
|
262
|
+
)
|
|
263
|
+
]
|
|
264
|
+
);
|
|
265
|
+
};
|
|
266
|
+
$xeMenuPanel.renderVN = renderVN;
|
|
267
|
+
return $xeMenuPanel;
|
|
268
|
+
},
|
|
269
|
+
render() {
|
|
270
|
+
return this.renderVN();
|
|
271
|
+
}
|
|
272
|
+
})
|
|
273
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { VxeTableDefines } from '../../../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
tableData: PropType<any[]>;
|
|
5
|
+
tableColumn: PropType<VxeTableDefines.ColumnInfo[]>;
|
|
6
|
+
fixedColumn: PropType<VxeTableDefines.ColumnInfo[]>;
|
|
7
|
+
fixedType: {
|
|
8
|
+
type: PropType<"right" | "left" | "">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
tableData: PropType<any[]>;
|
|
15
|
+
tableColumn: PropType<VxeTableDefines.ColumnInfo[]>;
|
|
16
|
+
fixedColumn: PropType<VxeTableDefines.ColumnInfo[]>;
|
|
17
|
+
fixedType: {
|
|
18
|
+
type: PropType<"right" | "left" | "">;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}>>, {
|
|
22
|
+
fixedType: "" | "left" | "right";
|
|
23
|
+
}, {}>;
|
|
24
|
+
export default _default;
|