@gct-paas/v-ben 0.1.4-dev.10 → 0.1.4-dev.11

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 (56) hide show
  1. package/dist/index.esm.min.mjs +793 -2
  2. package/dist/index.min.cjs +1 -1
  3. package/dist/index.min.css +1 -0
  4. package/dist/index.system.min.js +1 -1
  5. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  6. package/es/components/index.d.ts +3 -0
  7. package/es/components/v-ben-button/index.d.ts +133 -0
  8. package/es/components/v-ben-button/index.mjs +9 -0
  9. package/es/components/v-ben-button/src/BasicButton.vue.d.ts +75 -0
  10. package/es/components/v-ben-button/src/BasicButton.vue.mjs +40 -0
  11. package/es/components/v-ben-button/src/BasicButton.vue2.mjs +5 -0
  12. package/es/components/v-ben-button/src/PopConfirmButton.vue.d.ts +24 -0
  13. package/es/components/v-ben-button/src/PopConfirmButton.vue.mjs +46 -0
  14. package/es/components/v-ben-button/src/PopConfirmButton.vue2.mjs +5 -0
  15. package/es/components/v-ben-button/src/custom-button.css +64 -0
  16. package/es/components/v-ben-button/src/custom-button.vue.d.ts +27 -0
  17. package/es/components/v-ben-button/src/custom-button.vue.mjs +7 -0
  18. package/es/components/v-ben-button/src/custom-button.vue3.mjs +32 -0
  19. package/es/components/v-ben-button/src/props.d.ts +38 -0
  20. package/es/components/v-ben-button/src/props.mjs +29 -0
  21. package/es/components/v-ben-dropdown/index.d.ts +85 -0
  22. package/es/components/v-ben-dropdown/index.mjs +5 -0
  23. package/es/components/v-ben-dropdown/src/Dropdown.vue.d.ts +66 -0
  24. package/es/components/v-ben-dropdown/src/Dropdown.vue.mjs +113 -0
  25. package/es/components/v-ben-dropdown/src/Dropdown.vue2.mjs +5 -0
  26. package/es/components/v-ben-dropdown/src/typing.d.ts +10 -0
  27. package/es/components/v-ben-table/index.d.ts +3 -0
  28. package/es/components/v-ben-table/src/BasicTable.vue.d.ts +410 -0
  29. package/es/components/v-ben-table/src/BasicTable.vue.mjs +53 -0
  30. package/es/components/v-ben-table/src/BasicTable.vue2.mjs +48 -0
  31. package/es/components/v-ben-table/src/components/HeaderCell.vue.d.ts +20 -0
  32. package/es/components/v-ben-table/src/components/HeaderCell.vue.mjs +10 -0
  33. package/es/components/v-ben-table/src/components/HeaderCell.vue2.mjs +20 -0
  34. package/es/components/v-ben-table/src/components/TableAction.css +37 -0
  35. package/es/components/v-ben-table/src/components/TableAction.vue.d.ts +61 -0
  36. package/es/components/v-ben-table/src/components/TableAction.vue.mjs +174 -0
  37. package/es/components/v-ben-table/src/components/TableAction.vue3.mjs +6 -0
  38. package/es/components/v-ben-table/src/components/TableActionAuto.css +37 -0
  39. package/es/components/v-ben-table/src/components/TableActionAuto.vue.d.ts +61 -0
  40. package/es/components/v-ben-table/src/components/TableActionAuto.vue.mjs +181 -0
  41. package/es/components/v-ben-table/src/components/TableActionAuto.vue3.mjs +6 -0
  42. package/es/components/v-ben-table/src/props.d.ts +186 -0
  43. package/es/components/v-ben-table/src/props.mjs +136 -0
  44. package/es/components/v-ben-table/src/types/column.d.ts +164 -0
  45. package/es/components/v-ben-table/src/types/componentType.d.ts +1 -0
  46. package/es/components/v-ben-table/src/types/pagination.d.ts +93 -0
  47. package/es/components/v-ben-table/src/types/table.d.ts +356 -0
  48. package/es/components/v-ben-table/src/types/tableAction.d.ts +24 -0
  49. package/es/hooks/useDesign.d.ts +5 -0
  50. package/es/hooks/useDesign.mjs +9 -0
  51. package/es/index.d.ts +2 -0
  52. package/es/index.mjs +10 -0
  53. package/es/types/index.d.ts +18 -0
  54. package/es/utils/is.d.ts +23 -0
  55. package/es/utils/is.mjs +78 -0
  56. package/package.json +8 -5
@@ -0,0 +1,410 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ clickToRowSelect: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ isTreeTable: BooleanConstructor;
7
+ tableSetting: {
8
+ type: import('vue').PropType<import('./types/table').TableSetting>;
9
+ default: {};
10
+ };
11
+ inset: BooleanConstructor;
12
+ showTableSetting: BooleanConstructor;
13
+ autoCreateKey: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ striped: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ showSummary: BooleanConstructor;
22
+ summaryFunc: {
23
+ type: import('vue').PropType<(...arg: unknown[]) => unknown[]>;
24
+ default: null;
25
+ };
26
+ summaryData: {
27
+ type: import('vue').PropType<Recordable[]>;
28
+ default: null;
29
+ };
30
+ indentSize: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
34
+ canColDrag: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ api: {
39
+ type: import('vue').PropType<(...arg: unknown[]) => Promise<unknown>>;
40
+ default: null;
41
+ };
42
+ beforeFetch: {
43
+ type: import('vue').PropType<Fn>;
44
+ default: null;
45
+ };
46
+ afterFetch: {
47
+ type: import('vue').PropType<Fn>;
48
+ default: null;
49
+ };
50
+ handleSearchInfoFn: {
51
+ type: import('vue').PropType<Fn>;
52
+ default: null;
53
+ };
54
+ immediate: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ emptyDataIsShowTable: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ searchInfo: {
63
+ type: import('vue').PropType<Recordable>;
64
+ default: null;
65
+ };
66
+ defSort: {
67
+ type: import('vue').PropType<Recordable>;
68
+ default: null;
69
+ };
70
+ useSearchForm: BooleanConstructor;
71
+ columns: {
72
+ type: import('vue').PropType<import('./types/table').BasicColumn[]>;
73
+ default: () => never[];
74
+ };
75
+ showIndexColumn: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ indexColumnProps: {
80
+ type: import('vue').PropType<import('./types/table').BasicColumn>;
81
+ default: null;
82
+ };
83
+ actionColumn: {
84
+ type: import('vue').PropType<import('./types/table').BasicColumn>;
85
+ default: null;
86
+ };
87
+ ellipsis: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ isCanResizeParent: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ canResize: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
99
+ clearSelectOnPageChange: BooleanConstructor;
100
+ resizeHeightOffset: {
101
+ type: NumberConstructor;
102
+ default: number;
103
+ };
104
+ rowSelection: {
105
+ type: import('vue').PropType<import('./types/table').TableRowSelection | null>;
106
+ default: null;
107
+ };
108
+ title: {
109
+ type: import('vue').PropType<string | ((data: Recordable) => string)>;
110
+ default: null;
111
+ };
112
+ titleHelpMessage: {
113
+ type: import('vue').PropType<string | string[]>;
114
+ };
115
+ maxHeight: NumberConstructor;
116
+ dataSource: {
117
+ type: import('vue').PropType<Recordable[]>;
118
+ default: null;
119
+ };
120
+ rowKey: {
121
+ type: import('vue').PropType<string | ((record: Recordable) => string)>;
122
+ default: string;
123
+ };
124
+ bordered: BooleanConstructor;
125
+ pagination: {
126
+ type: import('vue').PropType<import('./types/pagination').PaginationProps | boolean>;
127
+ default: null;
128
+ };
129
+ loading: BooleanConstructor;
130
+ rowClassName: {
131
+ type: import('vue').PropType<(record: import('./types/table').TableCustomRecord<unknown>, index: number) => string>;
132
+ };
133
+ scroll: {
134
+ type: import('vue').PropType<{
135
+ x: number | string | true;
136
+ y: number | string;
137
+ }>;
138
+ default: null;
139
+ };
140
+ beforeEditSubmit: {
141
+ type: import('vue').PropType<(data: {
142
+ record: Recordable;
143
+ index: number;
144
+ key: string | number;
145
+ value: unknown;
146
+ }) => Promise<unknown>>;
147
+ };
148
+ rowDraggable: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ supportSameLevel: {
153
+ type: BooleanConstructor;
154
+ default: boolean;
155
+ };
156
+ rowDragApi: {
157
+ type: FunctionConstructor;
158
+ default: null;
159
+ };
160
+ expandedRowKeys: {
161
+ type: import('vue').PropType<string[]>;
162
+ default: () => never[];
163
+ };
164
+ emptyFull: {
165
+ type: BooleanConstructor;
166
+ default: boolean;
167
+ };
168
+ }>, {
169
+ formRef: import('vue').Ref<null, null>;
170
+ tableElRef: import('vue').Ref<null, null>;
171
+ getBindValues: import('vue').ComputedRef<IObject>;
172
+ handleTableChange: (...args: unknown[]) => void;
173
+ expandKeysList: import('vue').Ref<never[], never[]>;
174
+ getEmptyDataIsShowTable: import('vue').ComputedRef<boolean>;
175
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
176
+ clickToRowSelect: {
177
+ type: BooleanConstructor;
178
+ default: boolean;
179
+ };
180
+ isTreeTable: BooleanConstructor;
181
+ tableSetting: {
182
+ type: import('vue').PropType<import('./types/table').TableSetting>;
183
+ default: {};
184
+ };
185
+ inset: BooleanConstructor;
186
+ showTableSetting: BooleanConstructor;
187
+ autoCreateKey: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ striped: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ showSummary: BooleanConstructor;
196
+ summaryFunc: {
197
+ type: import('vue').PropType<(...arg: unknown[]) => unknown[]>;
198
+ default: null;
199
+ };
200
+ summaryData: {
201
+ type: import('vue').PropType<Recordable[]>;
202
+ default: null;
203
+ };
204
+ indentSize: {
205
+ type: NumberConstructor;
206
+ default: number;
207
+ };
208
+ canColDrag: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ api: {
213
+ type: import('vue').PropType<(...arg: unknown[]) => Promise<unknown>>;
214
+ default: null;
215
+ };
216
+ beforeFetch: {
217
+ type: import('vue').PropType<Fn>;
218
+ default: null;
219
+ };
220
+ afterFetch: {
221
+ type: import('vue').PropType<Fn>;
222
+ default: null;
223
+ };
224
+ handleSearchInfoFn: {
225
+ type: import('vue').PropType<Fn>;
226
+ default: null;
227
+ };
228
+ immediate: {
229
+ type: BooleanConstructor;
230
+ default: boolean;
231
+ };
232
+ emptyDataIsShowTable: {
233
+ type: BooleanConstructor;
234
+ default: boolean;
235
+ };
236
+ searchInfo: {
237
+ type: import('vue').PropType<Recordable>;
238
+ default: null;
239
+ };
240
+ defSort: {
241
+ type: import('vue').PropType<Recordable>;
242
+ default: null;
243
+ };
244
+ useSearchForm: BooleanConstructor;
245
+ columns: {
246
+ type: import('vue').PropType<import('./types/table').BasicColumn[]>;
247
+ default: () => never[];
248
+ };
249
+ showIndexColumn: {
250
+ type: BooleanConstructor;
251
+ default: boolean;
252
+ };
253
+ indexColumnProps: {
254
+ type: import('vue').PropType<import('./types/table').BasicColumn>;
255
+ default: null;
256
+ };
257
+ actionColumn: {
258
+ type: import('vue').PropType<import('./types/table').BasicColumn>;
259
+ default: null;
260
+ };
261
+ ellipsis: {
262
+ type: BooleanConstructor;
263
+ default: boolean;
264
+ };
265
+ isCanResizeParent: {
266
+ type: BooleanConstructor;
267
+ default: boolean;
268
+ };
269
+ canResize: {
270
+ type: BooleanConstructor;
271
+ default: boolean;
272
+ };
273
+ clearSelectOnPageChange: BooleanConstructor;
274
+ resizeHeightOffset: {
275
+ type: NumberConstructor;
276
+ default: number;
277
+ };
278
+ rowSelection: {
279
+ type: import('vue').PropType<import('./types/table').TableRowSelection | null>;
280
+ default: null;
281
+ };
282
+ title: {
283
+ type: import('vue').PropType<string | ((data: Recordable) => string)>;
284
+ default: null;
285
+ };
286
+ titleHelpMessage: {
287
+ type: import('vue').PropType<string | string[]>;
288
+ };
289
+ maxHeight: NumberConstructor;
290
+ dataSource: {
291
+ type: import('vue').PropType<Recordable[]>;
292
+ default: null;
293
+ };
294
+ rowKey: {
295
+ type: import('vue').PropType<string | ((record: Recordable) => string)>;
296
+ default: string;
297
+ };
298
+ bordered: BooleanConstructor;
299
+ pagination: {
300
+ type: import('vue').PropType<import('./types/pagination').PaginationProps | boolean>;
301
+ default: null;
302
+ };
303
+ loading: BooleanConstructor;
304
+ rowClassName: {
305
+ type: import('vue').PropType<(record: import('./types/table').TableCustomRecord<unknown>, index: number) => string>;
306
+ };
307
+ scroll: {
308
+ type: import('vue').PropType<{
309
+ x: number | string | true;
310
+ y: number | string;
311
+ }>;
312
+ default: null;
313
+ };
314
+ beforeEditSubmit: {
315
+ type: import('vue').PropType<(data: {
316
+ record: Recordable;
317
+ index: number;
318
+ key: string | number;
319
+ value: unknown;
320
+ }) => Promise<unknown>>;
321
+ };
322
+ rowDraggable: {
323
+ type: BooleanConstructor;
324
+ default: boolean;
325
+ };
326
+ supportSameLevel: {
327
+ type: BooleanConstructor;
328
+ default: boolean;
329
+ };
330
+ rowDragApi: {
331
+ type: FunctionConstructor;
332
+ default: null;
333
+ };
334
+ expandedRowKeys: {
335
+ type: import('vue').PropType<string[]>;
336
+ default: () => never[];
337
+ };
338
+ emptyFull: {
339
+ type: BooleanConstructor;
340
+ default: boolean;
341
+ };
342
+ }>> & Readonly<{
343
+ onChange?: ((...args: any[]) => any) | undefined;
344
+ }>, {
345
+ title: string | ((data: Recordable) => string);
346
+ clickToRowSelect: boolean;
347
+ isTreeTable: boolean;
348
+ tableSetting: import('./types/table').TableSetting;
349
+ inset: boolean;
350
+ showTableSetting: boolean;
351
+ autoCreateKey: boolean;
352
+ striped: boolean;
353
+ showSummary: boolean;
354
+ summaryFunc: (...arg: unknown[]) => unknown[];
355
+ summaryData: Recordable<unknown>[];
356
+ indentSize: number;
357
+ canColDrag: boolean;
358
+ api: (...arg: unknown[]) => Promise<unknown>;
359
+ beforeFetch: Fn<any, any>;
360
+ afterFetch: Fn<any, any>;
361
+ handleSearchInfoFn: Fn<any, any>;
362
+ immediate: boolean;
363
+ emptyDataIsShowTable: boolean;
364
+ searchInfo: Recordable<unknown>;
365
+ defSort: Recordable<unknown>;
366
+ useSearchForm: boolean;
367
+ columns: import('./types/table').BasicColumn[];
368
+ showIndexColumn: boolean;
369
+ indexColumnProps: import('./types/table').BasicColumn;
370
+ actionColumn: import('./types/table').BasicColumn;
371
+ ellipsis: boolean;
372
+ isCanResizeParent: boolean;
373
+ canResize: boolean;
374
+ clearSelectOnPageChange: boolean;
375
+ resizeHeightOffset: number;
376
+ rowSelection: import('./types/table').TableRowSelection<unknown> | null;
377
+ dataSource: Recordable<unknown>[];
378
+ rowKey: string | ((record: Recordable) => string);
379
+ bordered: boolean;
380
+ pagination: boolean | import('./types/pagination').PaginationProps;
381
+ loading: boolean;
382
+ scroll: {
383
+ x: number | string | true;
384
+ y: number | string;
385
+ };
386
+ rowDraggable: boolean;
387
+ supportSameLevel: boolean;
388
+ rowDragApi: Function;
389
+ expandedRowKeys: string[];
390
+ emptyFull: boolean;
391
+ }, {}, {
392
+ HeaderCell: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
393
+ column: {
394
+ type: import('vue').PropType<import('./types/table').BasicColumn>;
395
+ default: () => {};
396
+ };
397
+ }>, {
398
+ getTitle: import('vue').ComputedRef<string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
399
+ [key: string]: any;
400
+ }> | import('vue').VNodeArrayChildren | ((props: import('ant-design-vue/lib/table/interface').ColumnTitleProps<Recordable<unknown>>) => import('ant-design-vue/lib/_util/type').VueNode) | null>;
401
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
402
+ column: {
403
+ type: import('vue').PropType<import('./types/table').BasicColumn>;
404
+ default: () => {};
405
+ };
406
+ }>> & Readonly<{}>, {
407
+ column: import('./types/table').BasicColumn;
408
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
409
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
410
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import _sfc_main from './BasicTable.vue2.mjs';
2
+ import { resolveComponent, openBlock, createElementBlock, renderSlot, withDirectives, createVNode, mergeProps, createSlots, withCtx, normalizeProps, guardReactiveProps, Fragment, createBlock, renderList, vShow } from 'vue';
3
+ import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
+
5
+ const _hoisted_1 = { ref: "wrapRef" };
6
+ const _hoisted_2 = {
7
+ key: 0,
8
+ class: "pr26px"
9
+ };
10
+ const _hoisted_3 = {
11
+ key: 1,
12
+ class: "pr8px"
13
+ };
14
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
15
+ const _component_HeaderCell = resolveComponent("HeaderCell");
16
+ const _component_a_table = resolveComponent("a-table");
17
+ return openBlock(), createElementBlock("div", _hoisted_1, [
18
+ renderSlot(_ctx.$slots, "beforeTable"),
19
+ withDirectives(createVNode(_component_a_table, mergeProps({ ref: "tableElRef" }, _ctx.getBindValues, {
20
+ "expanded-row-keys": _ctx.expandKeysList,
21
+ "onUpdate:expandedRowKeys": _cache[0] || (_cache[0] = ($event) => _ctx.expandKeysList = $event),
22
+ onChange: _ctx.handleTableChange
23
+ }), createSlots({
24
+ headerCell: withCtx(({ column }) => [
25
+ _ctx.rowDraggable && column?.dataIndex === _ctx.getBindValues.columns[0].dataIndex ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26
+ _ctx.isTreeTable ? (openBlock(), createElementBlock("span", _hoisted_2)) : (openBlock(), createElementBlock("span", _hoisted_3)),
27
+ createVNode(_component_HeaderCell, { column }, null, 8, ["column"])
28
+ ], 64)) : (openBlock(), createBlock(_component_HeaderCell, {
29
+ key: 1,
30
+ column
31
+ }, null, 8, ["column"]))
32
+ ]),
33
+ bodyCell: withCtx((data) => [
34
+ renderSlot(_ctx.$slots, "bodyCell", normalizeProps(guardReactiveProps(data || {})))
35
+ ]),
36
+ _: 2
37
+ }, [
38
+ renderList(Object.keys(_ctx.$slots), (item) => {
39
+ return {
40
+ name: item,
41
+ fn: withCtx((data) => [
42
+ renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
43
+ ])
44
+ };
45
+ })
46
+ ]), 1040, ["expanded-row-keys", "onChange"]), [
47
+ [vShow, _ctx.getEmptyDataIsShowTable]
48
+ ])
49
+ ], 512);
50
+ }
51
+ const BasicTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
52
+
53
+ export { BasicTable as default };
@@ -0,0 +1,48 @@
1
+ import { defineComponent, ref, computed } from 'vue';
2
+ import HeaderCell from './components/HeaderCell.vue.mjs';
3
+ import { omit } from 'lodash-es';
4
+ import { basicProps } from './props.mjs';
5
+
6
+ const _sfc_main = defineComponent({
7
+ name: "BasicTable",
8
+ components: {
9
+ HeaderCell
10
+ },
11
+ props: basicProps,
12
+ emits: ["change"],
13
+ setup(props, { attrs, emit, slots, expose }) {
14
+ const tableElRef = ref(null);
15
+ const expandKeysList = ref([]);
16
+ const formRef = ref(null);
17
+ const getBindValues = computed(() => {
18
+ let propsData = {
19
+ ...attrs
20
+ };
21
+ propsData = omit(propsData, ["class", "onChange"]);
22
+ return propsData;
23
+ });
24
+ function handleTableChange(...args) {
25
+ emit("change", ...args);
26
+ }
27
+ const getEmptyDataIsShowTable = computed(() => {
28
+ const { emptyDataIsShowTable, useSearchForm, dataSource } = props;
29
+ if (emptyDataIsShowTable || !useSearchForm) {
30
+ return true;
31
+ }
32
+ return !!dataSource.length;
33
+ });
34
+ return {
35
+ formRef,
36
+ tableElRef,
37
+ getBindValues,
38
+ handleTableChange,
39
+ expandKeysList,
40
+ getEmptyDataIsShowTable
41
+ };
42
+ },
43
+ mounted() {
44
+ this.expandKeysList = this.getBindValues.expandedRowKeys;
45
+ }
46
+ });
47
+
48
+ export { _sfc_main as default };
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+ import { BasicColumn } from '../types/table';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ column: {
5
+ type: PropType<BasicColumn>;
6
+ default: () => {};
7
+ };
8
+ }>, {
9
+ getTitle: import('vue').ComputedRef<string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
10
+ [key: string]: any;
11
+ }> | import('vue').VNodeArrayChildren | ((props: import('ant-design-vue/lib/table/interface').ColumnTitleProps<Recordable<unknown>>) => import('ant-design-vue/lib/_util/type').VueNode) | null>;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ column: {
14
+ type: PropType<BasicColumn>;
15
+ default: () => {};
16
+ };
17
+ }>> & Readonly<{}>, {
18
+ column: BasicColumn;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from './HeaderCell.vue2.mjs';
2
+ import { openBlock, createElementBlock, toDisplayString } from 'vue';
3
+ import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
4
+
5
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
+ return openBlock(), createElementBlock("span", null, toDisplayString(_ctx.getTitle), 1);
7
+ }
8
+ const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
9
+
10
+ export { HeaderCell as default };
@@ -0,0 +1,20 @@
1
+ import { defineComponent, computed } from 'vue';
2
+
3
+ const _sfc_main = defineComponent({
4
+ name: "TableHeaderCell",
5
+ components: {},
6
+ props: {
7
+ column: {
8
+ type: Object,
9
+ default: () => ({})
10
+ }
11
+ },
12
+ setup(props) {
13
+ const getTitle = computed(
14
+ () => props.column?.customTitle || props.column?.title
15
+ );
16
+ return { getTitle };
17
+ }
18
+ });
19
+
20
+ export { _sfc_main as default };
@@ -0,0 +1,37 @@
1
+ .'vben-basic-table-action' {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+ .'vben-basic-table-action' .action-divider {
6
+ display: table;
7
+ }
8
+ .'vben-basic-table-action'.left {
9
+ justify-content: flex-start;
10
+ }
11
+ .'vben-basic-table-action'.center {
12
+ justify-content: center;
13
+ }
14
+ .'vben-basic-table-action'.right {
15
+ justify-content: flex-end;
16
+ }
17
+ .'vben-basic-table-action' button {
18
+ display: flex;
19
+ align-items: center;
20
+ }
21
+ .'vben-basic-table-action' button span {
22
+ margin-left: 0 !important;
23
+ }
24
+ .'vben-basic-table-action' button.ant-btn-circle span {
25
+ margin: auto !important;
26
+ }
27
+ .'vben-basic-table-action' .ant-divider,
28
+ .'vben-basic-table-action' .ant-divider-vertical {
29
+ margin: 0 2px;
30
+ }
31
+ .'vben-basic-table-action' .icon-more {
32
+ transform: rotate(90deg);
33
+ }
34
+ .'vben-basic-table-action' .icon-more svg {
35
+ font-size: 1.1em;
36
+ font-weight: 700;
37
+ }
@@ -0,0 +1,61 @@
1
+ import { PropType } from 'vue';
2
+ import { ActionItem } from '../types/tableAction';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ more?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLDivElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ actions: {
14
+ type: PropType<ActionItem[]>;
15
+ default: null;
16
+ };
17
+ dropDownActions: {
18
+ type: PropType<ActionItem[]>;
19
+ default: null;
20
+ };
21
+ divider: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ outside: BooleanConstructor;
26
+ stopButtonPropagation: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
+ actions: {
32
+ type: PropType<ActionItem[]>;
33
+ default: null;
34
+ };
35
+ dropDownActions: {
36
+ type: PropType<ActionItem[]>;
37
+ default: null;
38
+ };
39
+ divider: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ outside: BooleanConstructor;
44
+ stopButtonPropagation: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ }>> & Readonly<{}>, {
49
+ actions: ActionItem[];
50
+ dropDownActions: ActionItem[];
51
+ divider: boolean;
52
+ outside: boolean;
53
+ stopButtonPropagation: boolean;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
55
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
+ export default _default;
57
+ type __VLS_WithTemplateSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };