@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,174 @@
1
+ import { defineComponent, computed, toRaw, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createBlock, mergeProps, withCtx, createVNode, toDisplayString, createCommentVNode, renderSlot } from 'vue';
2
+ import { MoreOutlined } from '@ant-design/icons-vue';
3
+ import { Tooltip, Divider } from 'ant-design-vue';
4
+ import '../BasicTable.vue2.mjs';
5
+ import { useDesign } from '../../../../hooks/useDesign.mjs';
6
+ import { permission } from '@gct-paas/core';
7
+ import { isBoolean, isFunction, isString } from '../../../../utils/is.mjs';
8
+ import './TableActionAuto.css';import './TableAction.css';/* empty css */
9
+ /* empty css */
10
+ import { PopConfirmButton } from '../../../v-ben-button/index.mjs';
11
+ import { Dropdown } from '../../../v-ben-dropdown/index.mjs';
12
+
13
+ const _hoisted_1 = {
14
+ key: 0,
15
+ class: "text-14px"
16
+ };
17
+ const _hoisted_2 = {
18
+ key: 0,
19
+ class: "text-14px"
20
+ };
21
+ const _sfc_main = /* @__PURE__ */ defineComponent({
22
+ __name: "TableAction",
23
+ props: {
24
+ actions: {
25
+ type: Array,
26
+ default: null
27
+ },
28
+ dropDownActions: {
29
+ type: Array,
30
+ default: null
31
+ },
32
+ divider: {
33
+ type: Boolean,
34
+ default: true
35
+ },
36
+ outside: Boolean,
37
+ stopButtonPropagation: {
38
+ type: Boolean,
39
+ default: false
40
+ }
41
+ },
42
+ setup(__props) {
43
+ const props = __props;
44
+ const { prefixCls } = useDesign("basic-table-action");
45
+ const hasPermission = permission.has;
46
+ function isIfShow(action) {
47
+ const ifShow = action.ifShow;
48
+ let isIfShow2 = true;
49
+ if (isBoolean(ifShow)) {
50
+ isIfShow2 = ifShow;
51
+ }
52
+ if (isFunction(ifShow)) {
53
+ isIfShow2 = ifShow(action);
54
+ }
55
+ return isIfShow2;
56
+ }
57
+ const getActions = computed(() => {
58
+ return (toRaw(props.actions) || []).filter((action) => {
59
+ return hasPermission(action.auth) && isIfShow(action);
60
+ }).map((action) => {
61
+ const { popConfirm } = action;
62
+ return {
63
+ getPopupContainer: () => document.body,
64
+ type: "link",
65
+ size: "small",
66
+ ...action,
67
+ ...popConfirm || {},
68
+ onConfirm: popConfirm?.confirm,
69
+ onCancel: popConfirm?.cancel,
70
+ enable: !!popConfirm
71
+ };
72
+ });
73
+ });
74
+ const getDropdownList = computed(() => {
75
+ const list = (toRaw(props.dropDownActions) || []).filter(
76
+ (action) => {
77
+ return hasPermission(action.auth) && isIfShow(action);
78
+ }
79
+ );
80
+ return list.map((action, index) => {
81
+ const { label, popConfirm } = action;
82
+ return {
83
+ ...action,
84
+ ...popConfirm,
85
+ onConfirm: popConfirm?.confirm,
86
+ onCancel: popConfirm?.cancel,
87
+ text: label,
88
+ divider: index < list.length - 1 ? props.divider : false
89
+ };
90
+ });
91
+ });
92
+ const getAlign = computed(() => {
93
+ return "left";
94
+ });
95
+ function getTooltip(data) {
96
+ return {
97
+ getPopupContainer: () => document.body,
98
+ ...isString(data) ? { title: data } : data
99
+ };
100
+ }
101
+ function onCellClick(e) {
102
+ if (!props.stopButtonPropagation) return;
103
+ const path = e.composedPath();
104
+ const isInButton = path.find((ele) => {
105
+ return ele.tagName?.toUpperCase() === "BUTTON";
106
+ });
107
+ isInButton && e.stopPropagation();
108
+ }
109
+ return (_ctx, _cache) => {
110
+ const _component_a_button = resolveComponent("a-button");
111
+ return openBlock(), createElementBlock("div", {
112
+ class: normalizeClass([unref(prefixCls), getAlign.value]),
113
+ onClick: onCellClick
114
+ }, [
115
+ (openBlock(true), createElementBlock(Fragment, null, renderList(getActions.value, (action, index) => {
116
+ return openBlock(), createElementBlock(Fragment, {
117
+ key: `${index}-${action.label}`
118
+ }, [
119
+ action.tooltip ? (openBlock(), createBlock(unref(Tooltip), mergeProps({
120
+ key: 0,
121
+ placement: "bottom"
122
+ }, { ref_for: true }, getTooltip(action.tooltip)), {
123
+ default: withCtx(() => [
124
+ createVNode(unref(PopConfirmButton), mergeProps({ ref_for: true }, action), {
125
+ default: withCtx(() => [
126
+ action.label ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(action.label), 1)) : createCommentVNode("", true)
127
+ ]),
128
+ _: 2
129
+ }, 1040)
130
+ ]),
131
+ _: 2
132
+ }, 1040)) : (openBlock(), createBlock(unref(PopConfirmButton), mergeProps({
133
+ key: 1,
134
+ ref_for: true
135
+ }, action), {
136
+ default: withCtx(() => [
137
+ action.label ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(action.label), 1)) : createCommentVNode("", true)
138
+ ]),
139
+ _: 2
140
+ }, 1040)),
141
+ __props.divider && index < getActions.value.length - 1 ? (openBlock(), createBlock(unref(Divider), {
142
+ key: 2,
143
+ type: "vertical",
144
+ class: "action-divider"
145
+ })) : createCommentVNode("", true)
146
+ ], 64);
147
+ }), 128)),
148
+ __props.dropDownActions && getDropdownList.value.length > 0 ? (openBlock(), createBlock(unref(Dropdown), {
149
+ key: 0,
150
+ trigger: ["hover"],
151
+ "drop-menu-list": getDropdownList.value,
152
+ popconfirm: ""
153
+ }, {
154
+ default: withCtx(() => [
155
+ renderSlot(_ctx.$slots, "more"),
156
+ !_ctx.$slots.more ? (openBlock(), createBlock(_component_a_button, {
157
+ key: 0,
158
+ type: "link",
159
+ size: "small"
160
+ }, {
161
+ default: withCtx(() => [
162
+ createVNode(unref(MoreOutlined), { class: "icon-more" })
163
+ ]),
164
+ _: 1
165
+ })) : createCommentVNode("", true)
166
+ ]),
167
+ _: 3
168
+ }, 8, ["drop-menu-list"])) : createCommentVNode("", true)
169
+ ], 2);
170
+ };
171
+ }
172
+ });
173
+
174
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './TableAction.vue.mjs';
2
+ import './TableAction.css';/* empty css */
3
+
4
+
5
+
6
+ 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 10px;
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
+ divider: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ outside: BooleanConstructor;
22
+ stopButtonPropagation: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ maxDispalyCount: {
27
+ type: NumberConstructor;
28
+ default: number;
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
+ divider: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ outside: BooleanConstructor;
40
+ stopButtonPropagation: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ maxDispalyCount: {
45
+ type: NumberConstructor;
46
+ default: number;
47
+ };
48
+ }>> & Readonly<{}>, {
49
+ actions: ActionItem[];
50
+ divider: boolean;
51
+ outside: boolean;
52
+ stopButtonPropagation: boolean;
53
+ maxDispalyCount: number;
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
+ };
@@ -0,0 +1,181 @@
1
+ import { defineComponent, computed, toRaw, resolveComponent, openBlock, createElementBlock, withModifiers, normalizeClass, unref, Fragment, renderList, createBlock, mergeProps, withCtx, createVNode, toDisplayString, createCommentVNode, renderSlot } from 'vue';
2
+ import { MoreOutlined } from '@ant-design/icons-vue';
3
+ import { Tooltip, Divider } from 'ant-design-vue';
4
+ import '../BasicTable.vue2.mjs';
5
+ import { useDesign } from '../../../../hooks/useDesign.mjs';
6
+ import { permission } from '@gct-paas/core';
7
+ import { isFunction, isString } from '../../../../utils/is.mjs';
8
+ import './TableActionAuto.css';import './TableAction.css';/* empty css */
9
+ /* empty css */
10
+ import { PopConfirmButton } from '../../../v-ben-button/index.mjs';
11
+ import { Dropdown } from '../../../v-ben-dropdown/index.mjs';
12
+
13
+ const _hoisted_1 = {
14
+ key: 0,
15
+ class: "text-14px"
16
+ };
17
+ const _hoisted_2 = {
18
+ key: 0,
19
+ class: "text-14px"
20
+ };
21
+ const _sfc_main = /* @__PURE__ */ defineComponent({
22
+ __name: "TableActionAuto",
23
+ props: {
24
+ actions: {
25
+ type: Array,
26
+ default: null
27
+ },
28
+ divider: {
29
+ type: Boolean,
30
+ default: true
31
+ },
32
+ outside: Boolean,
33
+ stopButtonPropagation: {
34
+ type: Boolean,
35
+ default: false
36
+ },
37
+ maxDispalyCount: {
38
+ type: Number,
39
+ default: 4
40
+ }
41
+ },
42
+ setup(__props) {
43
+ const props = __props;
44
+ const { prefixCls } = useDesign("basic-table-action");
45
+ const hasPermission = permission.has;
46
+ function isIfShow(action) {
47
+ const ifShow = action.ifShow ?? true;
48
+ if (isFunction(ifShow)) {
49
+ return ifShow(action);
50
+ }
51
+ return !!ifShow;
52
+ }
53
+ const validActions = computed(() => {
54
+ return [...toRaw(props.actions) || []].filter((action) => {
55
+ return hasPermission(action.auth) && isIfShow(action);
56
+ });
57
+ });
58
+ const getActions = computed(() => {
59
+ let list = [];
60
+ if (props.maxDispalyCount >= validActions.value.length) {
61
+ list = [...validActions.value];
62
+ } else {
63
+ list = validActions.value.slice(0, props.maxDispalyCount);
64
+ }
65
+ return list.map((action) => {
66
+ const { popConfirm } = action;
67
+ return {
68
+ getPopupContainer: () => document.body,
69
+ type: "link",
70
+ size: "small",
71
+ ...action,
72
+ ...popConfirm || {},
73
+ onConfirm: popConfirm?.confirm,
74
+ onCancel: popConfirm?.cancel,
75
+ enable: !!popConfirm
76
+ };
77
+ });
78
+ });
79
+ const getDropdownList = computed(() => {
80
+ let list = [];
81
+ if (props.maxDispalyCount >= validActions.value.length) {
82
+ return [];
83
+ } else {
84
+ list = validActions.value.slice(props.maxDispalyCount);
85
+ }
86
+ return list.map((action, index) => {
87
+ const { label, popConfirm } = action;
88
+ return {
89
+ ...action,
90
+ ...popConfirm,
91
+ onConfirm: popConfirm?.confirm,
92
+ onCancel: popConfirm?.cancel,
93
+ text: label,
94
+ divider: index < list.length - 1 ? props.divider : false
95
+ };
96
+ });
97
+ });
98
+ const getAlign = computed(() => {
99
+ return "left";
100
+ });
101
+ function getTooltip(data) {
102
+ return {
103
+ getPopupContainer: () => document.body,
104
+ placement: "bottom",
105
+ ...isString(data) ? { title: data } : data
106
+ };
107
+ }
108
+ function onCellClick(e) {
109
+ if (!props.stopButtonPropagation) return;
110
+ const path = e.composedPath();
111
+ const isInButton = path.find((ele) => {
112
+ return ele.tagName?.toUpperCase() === "BUTTON";
113
+ });
114
+ isInButton && e.stopPropagation();
115
+ }
116
+ return (_ctx, _cache) => {
117
+ const _component_a_button = resolveComponent("a-button");
118
+ return openBlock(), createElementBlock("div", {
119
+ class: normalizeClass([unref(prefixCls), getAlign.value]),
120
+ onClick: withModifiers(onCellClick, ["stop"])
121
+ }, [
122
+ (openBlock(true), createElementBlock(Fragment, null, renderList(getActions.value, (action, index) => {
123
+ return openBlock(), createElementBlock(Fragment, {
124
+ key: `${index}-${action.label}`
125
+ }, [
126
+ action.tooltip ? (openBlock(), createBlock(unref(Tooltip), mergeProps({
127
+ key: 0,
128
+ ref_for: true
129
+ }, getTooltip(action.tooltip)), {
130
+ default: withCtx(() => [
131
+ createVNode(unref(PopConfirmButton), mergeProps({ ref_for: true }, action), {
132
+ default: withCtx(() => [
133
+ action.label ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(action.label), 1)) : createCommentVNode("", true)
134
+ ]),
135
+ _: 2
136
+ }, 1040)
137
+ ]),
138
+ _: 2
139
+ }, 1040)) : (openBlock(), createBlock(unref(PopConfirmButton), mergeProps({
140
+ key: 1,
141
+ ref_for: true
142
+ }, action), {
143
+ default: withCtx(() => [
144
+ action.label ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(action.label), 1)) : createCommentVNode("", true)
145
+ ]),
146
+ _: 2
147
+ }, 1040)),
148
+ __props.divider && index < getActions.value.length - 1 ? (openBlock(), createBlock(unref(Divider), {
149
+ key: 2,
150
+ type: "vertical",
151
+ class: "action-divider"
152
+ })) : createCommentVNode("", true)
153
+ ], 64);
154
+ }), 128)),
155
+ getDropdownList.value.length > 0 ? (openBlock(), createBlock(unref(Dropdown), {
156
+ key: 0,
157
+ trigger: ["hover"],
158
+ "drop-menu-list": getDropdownList.value,
159
+ popconfirm: ""
160
+ }, {
161
+ default: withCtx(() => [
162
+ renderSlot(_ctx.$slots, "more"),
163
+ !_ctx.$slots.more ? (openBlock(), createBlock(_component_a_button, {
164
+ key: 0,
165
+ type: "link",
166
+ size: "small"
167
+ }, {
168
+ default: withCtx(() => [
169
+ createVNode(unref(MoreOutlined), { class: "icon-more" })
170
+ ]),
171
+ _: 1
172
+ })) : createCommentVNode("", true)
173
+ ]),
174
+ _: 3
175
+ }, 8, ["drop-menu-list"])) : createCommentVNode("", true)
176
+ ], 2);
177
+ };
178
+ }
179
+ });
180
+
181
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './TableActionAuto.vue.mjs';
2
+ import './TableActionAuto.css';/* empty css */
3
+
4
+
5
+
6
+ export { _sfc_main as default };
@@ -0,0 +1,186 @@
1
+ import { PropType } from 'vue';
2
+ import { PaginationProps } from './types/pagination';
3
+ import { BasicColumn, TableSetting, TableCustomRecord, TableRowSelection } from './types/table';
4
+ export declare const basicProps: {
5
+ clickToRowSelect: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
9
+ isTreeTable: BooleanConstructor;
10
+ tableSetting: {
11
+ type: PropType<TableSetting>;
12
+ default: {};
13
+ };
14
+ inset: BooleanConstructor;
15
+ showTableSetting: BooleanConstructor;
16
+ autoCreateKey: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ striped: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ showSummary: BooleanConstructor;
25
+ summaryFunc: {
26
+ type: PropType<(...arg: unknown[]) => unknown[]>;
27
+ default: null;
28
+ };
29
+ summaryData: {
30
+ type: PropType<Recordable[]>;
31
+ default: null;
32
+ };
33
+ indentSize: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ canColDrag: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ api: {
42
+ type: PropType<(...arg: unknown[]) => Promise<unknown>>;
43
+ default: null;
44
+ };
45
+ beforeFetch: {
46
+ type: PropType<Fn>;
47
+ default: null;
48
+ };
49
+ afterFetch: {
50
+ type: PropType<Fn>;
51
+ default: null;
52
+ };
53
+ handleSearchInfoFn: {
54
+ type: PropType<Fn>;
55
+ default: null;
56
+ };
57
+ immediate: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ emptyDataIsShowTable: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ searchInfo: {
66
+ type: PropType<Recordable>;
67
+ default: null;
68
+ };
69
+ defSort: {
70
+ type: PropType<Recordable>;
71
+ default: null;
72
+ };
73
+ useSearchForm: BooleanConstructor;
74
+ columns: {
75
+ type: PropType<BasicColumn[]>;
76
+ default: () => never[];
77
+ };
78
+ showIndexColumn: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ indexColumnProps: {
83
+ type: PropType<BasicColumn>;
84
+ default: null;
85
+ };
86
+ actionColumn: {
87
+ type: PropType<BasicColumn>;
88
+ default: null;
89
+ };
90
+ ellipsis: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
94
+ isCanResizeParent: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
98
+ canResize: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
102
+ clearSelectOnPageChange: BooleanConstructor;
103
+ resizeHeightOffset: {
104
+ type: NumberConstructor;
105
+ default: number;
106
+ };
107
+ rowSelection: {
108
+ type: PropType<TableRowSelection | null>;
109
+ default: null;
110
+ };
111
+ title: {
112
+ type: PropType<string | ((data: Recordable) => string)>;
113
+ default: null;
114
+ };
115
+ titleHelpMessage: {
116
+ type: PropType<string | string[]>;
117
+ };
118
+ maxHeight: NumberConstructor;
119
+ dataSource: {
120
+ type: PropType<Recordable[]>;
121
+ default: null;
122
+ };
123
+ rowKey: {
124
+ type: PropType<string | ((record: Recordable) => string)>;
125
+ default: string;
126
+ };
127
+ bordered: BooleanConstructor;
128
+ pagination: {
129
+ type: PropType<PaginationProps | boolean>;
130
+ default: null;
131
+ };
132
+ loading: BooleanConstructor;
133
+ rowClassName: {
134
+ type: PropType<(record: TableCustomRecord<unknown>, index: number) => string>;
135
+ };
136
+ scroll: {
137
+ type: PropType<{
138
+ x: number | string | true;
139
+ y: number | string;
140
+ }>;
141
+ default: null;
142
+ };
143
+ beforeEditSubmit: {
144
+ type: PropType<(data: {
145
+ record: Recordable;
146
+ index: number;
147
+ key: string | number;
148
+ value: unknown;
149
+ }) => Promise<unknown>>;
150
+ };
151
+ /**
152
+ * 行拖拽
153
+ */
154
+ rowDraggable: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ /**
159
+ * 仅支持同层级拖拽
160
+ */
161
+ supportSameLevel: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
165
+ /**
166
+ * 拖拽完成自动请求的api
167
+ */
168
+ rowDragApi: {
169
+ type: FunctionConstructor;
170
+ default: null;
171
+ };
172
+ /**
173
+ * tree表格展开行
174
+ */
175
+ expandedRowKeys: {
176
+ type: PropType<string[]>;
177
+ default: () => never[];
178
+ };
179
+ /**
180
+ * 空数据时全屏显示
181
+ */
182
+ emptyFull: {
183
+ type: BooleanConstructor;
184
+ default: boolean;
185
+ };
186
+ };