vxe-table 4.23.8 → 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 +5715 -3783
- package/es/components.d.ts +1 -0
- package/es/components.js +2 -7
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +397 -120
- package/es/index.esm.js +1 -0
- package/es/index.js +1 -0
- package/es/table/module/custom/hook.js +49 -42
- package/es/table/module/custom/panel.js +777 -527
- package/es/table/module/edit/hook.js +140 -62
- package/es/table/module/export/export-panel.js +399 -316
- package/es/table/module/export/hook.js +395 -337
- package/es/table/module/export/import-panel.js +152 -123
- package/es/table/module/filter/hook.js +16 -2
- package/es/table/module/filter/panel.js +146 -84
- package/es/table/module/keyboard/hook.js +8 -4
- package/es/table/module/menu/panel.js +197 -126
- package/es/table/render/index.js +151 -98
- package/es/table/src/body.js +355 -233
- package/es/table/src/cell.js +426 -269
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/footer.js +144 -99
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +229 -172
- package/es/table/src/table.js +1503 -1030
- package/es/table/src/util.js +15 -19
- package/es/toolbar/src/toolbar.js +132 -75
- package/es/ui/index.js +1 -1
- 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/lib/components.js +2 -7
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +397 -120
- package/lib/index.common.js +1 -0
- package/lib/index.js +1 -0
- package/lib/index.umd.js +5732 -3800
- package/lib/index.umd.min.js +3 -3
- package/lib/table/module/custom/hook.js +49 -42
- package/lib/table/module/custom/panel.js +777 -527
- package/lib/table/module/edit/hook.js +140 -62
- package/lib/table/module/export/export-panel.js +399 -316
- package/lib/table/module/export/hook.js +395 -337
- package/lib/table/module/export/import-panel.js +152 -123
- package/lib/table/module/filter/hook.js +16 -2
- package/lib/table/module/filter/panel.js +146 -84
- package/lib/table/module/keyboard/hook.js +8 -4
- package/lib/table/module/menu/panel.js +197 -126
- package/lib/table/render/index.js +151 -98
- package/lib/table/src/body.js +355 -233
- package/lib/table/src/cell.js +426 -269
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/footer.js +144 -99
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +229 -172
- package/lib/table/src/table.js +1471 -1029
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/src/toolbar.js +132 -75
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/package.json +2 -2
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +41 -44
- 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 -11
- 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 -520
- 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 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
|
@@ -1,201 +1,272 @@
|
|
|
1
|
-
import { h, Teleport, inject, ref, Ref } from 'vue'
|
|
2
|
-
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
3
|
-
import XEUtils from 'xe-utils'
|
|
4
|
-
import { VxeUI } from '@vxe-ui/core'
|
|
5
|
-
import { getFuncText } from '../../../ui/src/utils'
|
|
6
|
-
import { getSlotVNs } from '../../../ui/src/vn'
|
|
7
|
-
|
|
8
|
-
import type { VxeTablePrivateMethods, VxeTableConstructor, VxeTableMethods } from '../../../../types'
|
|
9
|
-
|
|
10
|
-
const { getIcon, getI18n, renderEmptyElement } = VxeUI
|
|
11
|
-
|
|
12
|
-
export default defineVxeComponent({
|
|
13
|
-
name: 'VxeTableMenuPanel',
|
|
14
|
-
setup
|
|
15
|
-
const xID = XEUtils.uniqueId()
|
|
16
|
-
|
|
17
|
-
const $xeTable = inject('$xeTable', {} as VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods)
|
|
18
|
-
|
|
19
|
-
const { reactData: tableReactData } = $xeTable
|
|
20
|
-
|
|
21
|
-
const refElem = ref() as Ref<HTMLDivElement>
|
|
22
|
-
|
|
23
|
-
const refMaps = {
|
|
24
|
-
refElem
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const $xeMenuPanel: any = {
|
|
28
|
-
xID,
|
|
29
|
-
props,
|
|
30
|
-
context,
|
|
31
|
-
getRefMaps: () => refMaps
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const renderVN = () => {
|
|
35
|
-
const { ctxMenuStore } = tableReactData
|
|
36
|
-
const { computeMenuOpts } = $xeTable.getComputeMaps()
|
|
37
|
-
const menuOpts = computeMenuOpts.value
|
|
38
|
-
const { transfer, destroyOnClose, className } = menuOpts
|
|
39
|
-
const { visible, list } = ctxMenuStore
|
|
40
|
-
|
|
41
|
-
return h(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
|
|
1
|
+
import { h, Teleport, inject, ref, Ref } from 'vue'
|
|
2
|
+
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
3
|
+
import XEUtils from 'xe-utils'
|
|
4
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
5
|
+
import { getFuncText } from '../../../ui/src/utils'
|
|
6
|
+
import { getSlotVNs } from '../../../ui/src/vn'
|
|
7
|
+
|
|
8
|
+
import type { VxeTablePrivateMethods, VxeTableConstructor, VxeTableMethods } from '../../../../types'
|
|
9
|
+
|
|
10
|
+
const { getIcon, getI18n, renderEmptyElement } = VxeUI
|
|
11
|
+
|
|
12
|
+
export default defineVxeComponent({
|
|
13
|
+
name: 'VxeTableMenuPanel',
|
|
14
|
+
setup(props, context) {
|
|
15
|
+
const xID = XEUtils.uniqueId()
|
|
16
|
+
|
|
17
|
+
const $xeTable = inject('$xeTable', {} as VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods)
|
|
18
|
+
|
|
19
|
+
const { reactData: tableReactData } = $xeTable
|
|
20
|
+
|
|
21
|
+
const refElem = ref() as Ref<HTMLDivElement>
|
|
22
|
+
|
|
23
|
+
const refMaps = {
|
|
24
|
+
refElem
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const $xeMenuPanel: any = {
|
|
28
|
+
xID,
|
|
29
|
+
props,
|
|
30
|
+
context,
|
|
31
|
+
getRefMaps: () => refMaps
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const renderVN = () => {
|
|
35
|
+
const { ctxMenuStore } = tableReactData
|
|
36
|
+
const { computeMenuOpts } = $xeTable.getComputeMaps()
|
|
37
|
+
const menuOpts = computeMenuOpts.value
|
|
38
|
+
const { transfer, destroyOnClose, className } = menuOpts
|
|
39
|
+
const { visible, list } = ctxMenuStore
|
|
40
|
+
|
|
41
|
+
return h(
|
|
42
|
+
Teleport,
|
|
43
|
+
{
|
|
44
|
+
to: 'body',
|
|
45
|
+
disabled: !transfer
|
|
46
|
+
},
|
|
47
|
+
[
|
|
48
|
+
h(
|
|
49
|
+
'div',
|
|
50
|
+
{
|
|
51
|
+
ref: refElem,
|
|
52
|
+
class: [
|
|
53
|
+
'vxe-table--context-menu-wrapper',
|
|
54
|
+
className,
|
|
55
|
+
{
|
|
56
|
+
'is--visible': visible
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
style: ctxMenuStore.style
|
|
60
|
+
},
|
|
61
|
+
(destroyOnClose ? visible : true)
|
|
62
|
+
? list.map((options, gIndex) => {
|
|
63
|
+
return options.every((item) => item.visible === false)
|
|
64
|
+
? renderEmptyElement($xeTable)
|
|
65
|
+
: h(
|
|
66
|
+
'ul',
|
|
67
|
+
{
|
|
68
|
+
class: 'vxe-table--context-menu-group-wrapper',
|
|
69
|
+
key: gIndex
|
|
70
|
+
},
|
|
71
|
+
options.map((item, index) => {
|
|
72
|
+
const { children, loading } = item
|
|
73
|
+
const hasChildMenus = children && children.some((child) => child.visible !== false)
|
|
74
|
+
const prefixOpts = Object.assign({}, item.prefixConfig)
|
|
75
|
+
const prefixIcon = prefixOpts.icon || item.prefixIcon
|
|
76
|
+
const suffixOpts = Object.assign({}, item.suffixConfig)
|
|
77
|
+
const suffixIcon = suffixOpts.icon || item.suffixIcon
|
|
78
|
+
const menuContent = getFuncText(item.name)
|
|
79
|
+
return item.visible === false
|
|
80
|
+
? renderEmptyElement($xeTable)
|
|
81
|
+
: h(
|
|
82
|
+
'li',
|
|
83
|
+
{
|
|
84
|
+
class: [
|
|
85
|
+
'vxe-table--context-menu--option',
|
|
86
|
+
item.className,
|
|
87
|
+
{
|
|
88
|
+
'link--loading': loading,
|
|
89
|
+
'link--disabled': item.disabled,
|
|
90
|
+
'link--active': item === ctxMenuStore.selected
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
key: `${gIndex}_${index}`
|
|
94
|
+
},
|
|
95
|
+
[
|
|
96
|
+
h(
|
|
97
|
+
'a',
|
|
98
|
+
{
|
|
99
|
+
class: 'vxe-context-menu--link',
|
|
100
|
+
onClick(evnt: Event) {
|
|
101
|
+
$xeTable.ctxMenuLinkEvent(evnt, item)
|
|
102
|
+
},
|
|
103
|
+
onMouseover(evnt: Event) {
|
|
104
|
+
$xeTable.ctxMenuMouseoverEvent(evnt, item)
|
|
105
|
+
},
|
|
106
|
+
onMouseout(evnt: Event) {
|
|
107
|
+
$xeTable.ctxMenuMouseoutEvent(evnt, item)
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
[
|
|
111
|
+
h(
|
|
112
|
+
'div',
|
|
113
|
+
{
|
|
114
|
+
class: ['vxe-context-menu--link-prefix', prefixOpts.className || '']
|
|
115
|
+
},
|
|
116
|
+
[
|
|
117
|
+
loading
|
|
118
|
+
? h('span', {
|
|
119
|
+
class: getIcon('TABLE_MENU_OPTION_LOADING')
|
|
120
|
+
})
|
|
121
|
+
: prefixIcon && XEUtils.isFunction(prefixIcon)
|
|
122
|
+
? h('span', {}, getSlotVNs(prefixIcon({})))
|
|
123
|
+
: h('span', {}, [
|
|
124
|
+
h('i', {
|
|
125
|
+
class: prefixIcon
|
|
126
|
+
})
|
|
127
|
+
]),
|
|
128
|
+
prefixOpts.content ? h('span', {}, `${prefixOpts.content}`) : renderEmptyElement($xeTable)
|
|
129
|
+
]
|
|
130
|
+
),
|
|
131
|
+
h(
|
|
132
|
+
'div',
|
|
133
|
+
{
|
|
134
|
+
class: 'vxe-context-menu--link-content',
|
|
135
|
+
title: menuContent
|
|
136
|
+
},
|
|
137
|
+
loading ? getI18n('vxe.table.menuLoading') : menuContent
|
|
138
|
+
),
|
|
139
|
+
h(
|
|
140
|
+
'div',
|
|
141
|
+
{
|
|
142
|
+
class: ['vxe-context-menu--link-suffix', suffixOpts.className || '']
|
|
143
|
+
},
|
|
144
|
+
[
|
|
145
|
+
suffixIcon && XEUtils.isFunction(suffixIcon)
|
|
146
|
+
? h('span', {}, getSlotVNs(suffixIcon({})))
|
|
147
|
+
: h('i', {
|
|
148
|
+
class: suffixIcon || (hasChildMenus ? getIcon().TABLE_MENU_OPTIONS : '')
|
|
149
|
+
}),
|
|
150
|
+
suffixOpts.content ? h('span', `${suffixOpts.content}`) : renderEmptyElement($xeTable)
|
|
151
|
+
]
|
|
152
|
+
)
|
|
153
|
+
]
|
|
154
|
+
),
|
|
155
|
+
hasChildMenus && children
|
|
156
|
+
? h(
|
|
157
|
+
'ul',
|
|
158
|
+
{
|
|
159
|
+
class: [
|
|
160
|
+
'vxe-table--context-menu-clild-wrapper',
|
|
161
|
+
{
|
|
162
|
+
'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
children.map((child, cIndex) => {
|
|
167
|
+
const { loading: childLoading } = child
|
|
168
|
+
const childPrefixOpts = Object.assign({}, child.prefixConfig)
|
|
169
|
+
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon
|
|
170
|
+
const childSuffixOpts = Object.assign({}, child.suffixConfig)
|
|
171
|
+
const childSuffixIcon = childSuffixOpts.icon || child.suffixIcon
|
|
172
|
+
const childMenuContent = getFuncText(child.name)
|
|
173
|
+
return child.visible === false
|
|
174
|
+
? null
|
|
175
|
+
: h(
|
|
176
|
+
'li',
|
|
177
|
+
{
|
|
178
|
+
class: [
|
|
179
|
+
'vxe-table--context-menu--option',
|
|
180
|
+
child.className,
|
|
181
|
+
{
|
|
182
|
+
'link--loading': childLoading,
|
|
183
|
+
'link--disabled': child.disabled,
|
|
184
|
+
'link--active': child === ctxMenuStore.selectChild
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
key: `${gIndex}_${index}_${cIndex}`
|
|
188
|
+
},
|
|
189
|
+
[
|
|
190
|
+
h(
|
|
191
|
+
'a',
|
|
192
|
+
{
|
|
193
|
+
class: 'vxe-context-menu--link',
|
|
194
|
+
onClick(evnt: Event) {
|
|
195
|
+
$xeTable.ctxMenuLinkEvent(evnt, child)
|
|
196
|
+
},
|
|
197
|
+
onMouseover(evnt: Event) {
|
|
198
|
+
$xeTable.ctxMenuMouseoverEvent(evnt, item, child)
|
|
199
|
+
},
|
|
200
|
+
onMouseout(evnt: Event) {
|
|
201
|
+
$xeTable.ctxMenuMouseoutEvent(evnt, item)
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
[
|
|
205
|
+
h(
|
|
206
|
+
'div',
|
|
207
|
+
{
|
|
208
|
+
class: ['vxe-context-menu--link-prefix', childPrefixOpts.className || '']
|
|
209
|
+
},
|
|
210
|
+
[
|
|
211
|
+
child.loading
|
|
212
|
+
? h('span', {
|
|
213
|
+
class: getIcon('TABLE_MENU_OPTION_LOADING')
|
|
214
|
+
})
|
|
215
|
+
: childPrefixIcon && XEUtils.isFunction(childPrefixIcon)
|
|
216
|
+
? h('span', {}, getSlotVNs(childPrefixIcon({})))
|
|
217
|
+
: h('span', {}, [
|
|
218
|
+
h('i', {
|
|
219
|
+
class: childPrefixIcon
|
|
220
|
+
})
|
|
221
|
+
]),
|
|
222
|
+
childPrefixOpts.content ? h('span', `${childPrefixOpts.content}`) : renderEmptyElement($xeTable)
|
|
223
|
+
]
|
|
224
|
+
),
|
|
225
|
+
h(
|
|
226
|
+
'div',
|
|
227
|
+
{
|
|
228
|
+
class: 'vxe-context-menu--link-content',
|
|
229
|
+
title: childMenuContent
|
|
230
|
+
},
|
|
231
|
+
childLoading ? getI18n('vxe.table.menuLoading') : childMenuContent
|
|
232
|
+
),
|
|
233
|
+
h(
|
|
234
|
+
'div',
|
|
235
|
+
{
|
|
236
|
+
class: ['vxe-context-menu--link-suffix', childSuffixOpts.className || '']
|
|
237
|
+
},
|
|
238
|
+
[
|
|
239
|
+
childSuffixIcon && XEUtils.isFunction(childSuffixIcon)
|
|
240
|
+
? h('span', {}, getSlotVNs(childSuffixIcon({})))
|
|
241
|
+
: h('i', {
|
|
242
|
+
class: childSuffixIcon
|
|
243
|
+
}),
|
|
244
|
+
childSuffixOpts.content ? h('span', `${childSuffixOpts.content}`) : renderEmptyElement($xeTable)
|
|
245
|
+
]
|
|
246
|
+
)
|
|
247
|
+
]
|
|
248
|
+
)
|
|
249
|
+
]
|
|
250
|
+
)
|
|
251
|
+
})
|
|
252
|
+
)
|
|
253
|
+
: null
|
|
254
|
+
]
|
|
255
|
+
)
|
|
256
|
+
})
|
|
257
|
+
)
|
|
258
|
+
})
|
|
259
|
+
: []
|
|
260
|
+
)
|
|
261
|
+
]
|
|
262
|
+
)
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
$xeMenuPanel.renderVN = renderVN
|
|
266
|
+
|
|
267
|
+
return $xeMenuPanel
|
|
268
|
+
},
|
|
269
|
+
render() {
|
|
270
|
+
return this.renderVN()
|
|
271
|
+
}
|
|
272
|
+
})
|