keli-ui 0.0.1 → 0.0.3
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.
- package/LICENSE +201 -0
- package/README.md +5 -5
- package/dist/keli-ui.css +1 -1
- package/dist/keli-ui.js +41806 -2942
- package/dist/keli-ui.umd.cjs +1 -1
- package/dist/types/lib/modeControl.d.ts +4 -0
- package/dist/types/lib/useButtonExec.d.ts +8 -0
- package/dist/types/packages/QueryComponents/QueryBar/QueryBarClient.vue.d.ts +43 -0
- package/dist/types/packages/QueryComponents/QueryBar/QueryBarMobile.vue.d.ts +40 -0
- package/dist/types/packages/QueryComponents/QueryBar/hooks/index.d.ts +6 -0
- package/dist/types/packages/QueryComponents/QueryBar/index.d.ts +78 -0
- package/dist/types/packages/QueryComponents/QueryDateTime/QueryDateTimeClient.vue.d.ts +16 -0
- package/dist/types/packages/QueryComponents/QueryDateTime/index.d.ts +2 -0
- package/dist/types/packages/QueryComponents/QueryInput/QueryInput.vue.d.ts +16 -0
- package/dist/types/packages/QueryComponents/QueryInput/index.d.ts +2 -0
- package/dist/types/packages/QueryComponents/QueryInputLike/QueryInputLike.vue.d.ts +16 -0
- package/dist/types/packages/QueryComponents/QueryInputLike/index.d.ts +2 -0
- package/dist/types/packages/QueryComponents/QuerySelect/QuerySelectClient.vue.d.ts +30 -0
- package/dist/types/packages/QueryComponents/QuerySelect/index.d.ts +2 -0
- package/dist/types/packages/TableComponents/TableCardRender/TableCardRenderClient.vue.d.ts +120 -0
- package/dist/types/packages/TableComponents/TableCardRender/TableCardRenderMobile.vue.d.ts +120 -0
- package/dist/types/packages/TableComponents/TableCardRender/index.d.ts +115 -0
- package/dist/types/packages/TableComponents/TableCheckBoxAsync/TableCheckBoxAsync.vue.d.ts +63 -0
- package/dist/types/packages/TableComponents/TableCheckBoxAsync/index.d.ts +2 -0
- package/dist/types/packages/TableComponents/TableInput/TableInput.vue.d.ts +57 -0
- package/dist/types/packages/TableComponents/TableInput/index.d.ts +2 -0
- package/dist/types/packages/TableComponents/TableInputNumber/TableInputNumber.vue.d.ts +57 -0
- package/dist/types/packages/TableComponents/TableInputNumber/index.d.ts +2 -0
- package/dist/types/packages/TableComponents/TableRender/TableRenderClient.vue.d.ts +132 -0
- package/dist/types/packages/TableComponents/TableRender/TableRenderMobile.vue.d.ts +120 -0
- package/dist/types/packages/TableComponents/TableRender/common/tableFrameFilterUtil.d.ts +2 -0
- package/dist/types/packages/TableComponents/TableRender/hooks/tableRender.hook.d.ts +0 -0
- package/dist/types/packages/TableComponents/TableRender/hooks/useCopyPaste.hook.d.ts +28 -0
- package/dist/types/packages/TableComponents/TableRender/index.d.ts +115 -0
- package/dist/types/packages/TableComponents/TableSelect/TableSelect.vue.d.ts +39 -0
- package/dist/types/packages/TableComponents/TableSelect/index.d.ts +2 -0
- package/dist/types/packages/TableComponents/TableSelectAsync/TableSelectAsync.vue.d.ts +39 -0
- package/dist/types/packages/TableComponents/TableSelectAsync/index.d.ts +2 -0
- package/dist/types/packages/TableComponents/TableSwitch/TableSwitch.vue.d.ts +39 -0
- package/dist/types/packages/TableComponents/TableSwitch/index.d.ts +2 -0
- package/dist/types/packages/TableComponents/TableTreeRender/TableTreeRender.vue.d.ts +130 -0
- package/dist/types/packages/TableComponents/TableTreeRender/index.d.ts +2 -0
- package/dist/types/packages/TableComponents/utils/dataFormatter.d.ts +20 -0
- package/dist/types/packages/ToolBar/ToolBarClient.vue.d.ts +24 -0
- package/dist/types/packages/ToolBar/ToolBarMobile.vue.d.ts +14 -0
- package/dist/types/packages/ToolBar/ToolBarProxy.vue.d.ts +14 -0
- package/dist/types/packages/ToolBar/index.d.ts +2 -0
- package/dist/types/packages/index.d.ts +17 -0
- package/dist/types/packages/types/button.d.ts +25 -0
- package/dist/types/packages/types/componentFrame.d.ts +21 -0
- package/dist/types/packages/types/index.d.ts +5 -0
- package/dist/types/packages/types/queryFrame.d.ts +8 -0
- package/dist/types/packages/types/tableFrame.d.ts +81 -0
- package/dist/types/packages/types/translate.d.ts +20 -0
- package/dist/types/utils/base.d.ts +2 -0
- package/dist/types/utils/dataFormatter.d.ts +49 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/msgTips.d.ts +26 -0
- package/dist/types/utils/sleep.d.ts +6 -0
- package/package.json +49 -46
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { TableSelector } from '@/packages/types/tableFrame';
|
|
3
|
+
import type { TableCheckBoxAsyncI18n } from './type.d';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
value: {
|
|
6
|
+
required: false;
|
|
7
|
+
type: PropType<any[]>;
|
|
8
|
+
default: () => any[];
|
|
9
|
+
};
|
|
10
|
+
detail: {
|
|
11
|
+
required: true;
|
|
12
|
+
type: PropType<TableSelector>;
|
|
13
|
+
};
|
|
14
|
+
i18Text: {
|
|
15
|
+
required: false;
|
|
16
|
+
type: PropType<TableCheckBoxAsyncI18n>;
|
|
17
|
+
default: () => {
|
|
18
|
+
save: string;
|
|
19
|
+
cancel: string;
|
|
20
|
+
close: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
rowData: {
|
|
24
|
+
required: false;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
valueChange: (...args: any[]) => void;
|
|
29
|
+
"update:value": (...args: any[]) => void;
|
|
30
|
+
setShow: (...args: any[]) => void;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
value: {
|
|
33
|
+
required: false;
|
|
34
|
+
type: PropType<any[]>;
|
|
35
|
+
default: () => any[];
|
|
36
|
+
};
|
|
37
|
+
detail: {
|
|
38
|
+
required: true;
|
|
39
|
+
type: PropType<TableSelector>;
|
|
40
|
+
};
|
|
41
|
+
i18Text: {
|
|
42
|
+
required: false;
|
|
43
|
+
type: PropType<TableCheckBoxAsyncI18n>;
|
|
44
|
+
default: () => {
|
|
45
|
+
save: string;
|
|
46
|
+
cancel: string;
|
|
47
|
+
close: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
rowData: {
|
|
51
|
+
required: false;
|
|
52
|
+
default: () => {};
|
|
53
|
+
};
|
|
54
|
+
}>> & Readonly<{
|
|
55
|
+
onValueChange?: (...args: any[]) => any;
|
|
56
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
57
|
+
onSetShow?: (...args: any[]) => any;
|
|
58
|
+
}>, {
|
|
59
|
+
value: any[];
|
|
60
|
+
i18Text: TableCheckBoxAsyncI18n;
|
|
61
|
+
rowData: {};
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { TableComponentFrame } from '@/packages/types/tableFrame';
|
|
3
|
+
import type { TableInputI18n } from '@/packages/TableComponents/TableInput/type.d';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
value: {
|
|
6
|
+
required: false;
|
|
7
|
+
type: PropType<string | null>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
detail: {
|
|
11
|
+
required: true;
|
|
12
|
+
type: PropType<TableComponentFrame>;
|
|
13
|
+
};
|
|
14
|
+
i18Text: {
|
|
15
|
+
required: false;
|
|
16
|
+
type: PropType<TableInputI18n>;
|
|
17
|
+
default: () => {
|
|
18
|
+
confirm: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
rowData: {
|
|
22
|
+
required: false;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
valueChange: (...args: any[]) => void;
|
|
27
|
+
"update:value": (value: string) => void;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
value: {
|
|
30
|
+
required: false;
|
|
31
|
+
type: PropType<string | null>;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
detail: {
|
|
35
|
+
required: true;
|
|
36
|
+
type: PropType<TableComponentFrame>;
|
|
37
|
+
};
|
|
38
|
+
i18Text: {
|
|
39
|
+
required: false;
|
|
40
|
+
type: PropType<TableInputI18n>;
|
|
41
|
+
default: () => {
|
|
42
|
+
confirm: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
rowData: {
|
|
46
|
+
required: false;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
}>> & Readonly<{
|
|
50
|
+
onValueChange?: (...args: any[]) => any;
|
|
51
|
+
"onUpdate:value"?: (value: string) => any;
|
|
52
|
+
}>, {
|
|
53
|
+
value: string;
|
|
54
|
+
i18Text: TableInputI18n;
|
|
55
|
+
rowData: {};
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { TableInputI18n } from '@/packages/TableComponents/TableInput/type';
|
|
3
|
+
import type { TableComponentFrame } from '@/packages/types/tableFrame';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
value: {
|
|
6
|
+
required: false;
|
|
7
|
+
type: PropType<number | null>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
detail: {
|
|
11
|
+
required: true;
|
|
12
|
+
type: PropType<TableComponentFrame>;
|
|
13
|
+
};
|
|
14
|
+
i18Text: {
|
|
15
|
+
required: false;
|
|
16
|
+
type: PropType<TableInputI18n>;
|
|
17
|
+
default: () => {
|
|
18
|
+
confirm: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
rowData: {
|
|
22
|
+
required: false;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
valueChange: (...args: any[]) => void;
|
|
27
|
+
"update:value": (value: number) => void;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
value: {
|
|
30
|
+
required: false;
|
|
31
|
+
type: PropType<number | null>;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
detail: {
|
|
35
|
+
required: true;
|
|
36
|
+
type: PropType<TableComponentFrame>;
|
|
37
|
+
};
|
|
38
|
+
i18Text: {
|
|
39
|
+
required: false;
|
|
40
|
+
type: PropType<TableInputI18n>;
|
|
41
|
+
default: () => {
|
|
42
|
+
confirm: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
rowData: {
|
|
46
|
+
required: false;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
}>> & Readonly<{
|
|
50
|
+
onValueChange?: (...args: any[]) => any;
|
|
51
|
+
"onUpdate:value"?: (value: number) => any;
|
|
52
|
+
}>, {
|
|
53
|
+
value: number;
|
|
54
|
+
i18Text: TableInputI18n;
|
|
55
|
+
rowData: {};
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { VxeGridProps } from 'vxe-table';
|
|
3
|
+
import type { Pagination } from '@/packages/TableComponents/type';
|
|
4
|
+
import type { TableConfigInterface } from '@/packages/types/tableFrame';
|
|
5
|
+
import type { KeliButton } from '@/packages/types/button';
|
|
6
|
+
import type { TableQueryFrame } from '@/packages/types/queryFrame';
|
|
7
|
+
declare var __VLS_27: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
'tool-bar'?: (props: typeof __VLS_27) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
tableId: {
|
|
13
|
+
required: true;
|
|
14
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
15
|
+
};
|
|
16
|
+
tableConfig: {
|
|
17
|
+
required: true;
|
|
18
|
+
type: PropType<TableConfigInterface>;
|
|
19
|
+
};
|
|
20
|
+
vxeGridOptions: {
|
|
21
|
+
required: false;
|
|
22
|
+
type: PropType<VxeGridProps>;
|
|
23
|
+
};
|
|
24
|
+
columns: {
|
|
25
|
+
required: true;
|
|
26
|
+
type: PropType<any[]>;
|
|
27
|
+
};
|
|
28
|
+
queryConfig: {
|
|
29
|
+
required: false;
|
|
30
|
+
type: PropType<TableQueryFrame[]>;
|
|
31
|
+
default: any[];
|
|
32
|
+
};
|
|
33
|
+
tableToolButtons: {
|
|
34
|
+
required: false;
|
|
35
|
+
default: () => any[];
|
|
36
|
+
type: PropType<KeliButton[]>;
|
|
37
|
+
};
|
|
38
|
+
tableRowButtons: {
|
|
39
|
+
required: false;
|
|
40
|
+
default: () => any[];
|
|
41
|
+
type: PropType<KeliButton[]>;
|
|
42
|
+
};
|
|
43
|
+
tableData: {
|
|
44
|
+
required: true;
|
|
45
|
+
type: ArrayConstructor;
|
|
46
|
+
default(): any[];
|
|
47
|
+
};
|
|
48
|
+
tablePagination: {
|
|
49
|
+
required: false;
|
|
50
|
+
type: PropType<Pagination>;
|
|
51
|
+
default: () => {
|
|
52
|
+
currentPage: number;
|
|
53
|
+
pageSize: number;
|
|
54
|
+
total: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
|
+
getTableConfig: (...args: any[]) => void;
|
|
59
|
+
btnClick: (...args: any[]) => void;
|
|
60
|
+
queryClick: (...args: any[]) => void;
|
|
61
|
+
valueChange: (...args: any[]) => void;
|
|
62
|
+
treeLazyLoad: (...args: any[]) => void;
|
|
63
|
+
onSelection: (...args: any[]) => void;
|
|
64
|
+
"update:tablePagination": (value: Pagination) => void;
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
tableId: {
|
|
67
|
+
required: true;
|
|
68
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
69
|
+
};
|
|
70
|
+
tableConfig: {
|
|
71
|
+
required: true;
|
|
72
|
+
type: PropType<TableConfigInterface>;
|
|
73
|
+
};
|
|
74
|
+
vxeGridOptions: {
|
|
75
|
+
required: false;
|
|
76
|
+
type: PropType<VxeGridProps>;
|
|
77
|
+
};
|
|
78
|
+
columns: {
|
|
79
|
+
required: true;
|
|
80
|
+
type: PropType<any[]>;
|
|
81
|
+
};
|
|
82
|
+
queryConfig: {
|
|
83
|
+
required: false;
|
|
84
|
+
type: PropType<TableQueryFrame[]>;
|
|
85
|
+
default: any[];
|
|
86
|
+
};
|
|
87
|
+
tableToolButtons: {
|
|
88
|
+
required: false;
|
|
89
|
+
default: () => any[];
|
|
90
|
+
type: PropType<KeliButton[]>;
|
|
91
|
+
};
|
|
92
|
+
tableRowButtons: {
|
|
93
|
+
required: false;
|
|
94
|
+
default: () => any[];
|
|
95
|
+
type: PropType<KeliButton[]>;
|
|
96
|
+
};
|
|
97
|
+
tableData: {
|
|
98
|
+
required: true;
|
|
99
|
+
type: ArrayConstructor;
|
|
100
|
+
default(): any[];
|
|
101
|
+
};
|
|
102
|
+
tablePagination: {
|
|
103
|
+
required: false;
|
|
104
|
+
type: PropType<Pagination>;
|
|
105
|
+
default: () => {
|
|
106
|
+
currentPage: number;
|
|
107
|
+
pageSize: number;
|
|
108
|
+
total: number;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}>> & Readonly<{
|
|
112
|
+
onGetTableConfig?: (...args: any[]) => any;
|
|
113
|
+
onBtnClick?: (...args: any[]) => any;
|
|
114
|
+
onQueryClick?: (...args: any[]) => any;
|
|
115
|
+
onValueChange?: (...args: any[]) => any;
|
|
116
|
+
onTreeLazyLoad?: (...args: any[]) => any;
|
|
117
|
+
onOnSelection?: (...args: any[]) => any;
|
|
118
|
+
"onUpdate:tablePagination"?: (value: Pagination) => any;
|
|
119
|
+
}>, {
|
|
120
|
+
queryConfig: TableQueryFrame[];
|
|
121
|
+
tableToolButtons: KeliButton[];
|
|
122
|
+
tableRowButtons: KeliButton[];
|
|
123
|
+
tableData: unknown[];
|
|
124
|
+
tablePagination: Pagination;
|
|
125
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
126
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
127
|
+
export default _default;
|
|
128
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
129
|
+
new (): {
|
|
130
|
+
$slots: S;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { TableConfigInterface } from '@/packages/types/tableFrame';
|
|
3
|
+
import type { VxeGridProps } from 'vxe-table';
|
|
4
|
+
import type { TableQueryFrame } from '@/packages/types/queryFrame';
|
|
5
|
+
import type { KeliButton } from '@/packages/types/button';
|
|
6
|
+
import type { Pagination } from '@/packages/TableComponents/type';
|
|
7
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
tableId: {
|
|
9
|
+
required: true;
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
};
|
|
12
|
+
tableConfig: {
|
|
13
|
+
required: true;
|
|
14
|
+
type: PropType<TableConfigInterface>;
|
|
15
|
+
};
|
|
16
|
+
vxeGridOptions: {
|
|
17
|
+
required: false;
|
|
18
|
+
type: PropType<VxeGridProps>;
|
|
19
|
+
};
|
|
20
|
+
columns: {
|
|
21
|
+
required: true;
|
|
22
|
+
type: PropType<any[]>;
|
|
23
|
+
};
|
|
24
|
+
queryConfig: {
|
|
25
|
+
required: false;
|
|
26
|
+
type: PropType<TableQueryFrame[]>;
|
|
27
|
+
default: any[];
|
|
28
|
+
};
|
|
29
|
+
tableToolButtons: {
|
|
30
|
+
required: false;
|
|
31
|
+
default: () => any[];
|
|
32
|
+
type: PropType<KeliButton[]>;
|
|
33
|
+
};
|
|
34
|
+
tableRowButtons: {
|
|
35
|
+
required: false;
|
|
36
|
+
default: () => any[];
|
|
37
|
+
type: PropType<KeliButton[]>;
|
|
38
|
+
};
|
|
39
|
+
tableData: {
|
|
40
|
+
required: true;
|
|
41
|
+
type: PropType<any[]>;
|
|
42
|
+
default(): any[];
|
|
43
|
+
};
|
|
44
|
+
tablePagination: {
|
|
45
|
+
required: false;
|
|
46
|
+
type: PropType<Pagination>;
|
|
47
|
+
default: () => {
|
|
48
|
+
currentPage: number;
|
|
49
|
+
pageSize: number;
|
|
50
|
+
total: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
|
+
btnClick: (...args: any[]) => void;
|
|
55
|
+
queryClick: (...args: any[]) => void;
|
|
56
|
+
valueChange: (...args: any[]) => void;
|
|
57
|
+
treeLazyLoad: (...args: any[]) => void;
|
|
58
|
+
onSelection: (...args: any[]) => void;
|
|
59
|
+
"update:tablePagination": (value: any) => void;
|
|
60
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
+
tableId: {
|
|
62
|
+
required: true;
|
|
63
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
64
|
+
};
|
|
65
|
+
tableConfig: {
|
|
66
|
+
required: true;
|
|
67
|
+
type: PropType<TableConfigInterface>;
|
|
68
|
+
};
|
|
69
|
+
vxeGridOptions: {
|
|
70
|
+
required: false;
|
|
71
|
+
type: PropType<VxeGridProps>;
|
|
72
|
+
};
|
|
73
|
+
columns: {
|
|
74
|
+
required: true;
|
|
75
|
+
type: PropType<any[]>;
|
|
76
|
+
};
|
|
77
|
+
queryConfig: {
|
|
78
|
+
required: false;
|
|
79
|
+
type: PropType<TableQueryFrame[]>;
|
|
80
|
+
default: any[];
|
|
81
|
+
};
|
|
82
|
+
tableToolButtons: {
|
|
83
|
+
required: false;
|
|
84
|
+
default: () => any[];
|
|
85
|
+
type: PropType<KeliButton[]>;
|
|
86
|
+
};
|
|
87
|
+
tableRowButtons: {
|
|
88
|
+
required: false;
|
|
89
|
+
default: () => any[];
|
|
90
|
+
type: PropType<KeliButton[]>;
|
|
91
|
+
};
|
|
92
|
+
tableData: {
|
|
93
|
+
required: true;
|
|
94
|
+
type: PropType<any[]>;
|
|
95
|
+
default(): any[];
|
|
96
|
+
};
|
|
97
|
+
tablePagination: {
|
|
98
|
+
required: false;
|
|
99
|
+
type: PropType<Pagination>;
|
|
100
|
+
default: () => {
|
|
101
|
+
currentPage: number;
|
|
102
|
+
pageSize: number;
|
|
103
|
+
total: number;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}>> & Readonly<{
|
|
107
|
+
onBtnClick?: (...args: any[]) => any;
|
|
108
|
+
onQueryClick?: (...args: any[]) => any;
|
|
109
|
+
onValueChange?: (...args: any[]) => any;
|
|
110
|
+
onTreeLazyLoad?: (...args: any[]) => any;
|
|
111
|
+
onOnSelection?: (...args: any[]) => any;
|
|
112
|
+
"onUpdate:tablePagination"?: (value: any) => any;
|
|
113
|
+
}>, {
|
|
114
|
+
queryConfig: TableQueryFrame[];
|
|
115
|
+
tableToolButtons: KeliButton[];
|
|
116
|
+
tableRowButtons: KeliButton[];
|
|
117
|
+
tableData: any[];
|
|
118
|
+
tablePagination: Pagination;
|
|
119
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
120
|
+
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TableConfigInterface } from '@/packages/types/tableFrame';
|
|
2
|
+
interface RowConfig {
|
|
3
|
+
height?: number;
|
|
4
|
+
}
|
|
5
|
+
interface CopyPasteInit {
|
|
6
|
+
xGrid: any;
|
|
7
|
+
rowConfig: RowConfig;
|
|
8
|
+
fieldChange?: Function;
|
|
9
|
+
tableConfig?: TableConfigInterface;
|
|
10
|
+
}
|
|
11
|
+
export declare function useCopyPaste(params: CopyPasteInit): {
|
|
12
|
+
cellArea: () => void;
|
|
13
|
+
leftFixedCellArea: () => void;
|
|
14
|
+
rightFixedCellArea: () => void;
|
|
15
|
+
addListener: () => void;
|
|
16
|
+
removeListener: () => void;
|
|
17
|
+
removeCopyShortcut: () => void;
|
|
18
|
+
removePasteShortcut: () => void;
|
|
19
|
+
} | {
|
|
20
|
+
cellArea: import("vue").Ref<any, any>;
|
|
21
|
+
leftFixedCellArea: import("vue").Ref<any, any>;
|
|
22
|
+
rightFixedCellArea: import("vue").Ref<any, any>;
|
|
23
|
+
addListener: () => void;
|
|
24
|
+
removeListener: () => void;
|
|
25
|
+
removeCopyShortcut: () => void;
|
|
26
|
+
removePasteShortcut: () => void;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { isMobileDevice } from '@/lib/modeControl.ts';
|
|
2
|
+
declare const KeliTableRender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
tableId: {
|
|
4
|
+
required: true;
|
|
5
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
6
|
+
};
|
|
7
|
+
tableConfig: {
|
|
8
|
+
required: true;
|
|
9
|
+
type: import("vue").PropType<isMobileDevice>;
|
|
10
|
+
};
|
|
11
|
+
vxeGridOptions: {
|
|
12
|
+
required: false;
|
|
13
|
+
type: import("vue").PropType<import("vxe-table").VxeGridProps>;
|
|
14
|
+
};
|
|
15
|
+
columns: {
|
|
16
|
+
required: true;
|
|
17
|
+
type: import("vue").PropType<any[]>;
|
|
18
|
+
};
|
|
19
|
+
queryConfig: {
|
|
20
|
+
required: false;
|
|
21
|
+
type: import("vue").PropType<isMobileDevice[]>;
|
|
22
|
+
default: any[];
|
|
23
|
+
};
|
|
24
|
+
tableToolButtons: {
|
|
25
|
+
required: false;
|
|
26
|
+
default: () => any[];
|
|
27
|
+
type: import("vue").PropType<isMobileDevice[]>;
|
|
28
|
+
};
|
|
29
|
+
tableRowButtons: {
|
|
30
|
+
required: false;
|
|
31
|
+
default: () => any[];
|
|
32
|
+
type: import("vue").PropType<isMobileDevice[]>;
|
|
33
|
+
};
|
|
34
|
+
tableData: {
|
|
35
|
+
required: true;
|
|
36
|
+
type: import("vue").PropType<any[]>;
|
|
37
|
+
default(): any[];
|
|
38
|
+
};
|
|
39
|
+
tablePagination: {
|
|
40
|
+
required: false;
|
|
41
|
+
type: import("vue").PropType<isMobileDevice>;
|
|
42
|
+
default: () => {
|
|
43
|
+
currentPage: number;
|
|
44
|
+
pageSize: number;
|
|
45
|
+
total: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
btnClick: (...args: any[]) => void;
|
|
50
|
+
queryClick: (...args: any[]) => void;
|
|
51
|
+
valueChange: (...args: any[]) => void;
|
|
52
|
+
treeLazyLoad: (...args: any[]) => void;
|
|
53
|
+
onSelection: (...args: any[]) => void;
|
|
54
|
+
"update:tablePagination": (value: any) => void;
|
|
55
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
tableId: {
|
|
57
|
+
required: true;
|
|
58
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
59
|
+
};
|
|
60
|
+
tableConfig: {
|
|
61
|
+
required: true;
|
|
62
|
+
type: import("vue").PropType<isMobileDevice>;
|
|
63
|
+
};
|
|
64
|
+
vxeGridOptions: {
|
|
65
|
+
required: false;
|
|
66
|
+
type: import("vue").PropType<import("vxe-table").VxeGridProps>;
|
|
67
|
+
};
|
|
68
|
+
columns: {
|
|
69
|
+
required: true;
|
|
70
|
+
type: import("vue").PropType<any[]>;
|
|
71
|
+
};
|
|
72
|
+
queryConfig: {
|
|
73
|
+
required: false;
|
|
74
|
+
type: import("vue").PropType<isMobileDevice[]>;
|
|
75
|
+
default: any[];
|
|
76
|
+
};
|
|
77
|
+
tableToolButtons: {
|
|
78
|
+
required: false;
|
|
79
|
+
default: () => any[];
|
|
80
|
+
type: import("vue").PropType<isMobileDevice[]>;
|
|
81
|
+
};
|
|
82
|
+
tableRowButtons: {
|
|
83
|
+
required: false;
|
|
84
|
+
default: () => any[];
|
|
85
|
+
type: import("vue").PropType<isMobileDevice[]>;
|
|
86
|
+
};
|
|
87
|
+
tableData: {
|
|
88
|
+
required: true;
|
|
89
|
+
type: import("vue").PropType<any[]>;
|
|
90
|
+
default(): any[];
|
|
91
|
+
};
|
|
92
|
+
tablePagination: {
|
|
93
|
+
required: false;
|
|
94
|
+
type: import("vue").PropType<isMobileDevice>;
|
|
95
|
+
default: () => {
|
|
96
|
+
currentPage: number;
|
|
97
|
+
pageSize: number;
|
|
98
|
+
total: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}>> & Readonly<{
|
|
102
|
+
onBtnClick?: (...args: any[]) => any;
|
|
103
|
+
onQueryClick?: (...args: any[]) => any;
|
|
104
|
+
onValueChange?: (...args: any[]) => any;
|
|
105
|
+
onTreeLazyLoad?: (...args: any[]) => any;
|
|
106
|
+
onOnSelection?: (...args: any[]) => any;
|
|
107
|
+
"onUpdate:tablePagination"?: (value: any) => any;
|
|
108
|
+
}>, {
|
|
109
|
+
queryConfig: TableQueryFrame[];
|
|
110
|
+
tableToolButtons: KeliButton[];
|
|
111
|
+
tableRowButtons: KeliButton[];
|
|
112
|
+
tableData: any[];
|
|
113
|
+
tablePagination: Pagination;
|
|
114
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
115
|
+
export default KeliTableRender;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { TableSelector } from '@/packages/types/tableFrame';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
value: {
|
|
5
|
+
required: false;
|
|
6
|
+
default: () => any;
|
|
7
|
+
};
|
|
8
|
+
detail: {
|
|
9
|
+
required: true;
|
|
10
|
+
type: PropType<TableSelector>;
|
|
11
|
+
};
|
|
12
|
+
rowData: {
|
|
13
|
+
required: false;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
valueChange: (...args: any[]) => void;
|
|
18
|
+
"update:value": (...args: any[]) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
value: {
|
|
21
|
+
required: false;
|
|
22
|
+
default: () => any;
|
|
23
|
+
};
|
|
24
|
+
detail: {
|
|
25
|
+
required: true;
|
|
26
|
+
type: PropType<TableSelector>;
|
|
27
|
+
};
|
|
28
|
+
rowData: {
|
|
29
|
+
required: false;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onValueChange?: (...args: any[]) => any;
|
|
34
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
35
|
+
}>, {
|
|
36
|
+
value: any;
|
|
37
|
+
rowData: {};
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { TableSelector } from '@/packages/types/tableFrame';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
value: {
|
|
5
|
+
required: false;
|
|
6
|
+
default: () => any;
|
|
7
|
+
};
|
|
8
|
+
detail: {
|
|
9
|
+
required: true;
|
|
10
|
+
type: PropType<TableSelector>;
|
|
11
|
+
};
|
|
12
|
+
rowData: {
|
|
13
|
+
required: false;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
valueChange: (...args: any[]) => void;
|
|
18
|
+
"update:value": (...args: any[]) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
value: {
|
|
21
|
+
required: false;
|
|
22
|
+
default: () => any;
|
|
23
|
+
};
|
|
24
|
+
detail: {
|
|
25
|
+
required: true;
|
|
26
|
+
type: PropType<TableSelector>;
|
|
27
|
+
};
|
|
28
|
+
rowData: {
|
|
29
|
+
required: false;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onValueChange?: (...args: any[]) => any;
|
|
34
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
35
|
+
}>, {
|
|
36
|
+
value: any;
|
|
37
|
+
rowData: {};
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
export default _default;
|