@funcho/ui 1.1.31 → 1.1.32

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 (34) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/business/DataTable/DataTable.vue.js +16 -2
  3. package/dist/cjs/business/DataTableDialog/DataTableDialog.vue.js +135 -0
  4. package/dist/cjs/business/DataTableDialog/DataTableDialog.vue3.js +10 -0
  5. package/dist/cjs/business/DataTableDialog/index.js +12 -0
  6. package/dist/cjs/business/TreeTransfer/TreeTransfer.vue.js +2 -2
  7. package/dist/cjs/business/TreeTransferDialog/TreeTransferDialog.vue.js +121 -0
  8. package/dist/cjs/business/TreeTransferDialog/TreeTransferDialog.vue3.js +10 -0
  9. package/dist/cjs/business/TreeTransferDialog/index.js +12 -0
  10. package/dist/cjs/business/index.js +4 -0
  11. package/dist/cjs/index.js +10 -6
  12. package/dist/cjs/packages/ui/package.json.js +1 -1
  13. package/dist/esm/business/DataTable/DataTable.vue.mjs +16 -2
  14. package/dist/esm/business/DataTableDialog/DataTableDialog.vue.mjs +131 -0
  15. package/dist/esm/business/DataTableDialog/DataTableDialog.vue3.mjs +6 -0
  16. package/dist/esm/business/DataTableDialog/index.mjs +7 -0
  17. package/dist/esm/business/TreeTransfer/TreeTransfer.vue.mjs +2 -2
  18. package/dist/esm/business/TreeTransferDialog/TreeTransferDialog.vue.mjs +117 -0
  19. package/dist/esm/business/TreeTransferDialog/TreeTransferDialog.vue3.mjs +6 -0
  20. package/dist/esm/business/TreeTransferDialog/index.mjs +7 -0
  21. package/dist/esm/business/index.mjs +2 -0
  22. package/dist/esm/index.mjs +2 -0
  23. package/dist/esm/packages/ui/package.json.mjs +1 -1
  24. package/dist/types/business/DataTable/DataTable.types.d.ts +33 -4
  25. package/dist/types/business/DataTable/DataTable.vue.d.ts +22 -52
  26. package/dist/types/business/DataTable/index.d.ts +15 -198
  27. package/dist/types/business/DataTableDialog/DataTableDialog.types.d.ts +1 -0
  28. package/dist/types/business/DataTableDialog/DataTableDialog.vue.d.ts +1605 -0
  29. package/dist/types/business/DataTableDialog/index.d.ts +1688 -0
  30. package/dist/types/business/TreeTransferDialog/TreeTransferDialog.types.d.ts +1 -0
  31. package/dist/types/business/TreeTransferDialog/TreeTransferDialog.vue.d.ts +10420 -0
  32. package/dist/types/business/TreeTransferDialog/index.d.ts +10488 -0
  33. package/dist/types/business/index.d.ts +2 -0
  34. package/package.json +1 -1
@@ -0,0 +1,117 @@
1
+ import { defineComponent, ref, computed, resolveDirective, createBlock, openBlock, createSlots, withCtx, withDirectives, createElementBlock, normalizeStyle, createVNode, mergeProps, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
2
+ import _sfc_main$3 from '../../components/Button/Button.vue.mjs';
3
+ /* empty css */
4
+ import _sfc_main$1 from '../../components/Dialog/Dialog.vue.mjs';
5
+ /* empty css */
6
+ import _sfc_main$2 from '../TreeTransfer/TreeTransfer.vue.mjs';
7
+ /* empty css */
8
+
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...{
11
+ name: "FcProTreeTransferDialog",
12
+ inheritAttrs: false
13
+ },
14
+ __name: "TreeTransferDialog",
15
+ props: {
16
+ title: { default: "新增" },
17
+ width: { default: 936 },
18
+ height: { default: "50vh" },
19
+ cancelButtonText: { default: "取消" },
20
+ loading: { type: Boolean, default: false },
21
+ confirmButtonText: { default: "确定" },
22
+ showCancelButton: { type: Boolean, default: false },
23
+ showConfirmButton: { type: Boolean, default: false }
24
+ },
25
+ emits: ["submit", "cancel", "add", "remove"],
26
+ setup(__props, { expose: __expose, emit: __emit }) {
27
+ const treeTransferRef = ref();
28
+ const props = __props;
29
+ const containerHeight = computed(() => {
30
+ if (typeof props.height === "number") {
31
+ return `${props.height}px`;
32
+ }
33
+ return props.height;
34
+ });
35
+ const visible = ref(false);
36
+ const emits = __emit;
37
+ const handleAddClick = (instance, nodes, keys) => {
38
+ emits("add", instance, nodes, keys);
39
+ };
40
+ const handleRemoveClick = (instance, nodes, keys) => {
41
+ emits("remove", instance, nodes, keys);
42
+ };
43
+ const submitting = ref(false);
44
+ const handleConfirmClick = async () => {
45
+ emits("submit", treeTransferRef.value?.leftTreeRef, treeTransferRef.value.rightTreeRef);
46
+ };
47
+ const open = () => {
48
+ visible.value = true;
49
+ };
50
+ const handleCancelClick = () => {
51
+ visible.value = false;
52
+ emits("cancel");
53
+ };
54
+ const close = () => {
55
+ visible.value = false;
56
+ };
57
+ __expose({
58
+ open,
59
+ close
60
+ });
61
+ return (_ctx, _cache) => {
62
+ const _directive_loading = resolveDirective("loading");
63
+ return openBlock(), createBlock(_sfc_main$1, {
64
+ modelValue: visible.value,
65
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
66
+ title: __props.title,
67
+ width: __props.width
68
+ }, createSlots({
69
+ default: withCtx(() => [
70
+ withDirectives((openBlock(), createElementBlock("div", {
71
+ style: normalizeStyle({ height: containerHeight.value })
72
+ }, [
73
+ createVNode(_sfc_main$2, mergeProps(_ctx.$attrs, {
74
+ ref_key: "treeTransferRef",
75
+ ref: treeTransferRef,
76
+ onAdd: handleAddClick,
77
+ onRemove: handleRemoveClick
78
+ }), null, 16)
79
+ ], 4)), [
80
+ [_directive_loading, __props.loading]
81
+ ])
82
+ ]),
83
+ _: 2
84
+ }, [
85
+ __props.showCancelButton || __props.showConfirmButton ? {
86
+ name: "footer",
87
+ fn: withCtx(() => [
88
+ __props.showCancelButton ? (openBlock(), createBlock(_sfc_main$3, {
89
+ key: 0,
90
+ onClick: handleCancelClick
91
+ }, {
92
+ default: withCtx(() => [
93
+ createTextVNode(toDisplayString(__props.cancelButtonText), 1)
94
+ ]),
95
+ _: 1
96
+ })) : createCommentVNode("", true),
97
+ __props.showConfirmButton ? (openBlock(), createBlock(_sfc_main$3, {
98
+ key: 1,
99
+ type: "primary",
100
+ loading: submitting.value,
101
+ disabled: __props.loading,
102
+ onClick: handleConfirmClick
103
+ }, {
104
+ default: withCtx(() => [
105
+ createTextVNode(toDisplayString(__props.confirmButtonText), 1)
106
+ ]),
107
+ _: 1
108
+ }, 8, ["loading", "disabled"])) : createCommentVNode("", true)
109
+ ]),
110
+ key: "0"
111
+ } : void 0
112
+ ]), 1032, ["modelValue", "title", "width"]);
113
+ };
114
+ }
115
+ });
116
+
117
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './TreeTransferDialog.vue.mjs';
2
+ /* empty css */
3
+
4
+
5
+
6
+ export { _sfc_main as default };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from './TreeTransferDialog.vue.mjs';
2
+ /* empty css */
3
+ import { withInstall } from '../../_utils/with-install.mjs';
4
+
5
+ const FcProTreeTransferDialog = withInstall(_sfc_main);
6
+
7
+ export { FcProTreeTransferDialog, FcProTreeTransferDialog as default };
@@ -7,3 +7,5 @@ export { FcProEditFormCard } from './EditFormCard/index.mjs';
7
7
  export { FcProFormDialog } from './FormDialog/index.mjs';
8
8
  export { FcProQueryForm } from './QueryForm/index.mjs';
9
9
  export { FcProVerticalLayout } from './VerticalLayout/index.mjs';
10
+ export { FcProTreeTransferDialog } from './TreeTransferDialog/index.mjs';
11
+ export { FcProDataTableDialog } from './DataTableDialog/index.mjs';
@@ -95,6 +95,8 @@ export { FcProEditFormCard } from './business/EditFormCard/index.mjs';
95
95
  export { FcProFormDialog } from './business/FormDialog/index.mjs';
96
96
  export { FcProQueryForm } from './business/QueryForm/index.mjs';
97
97
  export { FcProVerticalLayout } from './business/VerticalLayout/index.mjs';
98
+ export { FcProTreeTransferDialog } from './business/TreeTransferDialog/index.mjs';
99
+ export { FcProDataTableDialog } from './business/DataTableDialog/index.mjs';
98
100
 
99
101
  const components = Object.keys(index$1).map((key) => {
100
102
  return index$1[key];
@@ -1,3 +1,3 @@
1
- const version = "1.1.31";
1
+ const version = "1.1.32";
2
2
 
3
3
  export { version };
@@ -1,10 +1,39 @@
1
- export type TFcProDataTableProps = {
2
- columns?: Array<any>;
3
- searchSchema?: Array<any>;
4
- };
1
+ import { VNode } from 'vue';
2
+ import { TProFormField } from '../ProForm/ProForm.types';
5
3
  export type RequestResult<T = any> = {
6
4
  data: T[] | {
7
5
  list: T[];
8
6
  total: number;
9
7
  };
10
8
  };
9
+ export type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | '';
10
+ export type ButtonProps = {
11
+ label: string;
12
+ type?: ButtonType;
13
+ disabled?: boolean | ((row?: any) => boolean);
14
+ hidden?: boolean | ((row?: any) => boolean);
15
+ onClick: (row: any, index: number) => void;
16
+ directives?: Array<{
17
+ name: string;
18
+ value?: any;
19
+ arg?: any;
20
+ modifiers?: any;
21
+ }>;
22
+ };
23
+ export type TFcProDataTableProps = {
24
+ hasIndex?: boolean;
25
+ selectable?: boolean;
26
+ height?: number;
27
+ columns?: Array<{
28
+ prop: string;
29
+ label: string;
30
+ showOverflowTooltip?: boolean;
31
+ render?: (row: any, index: number) => VNode;
32
+ }>;
33
+ isPagination?: boolean;
34
+ fields?: Array<TProFormField>;
35
+ request?: (params: any) => Promise<RequestResult<any>>;
36
+ actions?: Array<ButtonProps>;
37
+ actionsWidth?: number;
38
+ tools?: Array<ButtonProps>;
39
+ };
@@ -1,36 +1,4 @@
1
- import { VNode } from 'vue';
2
- import { RequestResult } from './DataTable.types';
3
- import { TProFormField } from '../ProForm/ProForm.types';
4
- type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | '';
5
- type ButtonProps = {
6
- label: string;
7
- type?: ButtonType;
8
- disabled?: boolean | ((row?: any) => boolean);
9
- hidden?: boolean | ((row?: any) => boolean);
10
- onClick: (row: any, index: number) => void;
11
- directives?: Array<{
12
- name: string;
13
- value?: any;
14
- arg?: any;
15
- modifiers?: any;
16
- }>;
17
- };
18
- type __VLS_Props = {
19
- hasIndex?: boolean;
20
- height?: number;
21
- columns?: Array<{
22
- prop: string;
23
- label: string;
24
- showOverflowTooltip?: boolean;
25
- render?: (row: any, index: number) => VNode;
26
- }>;
27
- isPagination?: boolean;
28
- fields?: Array<TProFormField>;
29
- request?: (params: any) => Promise<RequestResult<any>>;
30
- actions?: Array<ButtonProps>;
31
- actionsWidth?: number;
32
- tools?: Array<ButtonProps>;
33
- };
1
+ import { ButtonProps, TFcProDataTableProps } from './DataTable.types';
34
2
  declare function __VLS_template(): {
35
3
  attrs: Partial<{}>;
36
4
  slots: {
@@ -41,7 +9,7 @@ declare function __VLS_template(): {
41
9
  $: import('vue').ComponentInternalInstance;
42
10
  $data: {};
43
11
  $props: {
44
- readonly fields?: Array<TProFormField> | undefined;
12
+ readonly fields?: Array<import('..').TProFormField> | undefined;
45
13
  readonly tools?: Array<{
46
14
  label: string;
47
15
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -245,7 +213,7 @@ declare function __VLS_template(): {
245
213
  labelPosition: "top" | "left" | "right";
246
214
  labelWidth: string | number;
247
215
  inline: boolean;
248
- fields: Array<TProFormField>;
216
+ fields: Array<import('..').TProFormField>;
249
217
  columns: number | "auto-fill" | "auto-fit";
250
218
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
251
219
  formRef: ({
@@ -1034,7 +1002,7 @@ declare function __VLS_template(): {
1034
1002
  labelPosition: "top" | "left" | "right";
1035
1003
  labelWidth: string | number;
1036
1004
  inline: boolean;
1037
- fields: Array<TProFormField>;
1005
+ fields: Array<import('..').TProFormField>;
1038
1006
  columns: number | "auto-fill" | "auto-fit";
1039
1007
  }> | null;
1040
1008
  };
@@ -1049,7 +1017,7 @@ declare function __VLS_template(): {
1049
1017
  }) => void);
1050
1018
  $el: any;
1051
1019
  $options: import('vue').ComponentOptionsBase<Readonly<{
1052
- fields?: Array<TProFormField>;
1020
+ fields?: Array<import('..').TProFormField>;
1053
1021
  tools?: Array<{
1054
1022
  label: string;
1055
1023
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -1248,7 +1216,7 @@ declare function __VLS_template(): {
1248
1216
  height: number;
1249
1217
  }) => any;
1250
1218
  }, string, {
1251
- fields: Array<TProFormField>;
1219
+ fields: Array<import('..').TProFormField>;
1252
1220
  tools: Array<{
1253
1221
  label: string;
1254
1222
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -1284,7 +1252,7 @@ declare function __VLS_template(): {
1284
1252
  $nextTick: typeof import('vue').nextTick;
1285
1253
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
1286
1254
  } & Readonly<{
1287
- fields: Array<TProFormField>;
1255
+ fields: Array<import('..').TProFormField>;
1288
1256
  tools: Array<{
1289
1257
  label: string;
1290
1258
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -1300,7 +1268,7 @@ declare function __VLS_template(): {
1300
1268
  }>;
1301
1269
  btnDisabled: boolean;
1302
1270
  }> & Omit<Readonly<{
1303
- fields?: Array<TProFormField>;
1271
+ fields?: Array<import('..').TProFormField>;
1304
1272
  tools?: Array<{
1305
1273
  label: string;
1306
1274
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -1501,24 +1469,26 @@ declare function __VLS_template(): {
1501
1469
  rootEl: any;
1502
1470
  };
1503
1471
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1504
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
1472
+ declare const __VLS_component: import('vue').DefineComponent<TFcProDataTableProps, {
1505
1473
  loadData: () => Promise<void>;
1506
1474
  tableData: import('vue').Ref<any[], any[]>;
1507
1475
  reload: () => void;
1508
1476
  resetSearch: () => void;
1509
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
1477
+ selectedRows: import('vue').Ref<any[], any[]>;
1478
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TFcProDataTableProps> & Readonly<{}>, {
1510
1479
  height: number;
1511
- fields: Array<TProFormField>;
1480
+ fields: Array<import('..').TProFormField>;
1512
1481
  tools: Array<ButtonProps>;
1513
1482
  columns: Array<{
1514
1483
  prop: string;
1515
1484
  label: string;
1516
1485
  showOverflowTooltip?: boolean;
1517
- render?: (row: any, index: number) => VNode;
1486
+ render?: (row: any, index: number) => import('vue').VNode;
1518
1487
  }>;
1488
+ selectable: boolean;
1519
1489
  hasIndex: boolean;
1520
1490
  isPagination: boolean;
1521
- request: (params: any) => Promise<RequestResult<any>>;
1491
+ request: (params: any) => Promise<import('./DataTable.types').RequestResult<any>>;
1522
1492
  actions: Array<ButtonProps>;
1523
1493
  actionsWidth: number;
1524
1494
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -1526,7 +1496,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
1526
1496
  $: import('vue').ComponentInternalInstance;
1527
1497
  $data: {};
1528
1498
  $props: {
1529
- readonly fields?: Array<TProFormField> | undefined;
1499
+ readonly fields?: Array<import('..').TProFormField> | undefined;
1530
1500
  readonly tools?: Array<{
1531
1501
  label: string;
1532
1502
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -1730,7 +1700,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
1730
1700
  labelPosition: "top" | "left" | "right";
1731
1701
  labelWidth: string | number;
1732
1702
  inline: boolean;
1733
- fields: Array<TProFormField>;
1703
+ fields: Array<import('..').TProFormField>;
1734
1704
  columns: number | "auto-fill" | "auto-fit";
1735
1705
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
1736
1706
  formRef: ({
@@ -2519,7 +2489,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
2519
2489
  labelPosition: "top" | "left" | "right";
2520
2490
  labelWidth: string | number;
2521
2491
  inline: boolean;
2522
- fields: Array<TProFormField>;
2492
+ fields: Array<import('..').TProFormField>;
2523
2493
  columns: number | "auto-fill" | "auto-fit";
2524
2494
  }> | null;
2525
2495
  };
@@ -2534,7 +2504,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
2534
2504
  }) => void);
2535
2505
  $el: any;
2536
2506
  $options: import('vue').ComponentOptionsBase<Readonly<{
2537
- fields?: Array<TProFormField>;
2507
+ fields?: Array<import('..').TProFormField>;
2538
2508
  tools?: Array<{
2539
2509
  label: string;
2540
2510
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -2733,7 +2703,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
2733
2703
  height: number;
2734
2704
  }) => any;
2735
2705
  }, string, {
2736
- fields: Array<TProFormField>;
2706
+ fields: Array<import('..').TProFormField>;
2737
2707
  tools: Array<{
2738
2708
  label: string;
2739
2709
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -2769,7 +2739,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
2769
2739
  $nextTick: typeof import('vue').nextTick;
2770
2740
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2771
2741
  } & Readonly<{
2772
- fields: Array<TProFormField>;
2742
+ fields: Array<import('..').TProFormField>;
2773
2743
  tools: Array<{
2774
2744
  label: string;
2775
2745
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -2785,7 +2755,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
2785
2755
  }>;
2786
2756
  btnDisabled: boolean;
2787
2757
  }> & Omit<Readonly<{
2788
- fields?: Array<TProFormField>;
2758
+ fields?: Array<import('..').TProFormField>;
2789
2759
  tools?: Array<{
2790
2760
  label: string;
2791
2761
  type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
@@ -1,86 +1,25 @@
1
1
  export declare const FcProDataTable: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
- hasIndex?: boolean;
4
- height?: number;
5
- columns?: Array<{
6
- prop: string;
7
- label: string;
8
- showOverflowTooltip?: boolean;
9
- render?: (row: any, index: number) => import('vue').VNode;
10
- }>;
11
- isPagination?: boolean;
12
- fields?: Array<import('..').TProFormField>;
13
- request?: (params: any) => Promise<import('./DataTable.types').RequestResult<any>>;
14
- actions?: Array<{
15
- label: string;
16
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
17
- disabled?: boolean | ((row?: any) => boolean);
18
- hidden?: boolean | ((row?: any) => boolean);
19
- onClick: (row: any, index: number) => void;
20
- directives?: Array<{
21
- name: string;
22
- value?: any;
23
- arg?: any;
24
- modifiers?: any;
25
- }>;
26
- }>;
27
- actionsWidth?: number;
28
- tools?: Array<{
29
- label: string;
30
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
31
- disabled?: boolean | ((row?: any) => boolean);
32
- hidden?: boolean | ((row?: any) => boolean);
33
- onClick: (row: any, index: number) => void;
34
- directives?: Array<{
35
- name: string;
36
- value?: any;
37
- arg?: any;
38
- modifiers?: any;
39
- }>;
40
- }>;
41
- }> & Readonly<{}>, {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./DataTable.types').TFcProDataTableProps> & Readonly<{}>, {
42
3
  loadData: () => Promise<void>;
43
4
  tableData: import('vue').Ref<any[], any[]>;
44
5
  reload: () => void;
45
6
  resetSearch: () => void;
7
+ selectedRows: import('vue').Ref<any[], any[]>;
46
8
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
47
9
  height: number;
48
10
  fields: Array<import('..').TProFormField>;
49
- tools: Array<{
50
- label: string;
51
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
52
- disabled?: boolean | ((row?: any) => boolean);
53
- hidden?: boolean | ((row?: any) => boolean);
54
- onClick: (row: any, index: number) => void;
55
- directives?: Array<{
56
- name: string;
57
- value?: any;
58
- arg?: any;
59
- modifiers?: any;
60
- }>;
61
- }>;
11
+ tools: Array<import('./DataTable.types').ButtonProps>;
62
12
  columns: Array<{
63
13
  prop: string;
64
14
  label: string;
65
15
  showOverflowTooltip?: boolean;
66
16
  render?: (row: any, index: number) => import('vue').VNode;
67
17
  }>;
18
+ selectable: boolean;
68
19
  hasIndex: boolean;
69
20
  isPagination: boolean;
70
21
  request: (params: any) => Promise<import('./DataTable.types').RequestResult<any>>;
71
- actions: Array<{
72
- label: string;
73
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
74
- disabled?: boolean | ((row?: any) => boolean);
75
- hidden?: boolean | ((row?: any) => boolean);
76
- onClick: (row: any, index: number) => void;
77
- directives?: Array<{
78
- name: string;
79
- value?: any;
80
- arg?: any;
81
- modifiers?: any;
82
- }>;
83
- }>;
22
+ actions: Array<import('./DataTable.types').ButtonProps>;
84
23
  actionsWidth: number;
85
24
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
86
25
  queryBoxRef: ({
@@ -1550,175 +1489,53 @@ export declare const FcProDataTable: {
1550
1489
  C: {};
1551
1490
  M: {};
1552
1491
  Defaults: {};
1553
- }, Readonly<{
1554
- hasIndex?: boolean;
1555
- height?: number;
1556
- columns?: Array<{
1557
- prop: string;
1558
- label: string;
1559
- showOverflowTooltip?: boolean;
1560
- render?: (row: any, index: number) => import('vue').VNode;
1561
- }>;
1562
- isPagination?: boolean;
1563
- fields?: Array<import('..').TProFormField>;
1564
- request?: (params: any) => Promise<import('./DataTable.types').RequestResult<any>>;
1565
- actions?: Array<{
1566
- label: string;
1567
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
1568
- disabled?: boolean | ((row?: any) => boolean);
1569
- hidden?: boolean | ((row?: any) => boolean);
1570
- onClick: (row: any, index: number) => void;
1571
- directives?: Array<{
1572
- name: string;
1573
- value?: any;
1574
- arg?: any;
1575
- modifiers?: any;
1576
- }>;
1577
- }>;
1578
- actionsWidth?: number;
1579
- tools?: Array<{
1580
- label: string;
1581
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
1582
- disabled?: boolean | ((row?: any) => boolean);
1583
- hidden?: boolean | ((row?: any) => boolean);
1584
- onClick: (row: any, index: number) => void;
1585
- directives?: Array<{
1586
- name: string;
1587
- value?: any;
1588
- arg?: any;
1589
- modifiers?: any;
1590
- }>;
1591
- }>;
1592
- }> & Readonly<{}>, {
1492
+ }, Readonly<import('./DataTable.types').TFcProDataTableProps> & Readonly<{}>, {
1593
1493
  loadData: () => Promise<void>;
1594
1494
  tableData: import('vue').Ref<any[], any[]>;
1595
1495
  reload: () => void;
1596
1496
  resetSearch: () => void;
1497
+ selectedRows: import('vue').Ref<any[], any[]>;
1597
1498
  }, {}, {}, {}, {
1598
1499
  height: number;
1599
1500
  fields: Array<import('..').TProFormField>;
1600
- tools: Array<{
1601
- label: string;
1602
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
1603
- disabled?: boolean | ((row?: any) => boolean);
1604
- hidden?: boolean | ((row?: any) => boolean);
1605
- onClick: (row: any, index: number) => void;
1606
- directives?: Array<{
1607
- name: string;
1608
- value?: any;
1609
- arg?: any;
1610
- modifiers?: any;
1611
- }>;
1612
- }>;
1501
+ tools: Array<import('./DataTable.types').ButtonProps>;
1613
1502
  columns: Array<{
1614
1503
  prop: string;
1615
1504
  label: string;
1616
1505
  showOverflowTooltip?: boolean;
1617
1506
  render?: (row: any, index: number) => import('vue').VNode;
1618
1507
  }>;
1508
+ selectable: boolean;
1619
1509
  hasIndex: boolean;
1620
1510
  isPagination: boolean;
1621
1511
  request: (params: any) => Promise<import('./DataTable.types').RequestResult<any>>;
1622
- actions: Array<{
1623
- label: string;
1624
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
1625
- disabled?: boolean | ((row?: any) => boolean);
1626
- hidden?: boolean | ((row?: any) => boolean);
1627
- onClick: (row: any, index: number) => void;
1628
- directives?: Array<{
1629
- name: string;
1630
- value?: any;
1631
- arg?: any;
1632
- modifiers?: any;
1633
- }>;
1634
- }>;
1512
+ actions: Array<import('./DataTable.types').ButtonProps>;
1635
1513
  actionsWidth: number;
1636
1514
  }>;
1637
1515
  __isFragment?: never;
1638
1516
  __isTeleport?: never;
1639
1517
  __isSuspense?: never;
1640
- } & import('vue').ComponentOptionsBase<Readonly<{
1641
- hasIndex?: boolean;
1642
- height?: number;
1643
- columns?: Array<{
1644
- prop: string;
1645
- label: string;
1646
- showOverflowTooltip?: boolean;
1647
- render?: (row: any, index: number) => import('vue').VNode;
1648
- }>;
1649
- isPagination?: boolean;
1650
- fields?: Array<import('..').TProFormField>;
1651
- request?: (params: any) => Promise<import('./DataTable.types').RequestResult<any>>;
1652
- actions?: Array<{
1653
- label: string;
1654
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
1655
- disabled?: boolean | ((row?: any) => boolean);
1656
- hidden?: boolean | ((row?: any) => boolean);
1657
- onClick: (row: any, index: number) => void;
1658
- directives?: Array<{
1659
- name: string;
1660
- value?: any;
1661
- arg?: any;
1662
- modifiers?: any;
1663
- }>;
1664
- }>;
1665
- actionsWidth?: number;
1666
- tools?: Array<{
1667
- label: string;
1668
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
1669
- disabled?: boolean | ((row?: any) => boolean);
1670
- hidden?: boolean | ((row?: any) => boolean);
1671
- onClick: (row: any, index: number) => void;
1672
- directives?: Array<{
1673
- name: string;
1674
- value?: any;
1675
- arg?: any;
1676
- modifiers?: any;
1677
- }>;
1678
- }>;
1679
- }> & Readonly<{}>, {
1518
+ } & import('vue').ComponentOptionsBase<Readonly<import('./DataTable.types').TFcProDataTableProps> & Readonly<{}>, {
1680
1519
  loadData: () => Promise<void>;
1681
1520
  tableData: import('vue').Ref<any[], any[]>;
1682
1521
  reload: () => void;
1683
1522
  resetSearch: () => void;
1523
+ selectedRows: import('vue').Ref<any[], any[]>;
1684
1524
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
1685
1525
  height: number;
1686
1526
  fields: Array<import('..').TProFormField>;
1687
- tools: Array<{
1688
- label: string;
1689
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
1690
- disabled?: boolean | ((row?: any) => boolean);
1691
- hidden?: boolean | ((row?: any) => boolean);
1692
- onClick: (row: any, index: number) => void;
1693
- directives?: Array<{
1694
- name: string;
1695
- value?: any;
1696
- arg?: any;
1697
- modifiers?: any;
1698
- }>;
1699
- }>;
1527
+ tools: Array<import('./DataTable.types').ButtonProps>;
1700
1528
  columns: Array<{
1701
1529
  prop: string;
1702
1530
  label: string;
1703
1531
  showOverflowTooltip?: boolean;
1704
1532
  render?: (row: any, index: number) => import('vue').VNode;
1705
1533
  }>;
1534
+ selectable: boolean;
1706
1535
  hasIndex: boolean;
1707
1536
  isPagination: boolean;
1708
1537
  request: (params: any) => Promise<import('./DataTable.types').RequestResult<any>>;
1709
- actions: Array<{
1710
- label: string;
1711
- type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
1712
- disabled?: boolean | ((row?: any) => boolean);
1713
- hidden?: boolean | ((row?: any) => boolean);
1714
- onClick: (row: any, index: number) => void;
1715
- directives?: Array<{
1716
- name: string;
1717
- value?: any;
1718
- arg?: any;
1719
- modifiers?: any;
1720
- }>;
1721
- }>;
1538
+ actions: Array<import('./DataTable.types').ButtonProps>;
1722
1539
  actionsWidth: number;
1723
1540
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
1724
1541
  $slots: {