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.
Files changed (216) hide show
  1. package/dist/all.esm.js +4789 -4773
  2. package/dist/all.esm.min.js +3 -3
  3. package/es/colgroup/index.d.ts +18 -18
  4. package/es/column/index.d.ts +18 -18
  5. package/es/grid/index.d.ts +174 -174
  6. package/es/grid/src/emits.d.ts +1 -1
  7. package/es/grid/src/emits.js +3 -3
  8. package/es/grid/src/grid.d.ts +27 -27
  9. package/es/grid/src/grid.js +10 -10
  10. package/es/grid/src/props.d.ts +2 -2
  11. package/es/grid/src/props.js +4 -4
  12. package/es/index.esm.js +1 -0
  13. package/es/index.js +1 -0
  14. package/es/table/index.d.ts +174 -174
  15. package/es/table/module/custom/panel.js +1588 -1585
  16. package/es/table/module/export/export-panel.js +587 -584
  17. package/es/table/module/export/import-panel.js +258 -255
  18. package/es/table/module/filter/hook.js +1 -15
  19. package/es/table/module/filter/panel.js +281 -278
  20. package/es/table/module/menu/panel.js +225 -222
  21. package/es/table/src/body.js +895 -892
  22. package/es/table/src/column.d.ts +3 -3
  23. package/es/table/src/emits.d.ts +1 -1
  24. package/es/table/src/emits.js +2 -2
  25. package/es/table/src/footer.d.ts +2 -2
  26. package/es/table/src/footer.js +341 -338
  27. package/es/table/src/group.d.ts +3 -3
  28. package/es/table/src/header.js +539 -536
  29. package/es/table/src/props.d.ts +2 -2
  30. package/es/table/src/props.js +2 -2
  31. package/es/table/src/table.d.ts +27 -27
  32. package/es/table/src/table.js +15 -10
  33. package/es/toolbar/index.d.ts +18 -18
  34. package/es/toolbar/src/toolbar.d.ts +3 -3
  35. package/es/ui/index.js +1 -1
  36. package/es/ui/src/dom.d.ts +1 -1
  37. package/es/ui/src/log.js +1 -1
  38. package/es/ui/src/vn.d.ts +2 -2
  39. package/lib/colgroup/index.d.ts +760 -0
  40. package/lib/column/index.d.ts +760 -0
  41. package/lib/components.d.ts +13 -0
  42. package/lib/grid/index.d.ts +2824 -0
  43. package/lib/grid/src/emits.d.ts +2 -0
  44. package/lib/grid/src/emits.js +2 -2
  45. package/lib/grid/src/grid.d.ts +556 -0
  46. package/lib/grid/src/grid.js +6 -6
  47. package/lib/grid/src/props.d.ts +200 -0
  48. package/lib/grid/src/props.js +3 -3
  49. package/lib/index.common.js +1 -0
  50. package/lib/index.d.ts +3 -0
  51. package/lib/index.js +1 -0
  52. package/lib/index.umd.js +4789 -4773
  53. package/lib/index.umd.min.js +3 -3
  54. package/lib/locale/ar-EG.umd.d.ts +908 -0
  55. package/lib/locale/de-DE.umd.d.ts +908 -0
  56. package/lib/locale/en-US.umd.d.ts +908 -0
  57. package/lib/locale/es-ES.umd.d.ts +908 -0
  58. package/lib/locale/fr-FR.umd.d.ts +908 -0
  59. package/lib/locale/hu-HU.umd.d.ts +908 -0
  60. package/lib/locale/hy-AM.umd.d.ts +908 -0
  61. package/lib/locale/id-ID.umd.d.ts +908 -0
  62. package/lib/locale/it-IT.umd.d.ts +908 -0
  63. package/lib/locale/ja-JP.umd.d.ts +908 -0
  64. package/lib/locale/ko-KR.umd.d.ts +908 -0
  65. package/lib/locale/lang/ar-EG.d.ts +908 -0
  66. package/lib/locale/lang/ar-EG.umd.d.ts +908 -0
  67. package/lib/locale/lang/de-DE.d.ts +908 -0
  68. package/lib/locale/lang/de-DE.umd.d.ts +908 -0
  69. package/lib/locale/lang/en-US.d.ts +908 -0
  70. package/lib/locale/lang/en-US.umd.d.ts +908 -0
  71. package/lib/locale/lang/es-ES.d.ts +908 -0
  72. package/lib/locale/lang/es-ES.umd.d.ts +908 -0
  73. package/lib/locale/lang/fr-FR.d.ts +908 -0
  74. package/lib/locale/lang/fr-FR.umd.d.ts +908 -0
  75. package/lib/locale/lang/hu-HU.d.ts +908 -0
  76. package/lib/locale/lang/hu-HU.umd.d.ts +908 -0
  77. package/lib/locale/lang/hy-AM.d.ts +908 -0
  78. package/lib/locale/lang/hy-AM.umd.d.ts +908 -0
  79. package/lib/locale/lang/id-ID.d.ts +908 -0
  80. package/lib/locale/lang/id-ID.umd.d.ts +908 -0
  81. package/lib/locale/lang/it-IT.d.ts +908 -0
  82. package/lib/locale/lang/it-IT.umd.d.ts +908 -0
  83. package/lib/locale/lang/ja-JP.d.ts +908 -0
  84. package/lib/locale/lang/ja-JP.umd.d.ts +908 -0
  85. package/lib/locale/lang/ko-KR.d.ts +908 -0
  86. package/lib/locale/lang/ko-KR.umd.d.ts +908 -0
  87. package/lib/locale/lang/ms-MY.d.ts +908 -0
  88. package/lib/locale/lang/ms-MY.umd.d.ts +908 -0
  89. package/lib/locale/lang/nb-NO.d.ts +908 -0
  90. package/lib/locale/lang/nb-NO.umd.d.ts +908 -0
  91. package/lib/locale/lang/pt-BR.d.ts +908 -0
  92. package/lib/locale/lang/pt-BR.umd.d.ts +908 -0
  93. package/lib/locale/lang/ru-RU.d.ts +908 -0
  94. package/lib/locale/lang/ru-RU.umd.d.ts +908 -0
  95. package/lib/locale/lang/th-TH.d.ts +908 -0
  96. package/lib/locale/lang/th-TH.umd.d.ts +908 -0
  97. package/lib/locale/lang/ug-CN.d.ts +908 -0
  98. package/lib/locale/lang/ug-CN.umd.d.ts +908 -0
  99. package/lib/locale/lang/uk-UA.d.ts +908 -0
  100. package/lib/locale/lang/uk-UA.umd.d.ts +908 -0
  101. package/lib/locale/lang/uz-UZ.d.ts +908 -0
  102. package/lib/locale/lang/uz-UZ.umd.d.ts +908 -0
  103. package/lib/locale/lang/vi-VN.d.ts +908 -0
  104. package/lib/locale/lang/vi-VN.umd.d.ts +908 -0
  105. package/lib/locale/lang/zh-CHT.d.ts +908 -0
  106. package/lib/locale/lang/zh-CHT.umd.d.ts +908 -0
  107. package/lib/locale/lang/zh-CN.d.ts +908 -0
  108. package/lib/locale/lang/zh-CN.umd.d.ts +908 -0
  109. package/lib/locale/lang/zh-HK.d.ts +908 -0
  110. package/lib/locale/lang/zh-HK.umd.d.ts +908 -0
  111. package/lib/locale/lang/zh-MO.d.ts +908 -0
  112. package/lib/locale/lang/zh-MO.umd.d.ts +908 -0
  113. package/lib/locale/lang/zh-TC.d.ts +908 -0
  114. package/lib/locale/lang/zh-TC.umd.d.ts +908 -0
  115. package/lib/locale/lang/zh-TW.d.ts +908 -0
  116. package/lib/locale/lang/zh-TW.umd.d.ts +908 -0
  117. package/lib/locale/ms-MY.umd.d.ts +908 -0
  118. package/lib/locale/nb-NO.umd.d.ts +908 -0
  119. package/lib/locale/pt-BR.umd.d.ts +908 -0
  120. package/lib/locale/ru-RU.umd.d.ts +908 -0
  121. package/lib/locale/th-TH.umd.d.ts +908 -0
  122. package/lib/locale/ug-CN.umd.d.ts +908 -0
  123. package/lib/locale/uk-UA.umd.d.ts +908 -0
  124. package/lib/locale/uz-UZ.umd.d.ts +908 -0
  125. package/lib/locale/vi-VN.umd.d.ts +908 -0
  126. package/lib/locale/zh-CHT.umd.d.ts +908 -0
  127. package/lib/locale/zh-CN.umd.d.ts +908 -0
  128. package/lib/locale/zh-HK.umd.d.ts +908 -0
  129. package/lib/locale/zh-MO.umd.d.ts +908 -0
  130. package/lib/locale/zh-TC.umd.d.ts +908 -0
  131. package/lib/locale/zh-TW.umd.d.ts +908 -0
  132. package/lib/table/index.d.ts +2672 -0
  133. package/lib/table/module/custom/hook.d.ts +1 -0
  134. package/lib/table/module/custom/panel.d.ts +17 -0
  135. package/lib/table/module/custom/panel.js +1588 -1585
  136. package/lib/table/module/edit/hook.d.ts +1 -0
  137. package/lib/table/module/export/export-panel.d.ts +27 -0
  138. package/lib/table/module/export/export-panel.js +587 -584
  139. package/lib/table/module/export/hook.d.ts +1 -0
  140. package/lib/table/module/export/import-panel.d.ts +27 -0
  141. package/lib/table/module/export/import-panel.js +258 -255
  142. package/lib/table/module/export/util.d.ts +5 -0
  143. package/lib/table/module/filter/hook.d.ts +1 -0
  144. package/lib/table/module/filter/hook.js +1 -15
  145. package/lib/table/module/filter/panel.d.ts +16 -0
  146. package/lib/table/module/filter/panel.js +281 -278
  147. package/lib/table/module/keyboard/hook.d.ts +1 -0
  148. package/lib/table/module/menu/hook.d.ts +1 -0
  149. package/lib/table/module/menu/panel.d.ts +2 -0
  150. package/lib/table/module/menu/panel.js +225 -222
  151. package/lib/table/module/validator/hook.d.ts +1 -0
  152. package/lib/table/render/index.d.ts +1 -0
  153. package/lib/table/src/body.d.ts +24 -0
  154. package/lib/table/src/body.js +895 -892
  155. package/lib/table/src/cell.d.ts +192 -0
  156. package/lib/table/src/column.d.ts +263 -0
  157. package/lib/table/src/columnInfo.d.ts +13 -0
  158. package/lib/table/src/emits.d.ts +2 -0
  159. package/lib/table/src/emits.js +2 -2
  160. package/lib/table/src/footer.d.ts +45 -0
  161. package/lib/table/src/footer.js +341 -338
  162. package/lib/table/src/group.d.ts +178 -0
  163. package/lib/table/src/header.d.ts +26 -0
  164. package/lib/table/src/header.js +539 -536
  165. package/lib/table/src/props.d.ts +238 -0
  166. package/lib/table/src/props.js +2 -2
  167. package/lib/table/src/store.d.ts +6 -0
  168. package/lib/table/src/table.d.ts +539 -0
  169. package/lib/table/src/table.js +13 -8
  170. package/lib/table/src/use/cell-view.d.ts +10 -0
  171. package/lib/table/src/use/index.d.ts +1 -0
  172. package/lib/table/src/util.d.ts +74 -0
  173. package/lib/toolbar/index.d.ts +340 -0
  174. package/lib/toolbar/src/toolbar.d.ts +75 -0
  175. package/lib/ui/index.d.ts +85 -0
  176. package/lib/ui/index.js +1 -1
  177. package/lib/ui/src/anime.d.ts +10 -0
  178. package/lib/ui/src/comp.d.ts +2 -0
  179. package/lib/ui/src/dom.d.ts +80 -0
  180. package/lib/ui/src/log.d.ts +6 -0
  181. package/lib/ui/src/log.js +1 -1
  182. package/lib/ui/src/utils.d.ts +23 -0
  183. package/lib/ui/src/vn.d.ts +7 -0
  184. package/lib/v-x-e-table/index.d.ts +2 -0
  185. package/lib/vxe-colgroup/index.d.ts +3 -0
  186. package/lib/vxe-column/index.d.ts +3 -0
  187. package/lib/vxe-grid/index.d.ts +3 -0
  188. package/lib/vxe-table/index.d.ts +3 -0
  189. package/lib/vxe-toolbar/index.d.ts +3 -0
  190. package/lib/vxe-ui/index.d.ts +3 -0
  191. package/package.json +2 -2
  192. package/packages/grid/src/emits.ts +2 -2
  193. package/packages/grid/src/grid.ts +8 -8
  194. package/packages/grid/src/props.ts +3 -3
  195. package/packages/index.ts +2 -2
  196. package/packages/table/module/custom/panel.ts +2 -2
  197. package/packages/table/module/export/export-panel.ts +2 -2
  198. package/packages/table/module/export/import-panel.ts +2 -2
  199. package/packages/table/module/filter/hook.ts +1 -15
  200. package/packages/table/module/filter/panel.ts +2 -2
  201. package/packages/table/module/menu/panel.ts +2 -2
  202. package/packages/table/src/body.ts +2 -2
  203. package/packages/table/src/emits.ts +1 -1
  204. package/packages/table/src/footer.ts +2 -2
  205. package/packages/table/src/header.ts +2 -2
  206. package/packages/table/src/props.ts +1 -1
  207. package/packages/table/src/table.ts +21 -33
  208. /package/dist/{iconfont.1793090564415.ttf → iconfont.1793627868721.ttf} +0 -0
  209. /package/dist/{iconfont.1793090564415.woff → iconfont.1793627868721.woff} +0 -0
  210. /package/dist/{iconfont.1793090564415.woff2 → iconfont.1793627868721.woff2} +0 -0
  211. /package/es/{iconfont.1793090564415.ttf → iconfont.1793627868721.ttf} +0 -0
  212. /package/es/{iconfont.1793090564415.woff → iconfont.1793627868721.woff} +0 -0
  213. /package/es/{iconfont.1793090564415.woff2 → iconfont.1793627868721.woff2} +0 -0
  214. /package/lib/{iconfont.1793090564415.ttf → iconfont.1793627868721.ttf} +0 -0
  215. /package/lib/{iconfont.1793090564415.woff → iconfont.1793627868721.woff} +0 -0
  216. /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 = (0, import_comp.defineVxeComponent)({
42
- name: "VxeTableMenuPanel",
43
- setup(props, context) {
44
- const xID = import_xe_utils.default.uniqueId();
45
- const $xeTable = (0, import_vue.inject)("$xeTable", {});
46
- const { reactData: tableReactData } = $xeTable;
47
- const refElem = (0, import_vue.ref)();
48
- const refMaps = {
49
- refElem
50
- };
51
- const $xeMenuPanel = {
52
- xID,
53
- props,
54
- context,
55
- getRefMaps: () => refMaps
56
- };
57
- const renderVN = () => {
58
- const { ctxMenuStore } = tableReactData;
59
- const { computeMenuOpts } = $xeTable.getComputeMaps();
60
- const menuOpts = computeMenuOpts.value;
61
- const { transfer, destroyOnClose, className } = menuOpts;
62
- const { visible, list } = ctxMenuStore;
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
79
- }
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}`
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
- (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
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
- loading ? getI18n("vxe.table.menuLoading") : menuContent
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
- 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
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.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);
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
- (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
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
- childLoading ? getI18n("vxe.table.menuLoading") : childMenuContent
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
- 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
- );
253
- })
254
- ) : null
255
- ]
256
- );
257
- })
258
- );
259
- }) : []
260
- )
261
- ]
262
- );
263
- };
264
- $xeMenuPanel.renderVN = renderVN;
265
- return $xeMenuPanel;
266
- },
267
- render() {
268
- return this.renderVN();
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;