vxe-table 4.23.7 → 4.23.9
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 +5859 -4018
- package/es/colgroup/index.js +1 -1
- package/es/column/index.js +1 -1
- package/es/components.d.ts +3 -0
- package/es/components.js +4 -8
- package/es/grid/index.js +1 -1
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +398 -121
- package/es/grid/src/props.js +1 -1
- package/es/index.esm.js +6 -0
- package/es/index.js +6 -0
- package/es/table/index.js +1 -1
- package/es/table/module/custom/hook.js +50 -43
- package/es/table/module/custom/panel.js +778 -528
- package/es/table/module/edit/hook.js +141 -63
- package/es/table/module/export/export-panel.js +400 -317
- package/es/table/module/export/hook.js +396 -338
- package/es/table/module/export/import-panel.js +153 -124
- package/es/table/module/filter/hook.js +17 -3
- package/es/table/module/filter/panel.js +147 -85
- package/es/table/module/keyboard/hook.js +9 -5
- package/es/table/module/menu/hook.js +1 -1
- package/es/table/module/menu/panel.js +198 -127
- package/es/table/module/validator/hook.js +1 -1
- package/es/table/render/index.js +152 -99
- package/es/table/src/body.js +356 -234
- package/es/table/src/cell.js +427 -270
- package/es/table/src/columnInfo.js +2 -1
- package/es/table/src/footer.js +145 -100
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +230 -173
- package/es/table/src/props.js +1 -1
- package/es/table/src/table.js +1504 -1031
- package/es/table/src/util.js +15 -19
- package/es/toolbar/index.js +1 -1
- package/es/toolbar/src/toolbar.js +133 -76
- package/es/ui/index.d.ts +0 -1
- package/es/ui/index.js +1 -2
- package/es/ui/src/dom.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/es/v-x-e-table/index.d.ts +0 -1
- package/es/v-x-e-table/index.js +0 -1
- package/lib/colgroup/index.js +5 -5
- package/lib/column/index.js +5 -5
- package/lib/components.js +8 -12
- package/lib/grid/index.js +4 -4
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +419 -142
- package/lib/grid/src/props.js +2 -2
- package/lib/index.common.js +6 -0
- package/lib/index.js +6 -0
- package/lib/index.umd.js +5825 -3945
- package/lib/index.umd.min.js +3 -3
- package/lib/table/index.js +5 -5
- package/lib/table/module/custom/hook.js +51 -44
- package/lib/table/module/custom/panel.js +790 -540
- package/lib/table/module/edit/hook.js +142 -64
- package/lib/table/module/export/export-panel.js +406 -323
- package/lib/table/module/export/hook.js +419 -361
- package/lib/table/module/export/import-panel.js +157 -128
- package/lib/table/module/filter/hook.js +18 -4
- package/lib/table/module/filter/panel.js +149 -87
- package/lib/table/module/keyboard/hook.js +10 -6
- package/lib/table/module/menu/hook.js +2 -2
- package/lib/table/module/menu/panel.js +199 -128
- package/lib/table/module/validator/hook.js +2 -2
- package/lib/table/render/index.js +153 -100
- package/lib/table/src/body.js +357 -235
- package/lib/table/src/cell.js +428 -271
- package/lib/table/src/columnInfo.js +3 -2
- package/lib/table/src/footer.js +146 -101
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +231 -174
- package/lib/table/src/props.js +2 -2
- package/lib/table/src/table.js +1487 -1045
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/index.js +4 -4
- package/lib/toolbar/src/toolbar.js +135 -78
- package/lib/ui/index.js +1 -3
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/lib/v-x-e-table/index.js +0 -2
- package/package.json +8 -3
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +41 -43
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -19
- package/packages/grid/src/grid.ts +2229 -1925
- package/packages/grid/src/props.ts +22 -23
- package/packages/index.ts +11 -4
- package/packages/locale/lang/fr-FR.ts +15 -15
- package/packages/locale/lang/it-IT.ts +4 -4
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +13 -13
- package/packages/locale/lang/zh-CN.ts +907 -907
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -503
- package/packages/table/module/custom/panel.ts +2002 -1743
- package/packages/table/module/edit/hook.ts +1224 -1131
- package/packages/table/module/export/export-panel.ts +697 -611
- package/packages/table/module/export/hook.ts +2160 -2059
- package/packages/table/module/export/import-panel.ts +319 -279
- package/packages/table/module/export/util.ts +25 -24
- package/packages/table/module/filter/hook.ts +519 -501
- package/packages/table/module/filter/panel.ts +368 -304
- package/packages/table/module/keyboard/hook.ts +498 -494
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -201
- package/packages/table/module/validator/hook.ts +653 -635
- package/packages/table/render/index.ts +1819 -1744
- package/packages/table/src/body.ts +1078 -955
- package/packages/table/src/cell.ts +1524 -1359
- package/packages/table/src/column.ts +192 -192
- package/packages/table/src/columnInfo.ts +232 -232
- package/packages/table/src/emits.ts +134 -134
- package/packages/table/src/footer.ts +425 -380
- package/packages/table/src/group.ts +67 -63
- package/packages/table/src/header.ts +642 -581
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +16011 -15454
- package/packages/table/src/use/cell-view.ts +41 -44
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1216
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -706
- package/packages/ui/index.ts +519 -521
- package/packages/ui/src/anime.ts +51 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -463
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +66 -66
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +3 -4
- package/packages/v-x-e-table/index.ts +3 -4
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
|
@@ -22,11 +22,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
24
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
25
|
-
var
|
|
25
|
+
var import_core = require("@vxe-ui/core");
|
|
26
26
|
var import_util = require("../../src/util");
|
|
27
27
|
var import_dom = require("../../../ui/src/dom");
|
|
28
28
|
var import_utils = require("../../../ui/src/utils");
|
|
29
|
-
const { hooks } =
|
|
29
|
+
const { hooks } = import_core.VxeUI;
|
|
30
30
|
hooks.add("tableKeyboardModule", {
|
|
31
31
|
setupTable($xeTable) {
|
|
32
32
|
const { props, reactData, internalData } = $xeTable;
|
|
@@ -132,10 +132,14 @@ hooks.add("tableKeyboardModule", {
|
|
|
132
132
|
let isMouseScrollDown = false;
|
|
133
133
|
let mouseScrollSpaceSize = 1;
|
|
134
134
|
const triggerEvent = (type, evnt2) => {
|
|
135
|
-
$xeTable.dispatchEvent(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
$xeTable.dispatchEvent(
|
|
136
|
+
`checkbox-range-${type}`,
|
|
137
|
+
{
|
|
138
|
+
records: () => $xeTable.getCheckboxRecords(),
|
|
139
|
+
reserves: () => $xeTable.getCheckboxReserveRecords()
|
|
140
|
+
},
|
|
141
|
+
evnt2
|
|
142
|
+
);
|
|
139
143
|
};
|
|
140
144
|
const handleChecked = (evnt2) => {
|
|
141
145
|
const { clientX, clientY } = evnt2;
|
|
@@ -23,10 +23,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
));
|
|
24
24
|
var import_vue = require("vue");
|
|
25
25
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
26
|
-
var
|
|
26
|
+
var import_core = require("@vxe-ui/core");
|
|
27
27
|
var import_dom = require("../../../ui/src/dom");
|
|
28
28
|
var import_utils = require("../../../ui/src/utils");
|
|
29
|
-
const { menus, hooks, globalEvents, GLOBAL_EVENT_KEYS } =
|
|
29
|
+
const { menus, hooks, globalEvents, GLOBAL_EVENT_KEYS } = import_core.VxeUI;
|
|
30
30
|
const tableMenuMethodKeys = ["closeMenu"];
|
|
31
31
|
hooks.add("tableMenuModule", {
|
|
32
32
|
setupTable($xeTable) {
|
|
@@ -34,10 +34,10 @@ module.exports = __toCommonJS(panel_exports);
|
|
|
34
34
|
var import_vue = require("vue");
|
|
35
35
|
var import_comp = require("../../../ui/src/comp");
|
|
36
36
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
|
-
var
|
|
37
|
+
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
|
-
const { getIcon, getI18n, renderEmptyElement } =
|
|
40
|
+
const { getIcon, getI18n, renderEmptyElement } = import_core.VxeUI;
|
|
41
41
|
var panel_default = (0, import_comp.defineVxeComponent)({
|
|
42
42
|
name: "VxeTableMenuPanel",
|
|
43
43
|
setup(props, context) {
|
|
@@ -60,135 +60,206 @@ var panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
60
60
|
const menuOpts = computeMenuOpts.value;
|
|
61
61
|
const { transfer, destroyOnClose, className } = menuOpts;
|
|
62
62
|
const { visible, list } = ctxMenuStore;
|
|
63
|
-
return (0, import_vue.h)(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const hasChildMenus = children && children.some((child) => child.visible !== false);
|
|
80
|
-
const prefixOpts = Object.assign({}, item.prefixConfig);
|
|
81
|
-
const prefixIcon = prefixOpts.icon || item.prefixIcon;
|
|
82
|
-
const suffixOpts = Object.assign({}, item.suffixConfig);
|
|
83
|
-
const suffixIcon = suffixOpts.icon || item.suffixIcon;
|
|
84
|
-
const menuContent = (0, import_utils.getFuncText)(item.name);
|
|
85
|
-
return item.visible === false ? renderEmptyElement($xeTable) : (0, import_vue.h)("li", {
|
|
86
|
-
class: ["vxe-table--context-menu--option", item.className, {
|
|
87
|
-
"link--loading": loading,
|
|
88
|
-
"link--disabled": item.disabled,
|
|
89
|
-
"link--active": item === ctxMenuStore.selected
|
|
90
|
-
}],
|
|
91
|
-
key: `${gIndex}_${index}`
|
|
92
|
-
}, [
|
|
93
|
-
(0, import_vue.h)("a", {
|
|
94
|
-
class: "vxe-context-menu--link",
|
|
95
|
-
onClick(evnt) {
|
|
96
|
-
$xeTable.ctxMenuLinkEvent(evnt, item);
|
|
97
|
-
},
|
|
98
|
-
onMouseover(evnt) {
|
|
99
|
-
$xeTable.ctxMenuMouseoverEvent(evnt, item);
|
|
100
|
-
},
|
|
101
|
-
onMouseout(evnt) {
|
|
102
|
-
$xeTable.ctxMenuMouseoutEvent(evnt, item);
|
|
63
|
+
return (0, import_vue.h)(
|
|
64
|
+
import_vue.Teleport,
|
|
65
|
+
{
|
|
66
|
+
to: "body",
|
|
67
|
+
disabled: !transfer
|
|
68
|
+
},
|
|
69
|
+
[
|
|
70
|
+
(0, import_vue.h)(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
ref: refElem,
|
|
74
|
+
class: [
|
|
75
|
+
"vxe-table--context-menu-wrapper",
|
|
76
|
+
className,
|
|
77
|
+
{
|
|
78
|
+
"is--visible": visible
|
|
103
79
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const { loading: childLoading } = child;
|
|
136
|
-
const childPrefixOpts = Object.assign({}, child.prefixConfig);
|
|
137
|
-
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
|
|
138
|
-
const childSuffixOpts = Object.assign({}, child.suffixConfig);
|
|
139
|
-
const childSuffixIcon = childSuffixOpts.icon || child.suffixIcon;
|
|
140
|
-
const childMenuContent = (0, import_utils.getFuncText)(child.name);
|
|
141
|
-
return child.visible === false ? null : (0, import_vue.h)("li", {
|
|
142
|
-
class: ["vxe-table--context-menu--option", child.className, {
|
|
143
|
-
"link--loading": childLoading,
|
|
144
|
-
"link--disabled": child.disabled,
|
|
145
|
-
"link--active": child === ctxMenuStore.selectChild
|
|
146
|
-
}],
|
|
147
|
-
key: `${gIndex}_${index}_${cIndex}`
|
|
148
|
-
}, [
|
|
149
|
-
(0, import_vue.h)("a", {
|
|
150
|
-
class: "vxe-context-menu--link",
|
|
151
|
-
onClick(evnt) {
|
|
152
|
-
$xeTable.ctxMenuLinkEvent(evnt, child);
|
|
153
|
-
},
|
|
154
|
-
onMouseover(evnt) {
|
|
155
|
-
$xeTable.ctxMenuMouseoverEvent(evnt, item, child);
|
|
80
|
+
],
|
|
81
|
+
style: ctxMenuStore.style
|
|
82
|
+
},
|
|
83
|
+
(destroyOnClose ? visible : true) ? list.map((options, gIndex) => {
|
|
84
|
+
return options.every((item) => item.visible === false) ? renderEmptyElement($xeTable) : (0, import_vue.h)(
|
|
85
|
+
"ul",
|
|
86
|
+
{
|
|
87
|
+
class: "vxe-table--context-menu-group-wrapper",
|
|
88
|
+
key: gIndex
|
|
89
|
+
},
|
|
90
|
+
options.map((item, index) => {
|
|
91
|
+
const { children, loading } = item;
|
|
92
|
+
const hasChildMenus = children && children.some((child) => child.visible !== false);
|
|
93
|
+
const prefixOpts = Object.assign({}, item.prefixConfig);
|
|
94
|
+
const prefixIcon = prefixOpts.icon || item.prefixIcon;
|
|
95
|
+
const suffixOpts = Object.assign({}, item.suffixConfig);
|
|
96
|
+
const suffixIcon = suffixOpts.icon || item.suffixIcon;
|
|
97
|
+
const menuContent = (0, import_utils.getFuncText)(item.name);
|
|
98
|
+
return item.visible === false ? renderEmptyElement($xeTable) : (0, import_vue.h)(
|
|
99
|
+
"li",
|
|
100
|
+
{
|
|
101
|
+
class: [
|
|
102
|
+
"vxe-table--context-menu--option",
|
|
103
|
+
item.className,
|
|
104
|
+
{
|
|
105
|
+
"link--loading": loading,
|
|
106
|
+
"link--disabled": item.disabled,
|
|
107
|
+
"link--active": item === ctxMenuStore.selected
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
key: `${gIndex}_${index}`
|
|
156
111
|
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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);
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
[
|
|
128
|
+
(0, import_vue.h)(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
class: ["vxe-context-menu--link-prefix", prefixOpts.className || ""]
|
|
132
|
+
},
|
|
133
|
+
[
|
|
134
|
+
loading ? (0, import_vue.h)("span", {
|
|
135
|
+
class: getIcon("TABLE_MENU_OPTION_LOADING")
|
|
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
|
|
149
|
+
},
|
|
150
|
+
loading ? getI18n("vxe.table.menuLoading") : menuContent
|
|
151
|
+
),
|
|
152
|
+
(0, import_vue.h)(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
class: ["vxe-context-menu--link-suffix", suffixOpts.className || ""]
|
|
156
|
+
},
|
|
157
|
+
[
|
|
158
|
+
suffixIcon && import_xe_utils.default.isFunction(suffixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(suffixIcon({}))) : (0, import_vue.h)("i", {
|
|
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
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
children.map((child, cIndex) => {
|
|
177
|
+
const { loading: childLoading } = child;
|
|
178
|
+
const childPrefixOpts = Object.assign({}, child.prefixConfig);
|
|
179
|
+
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
|
|
180
|
+
const childSuffixOpts = Object.assign({}, child.suffixConfig);
|
|
181
|
+
const childSuffixIcon = childSuffixOpts.icon || child.suffixIcon;
|
|
182
|
+
const childMenuContent = (0, import_utils.getFuncText)(child.name);
|
|
183
|
+
return child.visible === false ? null : (0, import_vue.h)(
|
|
184
|
+
"li",
|
|
185
|
+
{
|
|
186
|
+
class: [
|
|
187
|
+
"vxe-table--context-menu--option",
|
|
188
|
+
child.className,
|
|
189
|
+
{
|
|
190
|
+
"link--loading": childLoading,
|
|
191
|
+
"link--disabled": child.disabled,
|
|
192
|
+
"link--active": child === ctxMenuStore.selectChild
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
key: `${gIndex}_${index}_${cIndex}`
|
|
196
|
+
},
|
|
197
|
+
[
|
|
198
|
+
(0, import_vue.h)(
|
|
199
|
+
"a",
|
|
200
|
+
{
|
|
201
|
+
class: "vxe-context-menu--link",
|
|
202
|
+
onClick(evnt) {
|
|
203
|
+
$xeTable.ctxMenuLinkEvent(evnt, child);
|
|
204
|
+
},
|
|
205
|
+
onMouseover(evnt) {
|
|
206
|
+
$xeTable.ctxMenuMouseoverEvent(evnt, item, child);
|
|
207
|
+
},
|
|
208
|
+
onMouseout(evnt) {
|
|
209
|
+
$xeTable.ctxMenuMouseoutEvent(evnt, item);
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
[
|
|
213
|
+
(0, import_vue.h)(
|
|
214
|
+
"div",
|
|
215
|
+
{
|
|
216
|
+
class: ["vxe-context-menu--link-prefix", childPrefixOpts.className || ""]
|
|
217
|
+
},
|
|
218
|
+
[
|
|
219
|
+
child.loading ? (0, import_vue.h)("span", {
|
|
220
|
+
class: getIcon("TABLE_MENU_OPTION_LOADING")
|
|
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
|
|
234
|
+
},
|
|
235
|
+
childLoading ? getI18n("vxe.table.menuLoading") : childMenuContent
|
|
236
|
+
),
|
|
237
|
+
(0, import_vue.h)(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
class: ["vxe-context-menu--link-suffix", childSuffixOpts.className || ""]
|
|
241
|
+
},
|
|
242
|
+
[
|
|
243
|
+
childSuffixIcon && import_xe_utils.default.isFunction(childSuffixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(childSuffixIcon({}))) : (0, import_vue.h)("i", {
|
|
244
|
+
class: childSuffixIcon
|
|
245
|
+
}),
|
|
246
|
+
childSuffixOpts.content ? (0, import_vue.h)("span", `${childSuffixOpts.content}`) : renderEmptyElement($xeTable)
|
|
247
|
+
]
|
|
248
|
+
)
|
|
249
|
+
]
|
|
250
|
+
)
|
|
251
|
+
]
|
|
252
|
+
);
|
|
169
253
|
})
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}, [
|
|
180
|
-
childSuffixIcon && import_xe_utils.default.isFunction(childSuffixIcon) ? (0, import_vue.h)("span", {}, (0, import_vn.getSlotVNs)(childSuffixIcon({}))) : (0, import_vue.h)("i", {
|
|
181
|
-
class: childSuffixIcon
|
|
182
|
-
}),
|
|
183
|
-
childSuffixOpts.content ? (0, import_vue.h)("span", `${childSuffixOpts.content}`) : renderEmptyElement($xeTable)
|
|
184
|
-
])
|
|
185
|
-
])
|
|
186
|
-
]);
|
|
187
|
-
})) : null
|
|
188
|
-
]);
|
|
189
|
-
}));
|
|
190
|
-
}) : [])
|
|
191
|
-
]);
|
|
254
|
+
) : null
|
|
255
|
+
]
|
|
256
|
+
);
|
|
257
|
+
})
|
|
258
|
+
);
|
|
259
|
+
}) : []
|
|
260
|
+
)
|
|
261
|
+
]
|
|
262
|
+
);
|
|
192
263
|
};
|
|
193
264
|
$xeMenuPanel.renderVN = renderVN;
|
|
194
265
|
return $xeMenuPanel;
|
|
@@ -23,13 +23,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
));
|
|
24
24
|
var import_vue = require("vue");
|
|
25
25
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
26
|
-
var
|
|
26
|
+
var import_core = require("@vxe-ui/core");
|
|
27
27
|
var import_utils = require("../../../ui/src/utils");
|
|
28
28
|
var import_dom = require("../../../ui/src/dom");
|
|
29
29
|
var import_util = require("../../src/util");
|
|
30
30
|
var import_log = require("../../../ui/src/log");
|
|
31
31
|
const { warnLog, errLog } = (0, import_log.createComponentLog)("table");
|
|
32
|
-
const { getConfig, validators, hooks } =
|
|
32
|
+
const { getConfig, validators, hooks } = import_core.VxeUI;
|
|
33
33
|
class Rule {
|
|
34
34
|
constructor(rule) {
|
|
35
35
|
Object.assign(this, {
|