tabula-vue 1.0.0 → 1.0.2

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 (204) hide show
  1. package/es/component.mjs +4 -0
  2. package/es/components/dialog/index.d.ts +30 -30
  3. package/es/components/dialog/src/index.vue.d.ts +2 -2
  4. package/es/components/dialog-form/index.d.ts +2 -2
  5. package/es/components/dialog-form/src/index.vue.d.ts +2 -2
  6. package/es/components/display-item/index.d.ts +25 -25
  7. package/es/components/display-item/src/index.vue.d.ts +7 -7
  8. package/es/components/drawer-form/index.d.ts +50 -50
  9. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  10. package/es/components/form/index.d.ts +99 -99
  11. package/es/components/form/src/form-content.vue.d.ts +12 -12
  12. package/es/components/form/src/index.vue.d.ts +11 -11
  13. package/es/components/form-item/index.d.ts +80 -80
  14. package/es/components/form-item/src/index.vue.d.ts +9 -9
  15. package/es/components/index.d.ts +2 -0
  16. package/es/components/index.mjs +6 -0
  17. package/es/components/input-tag/index.d.ts +6 -6
  18. package/es/components/input-tag/src/index.vue.d.ts +6 -6
  19. package/es/components/layout/index.d.ts +30 -30
  20. package/es/components/layout/src/index.vue.d.ts +10 -10
  21. package/es/components/page/index.d.ts +9087 -4864
  22. package/es/components/page/src/index.vue.d.ts +1903 -513
  23. package/es/components/page/src/index.vue2.mjs +43 -12
  24. package/es/components/popover/index.d.ts +49 -49
  25. package/es/components/popover/src/index.vue.d.ts +3 -3
  26. package/es/components/render/index.d.ts +14 -14
  27. package/es/components/render/src/index.vue.d.ts +1 -1
  28. package/es/components/search/index.d.ts +298 -298
  29. package/es/components/search/src/index.vue.d.ts +84 -84
  30. package/es/components/sidebar/index.d.ts +31 -31
  31. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  32. package/es/components/table/index.d.ts +165 -180
  33. package/es/components/table/index.mjs +3 -0
  34. package/es/components/table/src/index.vue.d.ts +12 -21
  35. package/es/components/table/src/index.vue2.mjs +11 -34
  36. package/es/components/table/src/table-action-bar-content.vue.d.ts +78 -0
  37. package/es/components/table/src/table-action-bar-content.vue.mjs +6 -0
  38. package/es/components/table/src/table-action-bar-content.vue2.mjs +395 -0
  39. package/es/components/table/src/table-action-bar.vue.d.ts +4 -4
  40. package/es/components/table/src/table-action-bar.vue2.mjs +30 -353
  41. package/es/components/table/src/table-column-drag-sort.vue.d.ts +1 -1
  42. package/es/components/table/src/table-column-index.vue.d.ts +1 -1
  43. package/es/components/table/src/table-column.vue.d.ts +22 -29
  44. package/es/components/table/src/table-column.vue2.mjs +4 -57
  45. package/es/components/table/src/table-title-bar.vue.d.ts +2 -2
  46. package/es/components/table/src/type.d.ts +0 -11
  47. package/es/components/table/src/use-columns.d.ts +26 -0
  48. package/es/components/table/src/use-columns.mjs +40 -0
  49. package/es/components/table-lite/index.d.ts +1783 -0
  50. package/es/components/table-lite/index.mjs +6 -0
  51. package/es/components/table-lite/src/index.vue.d.ts +672 -0
  52. package/es/components/table-lite/src/index.vue.mjs +6 -0
  53. package/es/components/table-lite/src/index.vue2.mjs +681 -0
  54. package/es/components/table-lite/src/type.d.ts +91 -0
  55. package/es/components/table-lite/src/type.mjs +1 -0
  56. package/es/components/table-lite/style/css.d.ts +16 -0
  57. package/es/components/table-lite/style/css.mjs +16 -0
  58. package/es/components/table-lite/style/index.d.ts +16 -0
  59. package/es/components/table-lite/style/index.mjs +16 -0
  60. package/es/components/table-v2/index.d.ts +174 -0
  61. package/es/components/table-v2/index.mjs +7 -0
  62. package/es/components/table-v2/src/column-converter.d.ts +27 -0
  63. package/es/components/table-v2/src/column-converter.mjs +42 -0
  64. package/es/components/table-v2/src/index.vue.d.ts +157 -0
  65. package/es/components/table-v2/src/index.vue.mjs +6 -0
  66. package/es/components/table-v2/src/index.vue2.mjs +491 -0
  67. package/es/components/table-v2/src/special-columns.d.ts +61 -0
  68. package/es/components/table-v2/src/special-columns.mjs +76 -0
  69. package/es/components/table-v2/src/table-v2-cell.d.ts +104 -0
  70. package/es/components/table-v2/src/table-v2-cell.mjs +139 -0
  71. package/es/components/table-v2/src/table-v2-header-cell.vue.d.ts +61 -0
  72. package/es/components/table-v2/src/table-v2-header-cell.vue.mjs +6 -0
  73. package/es/components/table-v2/src/table-v2-header-cell.vue2.mjs +92 -0
  74. package/es/components/table-v2/src/type.d.ts +95 -0
  75. package/es/components/table-v2/src/type.mjs +1 -0
  76. package/es/components/table-v2/src/use-table-v2-columns.d.ts +43 -0
  77. package/es/components/table-v2/src/use-table-v2-columns.mjs +47 -0
  78. package/es/components/table-v2/style/css.d.ts +17 -0
  79. package/es/components/table-v2/style/css.mjs +17 -0
  80. package/es/components/table-v2/style/index.d.ts +17 -0
  81. package/es/components/table-v2/style/index.mjs +17 -0
  82. package/es/index.mjs +6 -0
  83. package/es/version.d.ts +1 -1
  84. package/es/version.mjs +1 -1
  85. package/index.css +1 -1
  86. package/index.js +1850 -279
  87. package/index.min.js +9 -6
  88. package/index.min.mjs +9 -6
  89. package/index.mjs +1813 -248
  90. package/lib/component.js +42 -38
  91. package/lib/components/dialog/index.d.ts +30 -30
  92. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  93. package/lib/components/dialog-form/index.d.ts +2 -2
  94. package/lib/components/dialog-form/src/index.vue.d.ts +2 -2
  95. package/lib/components/display-item/index.d.ts +25 -25
  96. package/lib/components/display-item/src/index.vue.d.ts +7 -7
  97. package/lib/components/drawer-form/index.d.ts +50 -50
  98. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  99. package/lib/components/form/index.d.ts +99 -99
  100. package/lib/components/form/src/form-content.vue.d.ts +12 -12
  101. package/lib/components/form/src/index.vue.d.ts +11 -11
  102. package/lib/components/form-item/index.d.ts +80 -80
  103. package/lib/components/form-item/src/index.vue.d.ts +9 -9
  104. package/lib/components/index.d.ts +2 -0
  105. package/lib/components/index.js +51 -39
  106. package/lib/components/input-tag/index.d.ts +6 -6
  107. package/lib/components/input-tag/src/index.vue.d.ts +6 -6
  108. package/lib/components/layout/index.d.ts +30 -30
  109. package/lib/components/layout/src/index.vue.d.ts +10 -10
  110. package/lib/components/page/index.d.ts +9087 -4864
  111. package/lib/components/page/src/index.vue.d.ts +1903 -513
  112. package/lib/components/page/src/index.vue2.js +46 -15
  113. package/lib/components/popover/index.d.ts +49 -49
  114. package/lib/components/popover/src/index.vue.d.ts +3 -3
  115. package/lib/components/render/index.d.ts +14 -14
  116. package/lib/components/render/src/index.vue.d.ts +1 -1
  117. package/lib/components/search/index.d.ts +298 -298
  118. package/lib/components/search/src/index.vue.d.ts +84 -84
  119. package/lib/components/sidebar/index.d.ts +31 -31
  120. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  121. package/lib/components/table/index.d.ts +165 -180
  122. package/lib/components/table/index.js +6 -0
  123. package/lib/components/table/src/index.vue.d.ts +12 -21
  124. package/lib/components/table/src/index.vue2.js +10 -33
  125. package/lib/components/table/src/table-action-bar-content.vue.d.ts +78 -0
  126. package/lib/components/table/src/table-action-bar-content.vue.js +10 -0
  127. package/lib/components/table/src/table-action-bar-content.vue2.js +399 -0
  128. package/lib/components/table/src/table-action-bar.vue.d.ts +4 -4
  129. package/lib/components/table/src/table-action-bar.vue2.js +28 -351
  130. package/lib/components/table/src/table-column-drag-sort.vue.d.ts +1 -1
  131. package/lib/components/table/src/table-column-index.vue.d.ts +1 -1
  132. package/lib/components/table/src/table-column.vue.d.ts +22 -29
  133. package/lib/components/table/src/table-column.vue2.js +2 -55
  134. package/lib/components/table/src/table-title-bar.vue.d.ts +2 -2
  135. package/lib/components/table/src/type.d.ts +0 -11
  136. package/lib/components/table/src/use-columns.d.ts +26 -0
  137. package/lib/components/table/src/use-columns.js +42 -0
  138. package/lib/components/table-lite/index.d.ts +1783 -0
  139. package/lib/components/table-lite/index.js +8 -0
  140. package/lib/components/table-lite/src/index.vue.d.ts +672 -0
  141. package/lib/components/table-lite/src/index.vue.js +10 -0
  142. package/lib/components/table-lite/src/index.vue2.js +685 -0
  143. package/lib/components/table-lite/src/type.d.ts +91 -0
  144. package/lib/components/table-lite/src/type.js +2 -0
  145. package/lib/components/table-lite/style/css.d.ts +16 -0
  146. package/lib/components/table-lite/style/css.js +19 -0
  147. package/lib/components/table-lite/style/index.d.ts +16 -0
  148. package/lib/components/table-lite/style/index.js +19 -0
  149. package/lib/components/table-v2/index.d.ts +174 -0
  150. package/lib/components/table-v2/index.js +10 -0
  151. package/lib/components/table-v2/src/column-converter.d.ts +27 -0
  152. package/lib/components/table-v2/src/column-converter.js +44 -0
  153. package/lib/components/table-v2/src/index.vue.d.ts +157 -0
  154. package/lib/components/table-v2/src/index.vue.js +10 -0
  155. package/lib/components/table-v2/src/index.vue2.js +495 -0
  156. package/lib/components/table-v2/src/special-columns.d.ts +61 -0
  157. package/lib/components/table-v2/src/special-columns.js +80 -0
  158. package/lib/components/table-v2/src/table-v2-cell.d.ts +104 -0
  159. package/lib/components/table-v2/src/table-v2-cell.js +143 -0
  160. package/lib/components/table-v2/src/table-v2-header-cell.vue.d.ts +61 -0
  161. package/lib/components/table-v2/src/table-v2-header-cell.vue.js +10 -0
  162. package/lib/components/table-v2/src/table-v2-header-cell.vue2.js +96 -0
  163. package/lib/components/table-v2/src/type.d.ts +95 -0
  164. package/lib/components/table-v2/src/type.js +2 -0
  165. package/lib/components/table-v2/src/use-table-v2-columns.d.ts +43 -0
  166. package/lib/components/table-v2/src/use-table-v2-columns.js +51 -0
  167. package/lib/components/table-v2/style/css.d.ts +17 -0
  168. package/lib/components/table-v2/style/css.js +20 -0
  169. package/lib/components/table-v2/style/index.d.ts +17 -0
  170. package/lib/components/table-v2/style/index.js +20 -0
  171. package/lib/index.js +51 -39
  172. package/lib/version.d.ts +1 -1
  173. package/lib/version.js +1 -1
  174. package/locale/en.js +1 -1
  175. package/locale/en.min.js +1 -1
  176. package/locale/en.min.mjs +1 -1
  177. package/locale/en.mjs +1 -1
  178. package/locale/ja.js +1 -1
  179. package/locale/ja.min.js +1 -1
  180. package/locale/ja.min.mjs +1 -1
  181. package/locale/ja.mjs +1 -1
  182. package/locale/ko.js +1 -1
  183. package/locale/ko.min.js +1 -1
  184. package/locale/ko.min.mjs +1 -1
  185. package/locale/ko.mjs +1 -1
  186. package/locale/zh-cn.js +1 -1
  187. package/locale/zh-cn.min.js +1 -1
  188. package/locale/zh-cn.min.mjs +1 -1
  189. package/locale/zh-cn.mjs +1 -1
  190. package/locale/zh-hk.js +1 -1
  191. package/locale/zh-hk.min.js +1 -1
  192. package/locale/zh-hk.min.mjs +1 -1
  193. package/locale/zh-hk.mjs +1 -1
  194. package/locale/zh-tw.js +1 -1
  195. package/locale/zh-tw.min.js +1 -1
  196. package/locale/zh-tw.min.mjs +1 -1
  197. package/locale/zh-tw.mjs +1 -1
  198. package/package.json +1 -1
  199. package/theme-chalk/index.css +1 -1
  200. package/theme-chalk/plus-table-lite.css +1 -0
  201. package/theme-chalk/plus-table-v2.css +1 -0
  202. package/theme-chalk/src/index.scss +2 -0
  203. package/theme-chalk/src/table-lite.scss +53 -0
  204. package/theme-chalk/src/table-v2.scss +71 -0
@@ -1,19 +1,9 @@
1
- import { defineComponent, ref, inject, unref, h, withDirectives, openBlock, createBlock, mergeProps, withCtx, createCommentVNode, createElementBlock, Fragment, renderList, resolveDynamicComponent, createVNode, renderSlot, createElementVNode, toDisplayString } from 'vue';
2
- import { MoreFilled, ArrowDownBold } from '@element-plus/icons-vue';
3
- import { ElTooltip, ElPopconfirm, ElIcon, ElButton, ElLink, ElMessageBox, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus';
4
- import '../../utils/index.mjs';
1
+ import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createCommentVNode, createVNode, createSlots, renderSlot } from 'vue';
2
+ import { ElTableColumn } from 'element-plus';
5
3
  import '../../../hooks/index.mjs';
6
- import '../../../constants/index.mjs';
4
+ import PlusTableActionBarContent from './table-action-bar-content.vue.mjs';
7
5
  import { useLocale } from '../../../hooks/useLocale.mjs';
8
- import { TableFormRefInjectionKey } from '../../../constants/form.mjs';
9
- import { isFunction, isPlainObject } from '../../utils/is.mjs';
10
6
 
11
- const _hoisted_1 = {
12
- key: 0,
13
- class: "plus-table-action-bar__dropdown__link"
14
- };
15
- const _hoisted_2 = { class: "plus-table-action-bar__dropdown__link" };
16
- const _hoisted_3 = { class: "plus-table-action-bar__more-text" };
17
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
18
8
  ...{
19
9
  name: "PlusTableActionBar"
@@ -33,232 +23,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
33
23
  },
34
24
  emits: ["clickAction", "clickActionConfirmCancel"],
35
25
  setup(__props, { emit: __emit }) {
36
- const props = __props;
37
26
  const emit = __emit;
38
27
  const { t } = useLocale();
39
- const hideOnClick = ref(true);
40
- const formRefs = inject(TableFormRefInjectionKey);
41
- const getButtonKey = (buttonRow, row, index) => {
42
- var _a, _b;
43
- const text = isFunction(buttonRow.text) ? buttonRow.text(row, index, buttonRow) : buttonRow.text;
44
- return String((_b = (_a = unref(text)) != null ? _a : buttonRow.code) != null ? _b : "");
45
- };
46
- const getSubButtons = (row, index) => {
47
- const data = props.buttons.filter((item) => {
48
- if (isFunction(item.show)) {
49
- const tempFunction = item.show;
50
- const isShow = tempFunction(row, index, item);
51
- return unref(isShow) !== false;
52
- }
53
- return unref(item.show) !== false;
54
- });
55
- const showNumber = isFunction(props.showNumber) ? props.showNumber(row, index) : props.showNumber;
56
- const showMore = data.length > showNumber;
57
- if (!showMore) {
58
- return {
59
- showMore,
60
- preButtons: data,
61
- nextButtons: []
62
- };
63
- }
64
- if (props.showLimitIncludeMore) {
65
- return {
66
- showMore,
67
- preButtons: data.slice(0, showNumber - 1),
68
- nextButtons: data.slice(showNumber - 1)
69
- };
70
- }
71
- return {
72
- showMore,
73
- preButtons: data.slice(0, showNumber),
74
- nextButtons: data.slice(showNumber)
75
- };
76
- };
77
- const createCallbackParams = (params, e) => ({
78
- /**
79
- * 解析后的按钮数据中的text
80
- * @version v0.1.17
81
- */
82
- text: params.text,
83
- row: params.row,
84
- buttonRow: params.buttonRow,
85
- index: params.index,
86
- rowIndex: params.index,
87
- e,
88
- formRefs: formRefs.value[params.index],
89
- ...params.rest
90
- });
91
- const getConfirmMsg = (buttonRow, callbackParams) => {
92
- var _a, _b;
93
- let message = t("plus.table.confirmToPerformThisOperation");
94
- let title = t("plus.table.prompt");
95
- let options = void 0;
96
- let appContext = null;
97
- if (isPlainObject(buttonRow.confirm)) {
98
- const tempTitle = isFunction(buttonRow.confirm.title) ? buttonRow.confirm.title(callbackParams) : buttonRow.confirm.title;
99
- if (tempTitle) {
100
- title = tempTitle;
101
- }
102
- const tempMessage = isFunction(buttonRow.confirm.message) ? buttonRow.confirm.message(callbackParams) : buttonRow.confirm.message;
103
- if (tempMessage) {
104
- message = tempMessage;
105
- }
106
- options = (_a = buttonRow.confirm) == null ? void 0 : _a.options;
107
- appContext = (_b = buttonRow.confirm) == null ? void 0 : _b.appContext;
108
- }
109
- return { message, title, options, appContext };
110
- };
111
- const render = (row, buttonRow, index, rest) => {
112
- var _a;
113
- const buttonRowProps = isFunction(buttonRow.props) ? buttonRow.props(row, index, buttonRow) : unref(buttonRow.props);
114
- const text = isFunction(buttonRow.text) ? unref(buttonRow.text(row, index, buttonRow)) : unref(buttonRow.text);
115
- const params = {
116
- text,
117
- row,
118
- buttonRow,
119
- index,
120
- rest
121
- };
122
- const getPopconfirmTitle = () => props.confirmType === "popconfirm" && buttonRow.confirm ? getConfirmMsg(buttonRow, createCallbackParams(params)).message : text;
123
- if (props.type === "icon") {
124
- return h(
125
- ElTooltip,
126
- { placement: "top", content: text, ...buttonRow.tooltipProps },
127
- () => {
128
- var _a2;
129
- return props.confirmType === "popconfirm" && buttonRow.confirm ? h(
130
- "span",
131
- {
132
- class: "el-icon"
133
- },
134
- h(
135
- ElPopconfirm,
136
- {
137
- trigger: "click",
138
- ...isPlainObject(buttonRow.confirm) ? (_a2 = buttonRow.confirm) == null ? void 0 : _a2.popconfirmProps : {},
139
- title: getPopconfirmTitle(),
140
- onConfirm: (event) => handleConfirm(createCallbackParams(params, event)),
141
- onCancel: (event) => handleCancel(createCallbackParams(params, event))
142
- },
143
- {
144
- reference: () => withDirectives(
145
- h(
146
- ElIcon,
147
- {
148
- size: 16,
149
- style: { margin: 0 },
150
- ...buttonRowProps,
151
- onClick: () => {
152
- hideOnClick.value = false;
153
- if (isFunction(buttonRow.onClick)) {
154
- buttonRow.onClick(createCallbackParams(params));
155
- }
156
- }
157
- },
158
- () => buttonRow.icon ? h(buttonRow.icon) : ""
159
- ),
160
- buttonRow.directives || []
161
- )
162
- }
163
- )
164
- ) : withDirectives(
165
- h(
166
- ElIcon,
167
- {
168
- size: 16,
169
- ...buttonRowProps,
170
- onClick: (event) => handleClickAction(createCallbackParams(params, event))
171
- },
172
- () => buttonRow.icon ? h(buttonRow.icon) : ""
173
- ),
174
- buttonRow.directives || []
175
- );
176
- }
177
- );
178
- } else {
179
- const Tag = props.type === "button" ? ElButton : ElLink;
180
- const defaultProps = props.type === "link" ? { href: "javaScript:;" } : {};
181
- return props.confirmType === "popconfirm" && buttonRow.confirm ? h(
182
- ElPopconfirm,
183
- {
184
- trigger: "click",
185
- ...isPlainObject(buttonRow.confirm) ? (_a = buttonRow.confirm) == null ? void 0 : _a.popconfirmProps : {},
186
- title: getPopconfirmTitle(),
187
- onConfirm: (event) => handleConfirm(createCallbackParams(params, event)),
188
- onCancel: (event) => handleCancel(createCallbackParams(params, event))
189
- },
190
- {
191
- reference: () => withDirectives(
192
- h(
193
- Tag,
194
- {
195
- size: "small",
196
- ...defaultProps,
197
- ...buttonRowProps,
198
- onClick: () => {
199
- hideOnClick.value = false;
200
- if (isFunction(buttonRow.onClick)) {
201
- buttonRow.onClick(createCallbackParams(params));
202
- }
203
- }
204
- },
205
- () => text
206
- ),
207
- buttonRow.directives || []
208
- )
209
- }
210
- ) : withDirectives(
211
- h(
212
- Tag,
213
- {
214
- size: "small",
215
- ...defaultProps,
216
- ...buttonRowProps,
217
- onClick: (event) => handleClickAction(createCallbackParams(params, event))
218
- },
219
- () => text
220
- ),
221
- buttonRow.directives || []
222
- );
223
- }
224
- };
225
- const handleConfirm = (callbackParams) => {
226
- if (isFunction(callbackParams.buttonRow.onConfirm)) {
227
- callbackParams.buttonRow.onConfirm(callbackParams);
228
- }
229
- emit("clickAction", callbackParams);
230
- };
231
- const handleCancel = (callbackParams) => {
232
- if (isFunction(callbackParams.buttonRow.onCancel)) {
233
- callbackParams.buttonRow.onCancel(callbackParams);
234
- }
235
- emit("clickActionConfirmCancel", callbackParams);
236
- };
237
- const handleClickAction = (callbackParams) => {
238
- hideOnClick.value = true;
239
- const { buttonRow } = callbackParams;
240
- if (isFunction(buttonRow.onClick)) {
241
- buttonRow.onClick(callbackParams);
242
- }
243
- if (buttonRow.confirm) {
244
- if (props.confirmType === "messageBox") {
245
- const { message, title, options, appContext } = getConfirmMsg(buttonRow, callbackParams);
246
- ElMessageBox.confirm(message, title, options, appContext).then(() => {
247
- if (isFunction(buttonRow.onConfirm)) {
248
- buttonRow.onConfirm(callbackParams);
249
- }
250
- emit("clickAction", callbackParams);
251
- }).catch(() => {
252
- if (isFunction(buttonRow.onCancel)) {
253
- buttonRow.onCancel(callbackParams);
254
- }
255
- emit("clickActionConfirmCancel", callbackParams);
256
- });
257
- }
258
- } else {
259
- emit("clickAction", callbackParams);
260
- }
261
- };
28
+ const handleClickAction = (data) => emit("clickAction", data);
29
+ const handleClickActionConfirmCancel = (data) => emit("clickActionConfirmCancel", data);
262
30
  return (_ctx, _cache) => {
263
31
  return openBlock(), createBlock(unref(ElTableColumn), mergeProps({
264
32
  key: "actionBar",
@@ -268,122 +36,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
268
36
  width: _ctx.width || 200
269
37
  }, _ctx.actionBarTableColumnProps), {
270
38
  default: withCtx(({ row, $index, ...rest }) => [
271
- createCommentVNode("\n \u7528\u5355\u5143\u7D20\u6570\u7EC4\u8BA9 getSubButtons \u6BCF\u884C\u53EA\u6267\u884C\u4E00\u6B21\uFF1A\n \u539F\u5148 preButtons / showMore / nextButtons \u5404\u8C03\u7528\u4E00\u6B21\uFF0C\n 500 \u884C \xD7 11 \u4E2A\u6309\u94AE \u2248 \u4E0A\u4E07\u6B21 show()\uFF08\u542B\u6743\u9650\u5224\u65AD\uFF09\u3002\n "),
272
- (openBlock(true), createElementBlock(
273
- Fragment,
274
- null,
275
- renderList([getSubButtons(row, $index)], (cell) => {
276
- return openBlock(), createElementBlock(
277
- Fragment,
278
- { key: $index },
279
- [
280
- createCommentVNode(" \u663E\u793A\u51FA\u6765\u7684\u6309\u94AE "),
281
- (openBlock(true), createElementBlock(
282
- Fragment,
283
- null,
284
- renderList(cell.preButtons, (buttonRow) => {
285
- return openBlock(), createBlock(resolveDynamicComponent(render(row, buttonRow, $index, rest)), {
286
- key: getButtonKey(buttonRow, row, $index)
287
- });
288
- }),
289
- 128
290
- /* KEYED_FRAGMENT */
291
- )),
292
- createCommentVNode(" \u9690\u85CF\u7684\u6309\u94AE "),
293
- cell.showMore ? (openBlock(), createBlock(unref(ElDropdown), {
294
- key: 0,
295
- persistent: false,
296
- trigger: "click",
297
- class: "plus-table-action-bar__dropdown",
298
- "hide-on-click": hideOnClick.value
299
- }, {
300
- dropdown: withCtx(() => [
301
- createVNode(
302
- unref(ElDropdownMenu),
303
- null,
304
- {
305
- default: withCtx(() => [
306
- (openBlock(true), createElementBlock(
307
- Fragment,
308
- null,
309
- renderList(cell.nextButtons, (buttonRow) => {
310
- return openBlock(), createBlock(
311
- unref(ElDropdownItem),
312
- {
313
- key: getButtonKey(buttonRow, row, $index)
314
- },
315
- {
316
- default: withCtx(() => [
317
- (openBlock(), createBlock(resolveDynamicComponent(render(row, buttonRow, $index, rest))))
318
- ]),
319
- _: 2
320
- /* DYNAMIC */
321
- },
322
- 1024
323
- /* DYNAMIC_SLOTS */
324
- );
325
- }),
326
- 128
327
- /* KEYED_FRAGMENT */
328
- ))
329
- ]),
330
- _: 2
331
- /* DYNAMIC */
332
- },
333
- 1024
334
- /* DYNAMIC_SLOTS */
335
- )
336
- ]),
337
- default: withCtx(() => [
338
- _ctx.moreType === "icon" ? (openBlock(), createElementBlock("span", _hoisted_1, [
339
- renderSlot(_ctx.$slots, "action-bar-more-icon", {}, () => [
340
- createVNode(unref(ElIcon), null, {
341
- default: withCtx(() => [
342
- createVNode(unref(MoreFilled))
343
- ]),
344
- _: 1
345
- /* STABLE */
346
- })
347
- ])
348
- ])) : (openBlock(), createElementBlock(
349
- Fragment,
350
- { key: 1 },
351
- [
352
- createCommentVNode(" \u9ED8\u8BA4 "),
353
- createElementVNode("span", _hoisted_2, [
354
- createElementVNode(
355
- "span",
356
- _hoisted_3,
357
- toDisplayString(unref(t)("plus.table.more")),
358
- 1
359
- /* TEXT */
360
- ),
361
- renderSlot(_ctx.$slots, "action-bar-more-icon", {}, () => [
362
- createVNode(unref(ElIcon), null, {
363
- default: withCtx(() => [
364
- createVNode(unref(ArrowDownBold))
365
- ]),
366
- _: 1
367
- /* STABLE */
368
- })
369
- ])
370
- ])
371
- ],
372
- 64
373
- /* STABLE_FRAGMENT */
374
- ))
375
- ]),
376
- _: 2
377
- /* DYNAMIC */
378
- }, 1032, ["hide-on-click"])) : createCommentVNode("v-if", true)
379
- ],
380
- 64
381
- /* STABLE_FRAGMENT */
382
- );
383
- }),
384
- 128
385
- /* KEYED_FRAGMENT */
386
- ))
39
+ createCommentVNode(" \u6309\u94AE\u5185\u5BB9\u903B\u8F91\u4E0E PlusTableV2 \u5171\u7528 "),
40
+ createVNode(PlusTableActionBarContent, {
41
+ row,
42
+ index: $index,
43
+ rest,
44
+ type: _ctx.type,
45
+ buttons: _ctx.buttons,
46
+ "show-number": _ctx.showNumber,
47
+ "show-limit-include-more": _ctx.showLimitIncludeMore,
48
+ "confirm-type": _ctx.confirmType,
49
+ "more-type": _ctx.moreType,
50
+ onClickAction: handleClickAction,
51
+ onClickActionConfirmCancel: handleClickActionConfirmCancel
52
+ }, createSlots({
53
+ _: 2
54
+ /* DYNAMIC */
55
+ }, [
56
+ _ctx.$slots["action-bar-more-icon"] ? {
57
+ name: "action-bar-more-icon",
58
+ fn: withCtx(() => [
59
+ renderSlot(_ctx.$slots, "action-bar-more-icon")
60
+ ]),
61
+ key: "0"
62
+ } : void 0
63
+ ]), 1032, ["row", "index", "rest", "type", "buttons", "show-number", "show-limit-include-more", "confirm-type", "more-type"])
387
64
  ]),
388
65
  _: 3
389
66
  /* FORWARDED */
@@ -28,7 +28,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
28
28
  onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
29
29
  }, {
30
30
  sortable: boolean | SortableOptions;
31
- dragSortableTableColumnProps: RecordType;
32
31
  tableInstance: CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
33
32
  data: {
34
33
  type: PropType<any[]>;
@@ -578,6 +577,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
578
577
  indent: number;
579
578
  flexible: boolean;
580
579
  }> | null;
580
+ dragSortableTableColumnProps: RecordType;
581
581
  }, {}>, {
582
582
  "drag-sort-icon"?(_: {}): any;
583
583
  }>;
@@ -23,9 +23,9 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
23
23
  indexContentStyle: () => {};
24
24
  indexTableColumnProps: () => {};
25
25
  }>>>, {
26
+ pageInfo: PageInfo;
26
27
  indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
27
28
  indexContentStyle: Partial<CSSProperties> | ((row: RecordType, index: number) => Partial<CSSProperties>);
28
- pageInfo: PageInfo;
29
29
  }, {}>;
30
30
  export default _default;
31
31
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -17,10 +17,6 @@ export interface PlusTableColumnProps {
17
17
  * @version 0.1.31
18
18
  */
19
19
  emptyValue?: PlusColumn['emptyValue'];
20
- /**
21
- * 是否启用纯文本单元格快路径,见 PlusTableProps['plainTextCell']
22
- */
23
- plainTextCell?: boolean;
24
20
  }
25
21
  export interface PlusTableColumnEmits {
26
22
  (e: 'formChange', data: FormChangeCallBackParams): void;
@@ -31,7 +27,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
31
27
  editable: boolean;
32
28
  subPageInfo: () => {};
33
29
  emptyValue: undefined;
34
- plainTextCell: boolean;
35
30
  }>, {
36
31
  plusDisplayItemInstance: Ref<({
37
32
  $: ComponentInternalInstance;
@@ -42,15 +37,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
42
37
  rest: RecordType;
43
38
  column: PlusColumn;
44
39
  emptyValue: string | number;
45
- editable: boolean | "click" | "dblclick";
46
40
  row: RecordType;
41
+ editable: boolean | "click" | "dblclick";
47
42
  }> & Omit<{
48
43
  readonly index: number;
49
44
  readonly formProps: PlusFormProps;
50
45
  readonly rest: RecordType;
51
46
  readonly column: PlusColumn;
52
- readonly editable: boolean | "click" | "dblclick";
53
47
  readonly row: RecordType;
48
+ readonly editable: boolean | "click" | "dblclick";
54
49
  readonly emptyValue?: string | number | undefined;
55
50
  onChange?: ((data: {
56
51
  value: FieldValueType;
@@ -82,22 +77,22 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
82
77
  type: PropType<string | number>;
83
78
  default: undefined;
84
79
  };
85
- editable: {
86
- type: PropType<boolean | "click" | "dblclick">;
87
- default: boolean;
88
- };
89
80
  row: {
90
81
  type: PropType<RecordType>;
91
82
  required: true;
92
83
  default: () => {};
93
84
  };
85
+ editable: {
86
+ type: PropType<boolean | "click" | "dblclick">;
87
+ default: boolean;
88
+ };
94
89
  }>> & {
95
90
  onChange?: ((data: {
96
91
  value: FieldValueType;
97
92
  prop: string;
98
93
  row: RecordType;
99
94
  }) => any) | undefined;
100
- }, "index" | "formProps" | "rest" | "column" | "emptyValue" | "editable" | "row">;
95
+ }, "index" | "formProps" | "rest" | "column" | "emptyValue" | "row" | "editable">;
101
96
  $attrs: {
102
97
  [x: string]: unknown;
103
98
  };
@@ -140,15 +135,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
140
135
  type: PropType<string | number>;
141
136
  default: undefined;
142
137
  };
143
- editable: {
144
- type: PropType<boolean | "click" | "dblclick">;
145
- default: boolean;
146
- };
147
138
  row: {
148
139
  type: PropType<RecordType>;
149
140
  required: true;
150
141
  default: () => {};
151
142
  };
143
+ editable: {
144
+ type: PropType<boolean | "click" | "dblclick">;
145
+ default: boolean;
146
+ };
152
147
  }>> & {
153
148
  onChange?: ((data: {
154
149
  value: FieldValueType;
@@ -178,8 +173,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
178
173
  rest: RecordType;
179
174
  column: PlusColumn;
180
175
  emptyValue: string | number;
181
- editable: boolean | "click" | "dblclick";
182
176
  row: RecordType;
177
+ editable: boolean | "click" | "dblclick";
183
178
  }, {}, string, {}> & {
184
179
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
185
180
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -225,15 +220,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
225
220
  type: PropType<string | number>;
226
221
  default: undefined;
227
222
  };
228
- editable: {
229
- type: PropType<boolean | "click" | "dblclick">;
230
- default: boolean;
231
- };
232
223
  row: {
233
224
  type: PropType<RecordType>;
234
225
  required: true;
235
226
  default: () => {};
236
227
  };
228
+ editable: {
229
+ type: PropType<boolean | "click" | "dblclick">;
230
+ default: boolean;
231
+ };
237
232
  }>> & {
238
233
  onChange?: ((data: {
239
234
  value: FieldValueType;
@@ -253,7 +248,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
253
248
  };
254
249
  }> & {} & ComponentCustomProperties & {} & {
255
250
  $slots: Partial<Record<string, (_: {
256
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "defaultValue">> & {
251
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "defaultValue" | "renderField" | "valueType" | "optionsMap" | "renderLabel" | "renderErrorMessage">> & {
257
252
  readonly label: string | ComputedRef<string>;
258
253
  readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
259
254
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -282,7 +277,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
282
277
  };
283
278
  rows: number;
284
279
  autocomplete: string;
285
- type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
280
+ type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
286
281
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
287
282
  step: string | number;
288
283
  format: string | ProgressFn | undefined;
@@ -352,7 +347,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
352
347
  index: number;
353
348
  defaultValue: any;
354
349
  }) => any>> & Partial<Record<string, (_: {
355
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "defaultValue">> & {
350
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "defaultValue" | "renderField" | "valueType" | "optionsMap" | "renderLabel" | "renderErrorMessage">> & {
356
351
  readonly label: string | ComputedRef<string>;
357
352
  readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
358
353
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -381,7 +376,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
381
376
  };
382
377
  rows: number;
383
378
  autocomplete: string;
384
- type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
379
+ type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
385
380
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
386
381
  step: string | number;
387
382
  format: string | ProgressFn | undefined;
@@ -451,7 +446,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
451
446
  index: number;
452
447
  defaultValue: any;
453
448
  }) => any>> & Partial<Record<string, (_: {
454
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "defaultValue">> & {
449
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "hasLabel" | "clearable" | "defaultValue" | "renderField" | "valueType" | "optionsMap" | "renderLabel" | "renderErrorMessage">> & {
455
450
  readonly label: string | ComputedRef<string>;
456
451
  readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
457
452
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -480,7 +475,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
480
475
  };
481
476
  rows: number;
482
477
  autocomplete: string;
483
- type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
478
+ type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
484
479
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
485
480
  step: string | number;
486
481
  format: string | ProgressFn | undefined;
@@ -571,14 +566,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
571
566
  editable: boolean;
572
567
  subPageInfo: () => {};
573
568
  emptyValue: undefined;
574
- plainTextCell: boolean;
575
569
  }>>> & {
576
570
  onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
577
571
  }, {
578
572
  columns: PlusColumn[];
579
573
  emptyValue: string | number;
580
574
  editable: boolean | "click" | "dblclick";
581
- plainTextCell: boolean;
582
575
  tableDataLength: number;
583
576
  subPageInfo: Partial<PageInfo>;
584
577
  }, {}>, Partial<Record<string, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: {