hfn-components 0.0.4 → 0.0.6

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 (53) hide show
  1. package/es/component.d.ts +3 -0
  2. package/es/component.mjs +9 -0
  3. package/{dist/es/packages → es}/components/button/HtButton.vue.d.ts +0 -7
  4. package/es/components/button/HtButton.vue.mjs +16 -0
  5. package/{dist/es/packages → es}/components/button/HtButton.vue2.mjs +6 -11
  6. package/{dist/es/packages → es}/components/button/index.d.ts +3 -9
  7. package/{dist/es/packages → es}/components/button/index.mjs +2 -2
  8. package/es/components/button/instance.d.ts +2 -0
  9. package/es/components/button/instance.mjs +1 -0
  10. package/es/components/index.d.ts +1 -0
  11. package/es/components/index.mjs +2 -0
  12. package/es/components/table/HtTable.d.ts +142 -0
  13. package/es/components/table/HtTable.mjs +136 -0
  14. package/es/components/table/HtTable.vue.d.ts +1847 -0
  15. package/es/components/table/HtTable.vue.mjs +443 -0
  16. package/es/components/table/HtTable.vue2.mjs +128 -0
  17. package/es/components/table/index.d.ts +1845 -0
  18. package/{dist/es/packages → es}/components/table/index.mjs +2 -1
  19. package/es/constants/index.d.ts +1 -0
  20. package/es/constants/index.mjs +1 -0
  21. package/es/constants/key.d.ts +1 -0
  22. package/es/constants/key.mjs +3 -0
  23. package/es/defaults.d.ts +4 -0
  24. package/es/defaults.mjs +7 -0
  25. package/es/index.d.ts +5 -0
  26. package/es/index.mjs +8 -0
  27. package/es/make-installer.d.ts +4 -0
  28. package/es/make-installer.mjs +14 -0
  29. package/es/plugin.d.ts +2 -0
  30. package/es/plugin.mjs +3 -0
  31. package/{dist/es/packages → es}/utils/common.d.ts +1 -1
  32. package/es/utils/index.d.ts +3 -0
  33. package/es/utils/index.mjs +3 -0
  34. package/es/utils/table.d.ts +2 -0
  35. package/es/utils/table.mjs +31 -0
  36. package/es/utils/tool.d.ts +2 -0
  37. package/es/utils/tool.mjs +42 -0
  38. package/global.d.ts +15 -0
  39. package/package.json +5 -10
  40. package/README.en.md +0 -36
  41. package/README.md +0 -4
  42. package/dist/es/node_modules/.pnpm/ant-design-vue@3.2.20_vue@3.4.21_typescript@5.3.3_/node_modules/ant-design-vue/dist/antd.css.mjs +0 -6
  43. package/dist/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
  44. package/dist/es/packages/components/button/HtButton.vue.mjs +0 -6
  45. package/dist/es/packages/components/index.d.ts +0 -6
  46. package/dist/es/packages/components/index.mjs +0 -12
  47. package/dist/es/packages/components/table/HtTable.vue.d.ts +0 -280
  48. package/dist/es/packages/components/table/HtTable.vue.mjs +0 -6
  49. package/dist/es/packages/components/table/HtTable.vue2.mjs +0 -110
  50. package/dist/es/packages/components/table/index.d.ts +0 -278
  51. package/dist/es/packages/utils/index.d.ts +0 -1
  52. /package/{dist/es → es}/_virtual/_plugin-vue_export-helper.mjs +0 -0
  53. /package/{dist/es/packages → es}/utils/common.mjs +0 -0
@@ -0,0 +1,443 @@
1
+ import _sfc_main from './HtTable.vue2.mjs';
2
+ import { openBlock, createElementBlock, Fragment, createVNode, normalizeClass, withCtx, createCommentVNode, createBlock, renderList, createElementVNode, toDisplayString, createTextVNode, resolveDynamicComponent } from 'vue';
3
+ import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
4
+
5
+ const _hoisted_1 = { href: "javascript:;" };
6
+ const _hoisted_2 = { key: 0 };
7
+ const _hoisted_3 = { key: 0 };
8
+ const _hoisted_4 = ["innerHTML"];
9
+ const _hoisted_5 = { key: 1 };
10
+ const _hoisted_6 = {
11
+ key: 0,
12
+ class: "action-cell"
13
+ };
14
+ const _hoisted_7 = ["onClick"];
15
+ const _hoisted_8 = { key: 0 };
16
+ const _hoisted_9 = ["innerHTML"];
17
+ const _hoisted_10 = { key: 1 };
18
+ const _hoisted_11 = { key: 1 };
19
+ const _hoisted_12 = {
20
+ key: 1,
21
+ class: "action-item"
22
+ };
23
+ const _hoisted_13 = ["onClick"];
24
+ const _hoisted_14 = { key: 0 };
25
+ const _hoisted_15 = ["innerHTML"];
26
+ const _hoisted_16 = { key: 1 };
27
+ const _hoisted_17 = { key: 1 };
28
+ const _hoisted_18 = {
29
+ key: 2,
30
+ class: "action-item"
31
+ };
32
+ const _hoisted_19 = { key: 0 };
33
+ const _hoisted_20 = ["innerHTML"];
34
+ const _hoisted_21 = { key: 1 };
35
+ const _hoisted_22 = { key: 1 };
36
+ const _hoisted_23 = ["onClick"];
37
+ const _hoisted_24 = { key: 0 };
38
+ const _hoisted_25 = ["innerHTML"];
39
+ const _hoisted_26 = { key: 1 };
40
+ const _hoisted_27 = { key: 1 };
41
+ const _hoisted_28 = {
42
+ key: 0,
43
+ class: "pagination"
44
+ };
45
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
46
+ return openBlock(), createElementBlock(
47
+ Fragment,
48
+ null,
49
+ [
50
+ createVNode($setup["Table"], {
51
+ columns: $setup.tableColumns,
52
+ "data-source": $setup.data,
53
+ loading: $setup.props.loading,
54
+ pagination: $setup.props.showOriginalPagination,
55
+ showSorterTooltip: false,
56
+ scroll: $setup.tableScroll,
57
+ class: normalizeClass({ "t44": _ctx.smallHeader, "t54": !_ctx.smallHeader }),
58
+ "row-selection": _ctx.selectShow ? { selectedRowKeys: $setup.selectedRowKeys, onChange: $setup.onSelectChange, onSelect: $setup.handleSelect, onSelectAll: $setup.handleSelectAll, getCheckboxProps: $setup.getCheckboxProps } : void 0,
59
+ onResizeColumn: $setup.resizeColumn,
60
+ onChange: $setup.handleTableChange
61
+ }, {
62
+ headerCell: withCtx(({ column }) => [
63
+ createCommentVNode(` <div :class="{ 'cell-line':column.resizable }"></div> `),
64
+ createCommentVNode(" \u8868\u5934\u5E26\u4E0B\u62C9\u9009\u9879 "),
65
+ column.type && column.type === "menu" ? (openBlock(), createBlock(
66
+ $setup["Dropdown"],
67
+ { key: 0 },
68
+ {
69
+ overlay: withCtx(() => [
70
+ createVNode(
71
+ $setup["Menu"],
72
+ { class: "nav-title-table" },
73
+ {
74
+ default: withCtx(() => [
75
+ (openBlock(true), createElementBlock(
76
+ Fragment,
77
+ null,
78
+ renderList(column.menu, (item, index) => {
79
+ return openBlock(), createBlock($setup["MenuItem"], {
80
+ key: index,
81
+ onClick: () => item.handler(item.label)
82
+ }, {
83
+ default: withCtx(() => [
84
+ createElementVNode(
85
+ "a",
86
+ _hoisted_1,
87
+ toDisplayString(item.label),
88
+ 1
89
+ /* TEXT */
90
+ )
91
+ ]),
92
+ _: 2
93
+ /* DYNAMIC */
94
+ }, 1032, ["onClick"]);
95
+ }),
96
+ 128
97
+ /* KEYED_FRAGMENT */
98
+ ))
99
+ ]),
100
+ _: 2
101
+ /* DYNAMIC */
102
+ },
103
+ 1024
104
+ /* DYNAMIC_SLOTS */
105
+ )
106
+ ]),
107
+ default: withCtx(() => [
108
+ createElementVNode("a", {
109
+ style: { "color": "rgba(0, 0, 0, 0.85)" },
110
+ onClick: _cache[0] || (_cache[0] = (e) => e.preventDefault())
111
+ }, [
112
+ createTextVNode(
113
+ toDisplayString(column.title),
114
+ 1
115
+ /* TEXT */
116
+ ),
117
+ (openBlock(), createBlock(resolveDynamicComponent($setup.getIconComponent("DownOutlined"))))
118
+ ])
119
+ ]),
120
+ _: 2
121
+ /* DYNAMIC */
122
+ },
123
+ 1024
124
+ /* DYNAMIC_SLOTS */
125
+ )) : createCommentVNode("v-if", true),
126
+ createCommentVNode(" \u8868\u5934\u5E26\u56FE\u6807\u79FB\u5165\u63D0\u793A "),
127
+ column.type && column.type === "tooltip" ? (openBlock(), createElementBlock(
128
+ Fragment,
129
+ { key: 1 },
130
+ [
131
+ createTextVNode(
132
+ toDisplayString(column.title) + "\xA0 ",
133
+ 1
134
+ /* TEXT */
135
+ ),
136
+ createVNode(
137
+ $setup["Tooltip"],
138
+ { placement: "top" },
139
+ {
140
+ title: withCtx(() => [
141
+ typeof column.tooltipTitle === "string" ? (openBlock(), createElementBlock(
142
+ "div",
143
+ _hoisted_2,
144
+ toDisplayString(column.tooltipTitle),
145
+ 1
146
+ /* TEXT */
147
+ )) : (openBlock(true), createElementBlock(
148
+ Fragment,
149
+ { key: 1 },
150
+ renderList(column.tooltipTitle, (item, index) => {
151
+ return openBlock(), createElementBlock(
152
+ "div",
153
+ { key: index },
154
+ toDisplayString(item),
155
+ 1
156
+ /* TEXT */
157
+ );
158
+ }),
159
+ 128
160
+ /* KEYED_FRAGMENT */
161
+ ))
162
+ ]),
163
+ default: withCtx(() => [
164
+ !column.iconType ? (openBlock(), createElementBlock("span", _hoisted_3, [
165
+ column.icon ? (openBlock(), createElementBlock("i", {
166
+ key: 0,
167
+ class: "iconfont",
168
+ innerHTML: column.icon
169
+ }, null, 8, _hoisted_4)) : createCommentVNode("v-if", true)
170
+ ])) : (openBlock(), createElementBlock("span", _hoisted_5, [
171
+ (openBlock(), createBlock(resolveDynamicComponent($setup.getIconComponent(column.iconType))))
172
+ ]))
173
+ ]),
174
+ _: 2
175
+ /* DYNAMIC */
176
+ },
177
+ 1024
178
+ /* DYNAMIC_SLOTS */
179
+ )
180
+ ],
181
+ 64
182
+ /* STABLE_FRAGMENT */
183
+ )) : createCommentVNode("v-if", true),
184
+ createCommentVNode(" \u8868\u5934\u6362\u884C "),
185
+ column.type && column.type === "br" ? (openBlock(), createElementBlock(
186
+ Fragment,
187
+ { key: 2 },
188
+ [
189
+ createElementVNode(
190
+ "div",
191
+ null,
192
+ toDisplayString(column.titles[0]),
193
+ 1
194
+ /* TEXT */
195
+ ),
196
+ createElementVNode(
197
+ "div",
198
+ null,
199
+ toDisplayString(column.titles[1]),
200
+ 1
201
+ /* TEXT */
202
+ )
203
+ ],
204
+ 64
205
+ /* STABLE_FRAGMENT */
206
+ )) : createCommentVNode("v-if", true)
207
+ ]),
208
+ bodyCell: withCtx(({ column, record, text }) => [
209
+ column.key !== "action" ? (openBlock(), createElementBlock(
210
+ Fragment,
211
+ { key: 0 },
212
+ [
213
+ createCommentVNode(" \u6570\u636E\u5904\u7406 "),
214
+ column.slot ? (openBlock(), createElementBlock(
215
+ "span",
216
+ {
217
+ key: 0,
218
+ class: normalizeClass([column.slot.includes("color") ? parseFloat(text) > 0 ? "red" : parseFloat(text) < 0 ? "green" : "" : ""])
219
+ },
220
+ toDisplayString($setup.handleData(text, column.slot)),
221
+ 3
222
+ /* TEXT, CLASS */
223
+ )) : (openBlock(), createElementBlock(
224
+ Fragment,
225
+ { key: 1 },
226
+ [
227
+ createCommentVNode(" \u6587\u672C\u5904\u7406 "),
228
+ createCommentVNode(" \u6570\u7EC4\u5904\u7406 "),
229
+ createCommentVNode(" \u8DF3\u8F6C\u5904\u7406 "),
230
+ createElementVNode(
231
+ "span",
232
+ null,
233
+ toDisplayString(text),
234
+ 1
235
+ /* TEXT */
236
+ )
237
+ ],
238
+ 2112
239
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
240
+ ))
241
+ ],
242
+ 64
243
+ /* STABLE_FRAGMENT */
244
+ )) : createCommentVNode("v-if", true),
245
+ column.key === "action" ? (openBlock(), createElementBlock(
246
+ Fragment,
247
+ { key: 1 },
248
+ [
249
+ $setup.props.actions.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_6, [
250
+ (openBlock(true), createElementBlock(
251
+ Fragment,
252
+ null,
253
+ renderList($setup.props.actions, (action, index) => {
254
+ return openBlock(), createElementBlock("div", { key: index }, [
255
+ createCommentVNode(" \u64CD\u4F5C\u884C\u9ED8\u8BA4 "),
256
+ action.type === "default" && $setup.shouldShowAction(action, record) ? (openBlock(), createElementBlock("span", {
257
+ key: 0,
258
+ class: "action-item",
259
+ onClick: () => action.handler(record)
260
+ }, [
261
+ !action.iconType ? (openBlock(), createElementBlock("span", _hoisted_8, [
262
+ action.icon ? (openBlock(), createElementBlock("i", {
263
+ key: 0,
264
+ class: "iconfont",
265
+ innerHTML: action.icon
266
+ }, null, 8, _hoisted_9)) : (openBlock(), createElementBlock(
267
+ "span",
268
+ _hoisted_10,
269
+ toDisplayString(action.label),
270
+ 1
271
+ /* TEXT */
272
+ ))
273
+ ])) : (openBlock(), createElementBlock("span", _hoisted_11, [
274
+ (openBlock(), createBlock(resolveDynamicComponent($setup.getIconComponent(action.iconType))))
275
+ ]))
276
+ ], 8, _hoisted_7)) : createCommentVNode("v-if", true),
277
+ createCommentVNode(" \u64CD\u4F5C\u884C\u5E26\u63D0\u793A "),
278
+ action.type === "tooltip" && $setup.shouldShowAction(action, record) ? (openBlock(), createElementBlock("span", _hoisted_12, [
279
+ createVNode(
280
+ $setup["Tooltip"],
281
+ { placement: "bottom" },
282
+ {
283
+ title: withCtx(() => [
284
+ createTextVNode(
285
+ toDisplayString(action.label),
286
+ 1
287
+ /* TEXT */
288
+ )
289
+ ]),
290
+ default: withCtx(() => [
291
+ createElementVNode("span", {
292
+ onClick: () => action.handler(record)
293
+ }, [
294
+ !action.iconType ? (openBlock(), createElementBlock("span", _hoisted_14, [
295
+ action.icon ? (openBlock(), createElementBlock("i", {
296
+ key: 0,
297
+ class: "iconfont",
298
+ innerHTML: action.icon
299
+ }, null, 8, _hoisted_15)) : (openBlock(), createElementBlock(
300
+ "span",
301
+ _hoisted_16,
302
+ toDisplayString(action.label),
303
+ 1
304
+ /* TEXT */
305
+ ))
306
+ ])) : (openBlock(), createElementBlock("span", _hoisted_17, [
307
+ (openBlock(), createBlock(resolveDynamicComponent($setup.getIconComponent(action.iconType))))
308
+ ]))
309
+ ], 8, _hoisted_13)
310
+ ]),
311
+ _: 2
312
+ /* DYNAMIC */
313
+ },
314
+ 1024
315
+ /* DYNAMIC_SLOTS */
316
+ )
317
+ ])) : createCommentVNode("v-if", true),
318
+ createCommentVNode(" \u64CD\u4F5C\u884C\u5E26\u4E0B\u62C9\u83DC\u5355 "),
319
+ action.type === "menu" && $setup.shouldShowAction(action, record) ? (openBlock(), createElementBlock("span", _hoisted_18, [
320
+ createVNode(
321
+ $setup["Dropdown"],
322
+ null,
323
+ {
324
+ overlay: withCtx(() => [
325
+ createVNode(
326
+ $setup["Menu"],
327
+ null,
328
+ {
329
+ default: withCtx(() => [
330
+ (openBlock(true), createElementBlock(
331
+ Fragment,
332
+ null,
333
+ renderList(action.menu, (menu, menuIndex) => {
334
+ return openBlock(), createBlock(
335
+ $setup["MenuItem"],
336
+ { key: menuIndex },
337
+ {
338
+ default: withCtx(() => [
339
+ createElementVNode("span", {
340
+ onClick: () => menu.handler(record)
341
+ }, [
342
+ !menu.iconType ? (openBlock(), createElementBlock("span", _hoisted_24, [
343
+ createElementVNode("i", {
344
+ class: "iconfont",
345
+ innerHTML: menu.icon
346
+ }, null, 8, _hoisted_25)
347
+ ])) : (openBlock(), createElementBlock("span", _hoisted_26, [
348
+ (openBlock(), createBlock(resolveDynamicComponent($setup.getIconComponent(menu.iconType))))
349
+ ])),
350
+ createTextVNode(
351
+ " " + toDisplayString(menu.label),
352
+ 1
353
+ /* TEXT */
354
+ )
355
+ ], 8, _hoisted_23)
356
+ ]),
357
+ _: 2
358
+ /* DYNAMIC */
359
+ },
360
+ 1024
361
+ /* DYNAMIC_SLOTS */
362
+ );
363
+ }),
364
+ 128
365
+ /* KEYED_FRAGMENT */
366
+ ))
367
+ ]),
368
+ _: 2
369
+ /* DYNAMIC */
370
+ },
371
+ 1024
372
+ /* DYNAMIC_SLOTS */
373
+ )
374
+ ]),
375
+ default: withCtx(() => [
376
+ !action.iconType ? (openBlock(), createElementBlock("span", _hoisted_19, [
377
+ action.icon ? (openBlock(), createElementBlock("i", {
378
+ key: 0,
379
+ class: "iconfont",
380
+ innerHTML: action.icon
381
+ }, null, 8, _hoisted_20)) : (openBlock(), createElementBlock(
382
+ "span",
383
+ _hoisted_21,
384
+ toDisplayString(action.label),
385
+ 1
386
+ /* TEXT */
387
+ ))
388
+ ])) : (openBlock(), createElementBlock("span", _hoisted_22, [
389
+ (openBlock(), createBlock(resolveDynamicComponent($setup.getIconComponent(action.iconType))))
390
+ ]))
391
+ ]),
392
+ _: 2
393
+ /* DYNAMIC */
394
+ },
395
+ 1024
396
+ /* DYNAMIC_SLOTS */
397
+ )
398
+ ])) : createCommentVNode("v-if", true),
399
+ createCommentVNode(" \u64CD\u4F5C\u884C\u5E26\u79FB\u5165\u63D0\u793A\u8DF3\u8F6C "),
400
+ createCommentVNode(` <span class="action-item" v-if="action.type === 'link' && shouldShowAction(action, record)">
401
+ <Tooltip placement="bottom">
402
+ <template #title>{{ action.label }}</template>
403
+ <span @click="() => action.handler(record)">
404
+ <span v-if="!action.iconType">
405
+ <i v-if="action.icon" class="iconfont" v-html="action.icon"></i>
406
+ <span v-else>{{ action.label }}</span>
407
+ </span>
408
+ <span v-else><component :is="getIconComponent(action.iconType)"></component></span>
409
+ </span>
410
+ </Tooltip>
411
+ </span> `)
412
+ ]);
413
+ }),
414
+ 128
415
+ /* KEYED_FRAGMENT */
416
+ ))
417
+ ])) : (openBlock(), createElementBlock("div", _hoisted_27, "-"))
418
+ ],
419
+ 64
420
+ /* STABLE_FRAGMENT */
421
+ )) : createCommentVNode("v-if", true)
422
+ ]),
423
+ _: 1
424
+ /* STABLE */
425
+ }, 8, ["columns", "loading", "pagination", "scroll", "class", "row-selection"]),
426
+ $setup.props.isPagination ? (openBlock(), createElementBlock("div", _hoisted_28, [
427
+ createVNode($setup["Pagination"], {
428
+ pageSize: $setup.props.pageSize,
429
+ current: $setup.props.nowPage,
430
+ total: $setup.props.total,
431
+ "show-total": (total) => `\u5171${total}\u6761`,
432
+ showSizeChanger: false,
433
+ onChange: $setup.pageChange
434
+ }, null, 8, ["pageSize", "current", "total", "show-total"])
435
+ ])) : createCommentVNode("v-if", true)
436
+ ],
437
+ 64
438
+ /* STABLE_FRAGMENT */
439
+ );
440
+ }
441
+ var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/table/HtTable.vue"]]);
442
+
443
+ export { Table as default };
@@ -0,0 +1,128 @@
1
+ import { defineComponent, ref, computed, onMounted } from 'vue';
2
+ import { Table, Pagination, Tooltip, Dropdown, Menu, MenuItem } from 'ant-design-vue';
3
+ import * as Icons from '@ant-design/icons-vue';
4
+ import { handleData } from '../../utils/table.mjs';
5
+ import { tableProps } from './HtTable.mjs';
6
+
7
+ var _sfc_main = /* @__PURE__ */ defineComponent({
8
+ ...{
9
+ name: "HtTable"
10
+ },
11
+ __name: "HtTable",
12
+ props: tableProps,
13
+ emits: [
14
+ "pageChange",
15
+ "filterChange",
16
+ "onSelectChange",
17
+ "handleSelect",
18
+ "handleSelectAll",
19
+ "resizeColumn"
20
+ ],
21
+ setup(__props, { expose: __expose, emit: __emit }) {
22
+ __expose();
23
+ const props = __props;
24
+ const emit = __emit;
25
+ const selectedRowKeys = ref(props.selectedKeys);
26
+ const data = [
27
+ {
28
+ key: "1",
29
+ name: "John Brown",
30
+ age: 32.0123470192,
31
+ address: "New York No. 1 Lake Park",
32
+ tags: ["nice", "developer"]
33
+ },
34
+ {
35
+ key: "2",
36
+ name: "Jim Green",
37
+ age: 42.523123,
38
+ address: "London No. 1 Lake Park",
39
+ tags: ["loser"]
40
+ },
41
+ {
42
+ key: "3",
43
+ name: "Joe Black",
44
+ age: 32.102731023,
45
+ address: "Sidney No. 1 Lake Park",
46
+ tags: ["cool", "teacher"]
47
+ }
48
+ ];
49
+ const tableScroll = computed(() => {
50
+ if (props.isScroll && props.yIsScroll) {
51
+ return { x: data.length > 0 ? "max-content" : "100%", y: props.yHeight || "440px" };
52
+ } else if (props.isScroll) {
53
+ return { x: data.length > 0 ? "max-content" : "100%" };
54
+ } else if (props.yIsScroll) {
55
+ return { y: props.yHeight || "440px" };
56
+ } else {
57
+ return {};
58
+ }
59
+ });
60
+ const tableColumns = computed(() => {
61
+ console.log(props.columns);
62
+ if (props.actions?.length > 0) {
63
+ return [...props.columns, {
64
+ title: "\u64CD\u4F5C",
65
+ dataIndex: "action",
66
+ key: "action",
67
+ align: "center",
68
+ fixed: "right"
69
+ }];
70
+ } else return [...props.columns];
71
+ });
72
+ const getIconComponent = (iconType) => {
73
+ const defaultIcon = "ExclamationCircleFilled";
74
+ if (iconType && Icons[iconType]) {
75
+ return Icons[iconType];
76
+ }
77
+ return Icons[defaultIcon];
78
+ };
79
+ const shouldShowAction = (action, record) => {
80
+ return action.showAction ? action.showAction(record) : true;
81
+ };
82
+ const resizeColumn = (w, col) => {
83
+ col.width = w;
84
+ emit("resizeColumn", col, w);
85
+ };
86
+ const pageChange = (val) => {
87
+ emit("pageChange", val);
88
+ console.log(val);
89
+ };
90
+ const handleTableChange = (pagination, filters, sorter) => {
91
+ emit("filterChange", filters, sorter, pagination);
92
+ };
93
+ const onSelectChange = (selectedRowKeys2) => {
94
+ emit("onSelectChange", selectedRowKeys2);
95
+ };
96
+ const handleSelect = (record, selected) => {
97
+ emit("handleSelect", record, selected);
98
+ };
99
+ const handleSelectAll = (selected, selectedRows, changeRows) => {
100
+ emit("handleSelectAll", selected, selectedRows, changeRows);
101
+ };
102
+ const getCheckboxProps = (record) => ({
103
+ disabled: record.select_disabled || record.self_active === 4,
104
+ name: record.fund_name
105
+ });
106
+ onMounted(() => {
107
+ });
108
+ const __returned__ = { props, emit, selectedRowKeys, data, tableScroll, tableColumns, getIconComponent, shouldShowAction, resizeColumn, pageChange, handleTableChange, onSelectChange, handleSelect, handleSelectAll, getCheckboxProps, get Table() {
109
+ return Table;
110
+ }, get Pagination() {
111
+ return Pagination;
112
+ }, get Tooltip() {
113
+ return Tooltip;
114
+ }, get Dropdown() {
115
+ return Dropdown;
116
+ }, get Menu() {
117
+ return Menu;
118
+ }, get MenuItem() {
119
+ return MenuItem;
120
+ }, get handleData() {
121
+ return handleData;
122
+ } };
123
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
124
+ return __returned__;
125
+ }
126
+ });
127
+
128
+ export { _sfc_main as default };