@partex/one-core 2.0.11 → 2.0.13
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/lib/components/actionButton/interface.d.ts +2 -2
- package/lib/components/table/index.vue.d.ts +5 -2
- package/lib/components/tableEdit/components/action.vue.d.ts +36 -6
- package/lib/components/tableEdit/index.vue.d.ts +25 -21
- package/lib/one-core.cjs +6 -6
- package/lib/one-core.js +2332 -2299
- package/lib/one-core.umd.cjs +6 -6
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ import type { Fn } from '../common';
|
|
|
2
2
|
type IActionButtonBase = {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
loading?: boolean;
|
|
5
|
+
icon?: any;
|
|
6
|
+
color?: 'default' | 'tertiary' | 'primary' | 'success' | 'info' | 'warning' | 'error';
|
|
5
7
|
buttonText?: string;
|
|
6
8
|
confirmText?: string;
|
|
7
9
|
onClick: Fn | string;
|
|
@@ -12,8 +14,6 @@ interface IActionButtonNormal extends IActionButtonBase {
|
|
|
12
14
|
interface IActionButtonCustom extends IActionButtonBase {
|
|
13
15
|
type: 'custom';
|
|
14
16
|
tooltipText: string;
|
|
15
|
-
icon?: any;
|
|
16
|
-
color?: 'default' | 'tertiary' | 'primary' | 'success' | 'info' | 'warning' | 'error';
|
|
17
17
|
}
|
|
18
18
|
interface IActionButtonGroup {
|
|
19
19
|
type: 'group';
|
|
@@ -136,7 +136,7 @@ declare const _default: DefineComponent<{
|
|
|
136
136
|
showChange: (element: any) => void;
|
|
137
137
|
submit: (value: TableQuery) => void;
|
|
138
138
|
exportData: () => void;
|
|
139
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
139
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:loading")[], "on-update:value" | "update:loading", PublicProps, Readonly<ExtractPropTypes<{
|
|
140
140
|
columns: {
|
|
141
141
|
required: true;
|
|
142
142
|
type: PropType<IOcDataTableColumns>;
|
|
@@ -212,7 +212,10 @@ declare const _default: DefineComponent<{
|
|
|
212
212
|
}>;
|
|
213
213
|
default: undefined;
|
|
214
214
|
};
|
|
215
|
-
}
|
|
215
|
+
}>> & {
|
|
216
|
+
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
218
|
+
}, {
|
|
216
219
|
actions: IActionButton[];
|
|
217
220
|
pagination: boolean;
|
|
218
221
|
minHeight: string | number;
|
|
@@ -1,27 +1,56 @@
|
|
|
1
1
|
import { Fn } from '../..';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IActionButton } from '../../actionButton';
|
|
4
4
|
declare const _default: DefineComponent<{
|
|
5
5
|
value: {
|
|
6
|
-
type: PropType<
|
|
6
|
+
type: PropType<IActionButton>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
}, {
|
|
10
10
|
popoverRef: Ref<any>;
|
|
11
11
|
element: Ref<{
|
|
12
|
+
type: "group";
|
|
13
|
+
icon?: any;
|
|
14
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
15
|
+
disabled?: boolean | undefined;
|
|
16
|
+
loading?: boolean | undefined;
|
|
17
|
+
buttonText?: string | undefined;
|
|
18
|
+
children: ({
|
|
19
|
+
type: "delete" | "detail" | "edit";
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
|
+
loading?: boolean | undefined;
|
|
22
|
+
icon?: any;
|
|
23
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
24
|
+
buttonText?: string | undefined;
|
|
25
|
+
confirmText?: string | undefined;
|
|
26
|
+
onClick: string | Fn<any, any>;
|
|
27
|
+
} | {
|
|
28
|
+
type: "custom";
|
|
29
|
+
tooltipText: string;
|
|
30
|
+
disabled?: boolean | undefined;
|
|
31
|
+
loading?: boolean | undefined;
|
|
32
|
+
icon?: any;
|
|
33
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
34
|
+
buttonText?: string | undefined;
|
|
35
|
+
confirmText?: string | undefined;
|
|
36
|
+
onClick: string | Fn<any, any>;
|
|
37
|
+
})[];
|
|
38
|
+
} | {
|
|
12
39
|
type: "delete" | "detail" | "edit";
|
|
13
40
|
disabled?: boolean | undefined;
|
|
14
41
|
loading?: boolean | undefined;
|
|
42
|
+
icon?: any;
|
|
43
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
15
44
|
buttonText?: string | undefined;
|
|
16
45
|
confirmText?: string | undefined;
|
|
17
46
|
onClick: string | Fn<any, any>;
|
|
18
47
|
} | {
|
|
19
48
|
type: "custom";
|
|
20
49
|
tooltipText: string;
|
|
21
|
-
icon?: any;
|
|
22
|
-
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
23
50
|
disabled?: boolean | undefined;
|
|
24
51
|
loading?: boolean | undefined;
|
|
52
|
+
icon?: any;
|
|
53
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
25
54
|
buttonText?: string | undefined;
|
|
26
55
|
confirmText?: string | undefined;
|
|
27
56
|
onClick: string | Fn<any, any>;
|
|
@@ -35,15 +64,16 @@ declare const _default: DefineComponent<{
|
|
|
35
64
|
value: string;
|
|
36
65
|
}[]>;
|
|
37
66
|
doSubmit: () => void;
|
|
67
|
+
inputChange: (value: 'detail' | 'edit' | 'delete' | 'custom' | 'group') => void;
|
|
38
68
|
doCancel: () => void;
|
|
39
69
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "on-update:value"[], "on-update:value", PublicProps, Readonly<ExtractPropTypes<{
|
|
40
70
|
value: {
|
|
41
|
-
type: PropType<
|
|
71
|
+
type: PropType<IActionButton>;
|
|
42
72
|
default: undefined;
|
|
43
73
|
};
|
|
44
74
|
}>> & {
|
|
45
75
|
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
46
76
|
}, {
|
|
47
|
-
value:
|
|
77
|
+
value: IActionButton;
|
|
48
78
|
}, {}>;
|
|
49
79
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { GroupInput } from '../searchBar/interface';
|
|
2
|
-
import { DefineComponent,
|
|
2
|
+
import { DefineComponent, Ref, ComputedRef, VNodeChild, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
import type { IOcDataTableColumn, IOcDataTableColumns } from '../table';
|
|
4
4
|
import type { IActionButton } from '../actionButton';
|
|
5
5
|
import type { IFormItem } from '../form';
|
|
6
6
|
import { Fn, ObjectKey } from '../common';
|
|
7
7
|
declare const _default: DefineComponent<{}, {
|
|
8
|
+
ocFormRef: Ref<any>;
|
|
8
9
|
dragOptions: ComputedRef<{
|
|
9
10
|
animation: number;
|
|
10
11
|
group: string;
|
|
@@ -211,23 +212,6 @@ declare const _default: DefineComponent<{}, {
|
|
|
211
212
|
}[]>;
|
|
212
213
|
columnData: Ref<string>;
|
|
213
214
|
actions: Ref<({
|
|
214
|
-
type: "delete" | "detail" | "edit";
|
|
215
|
-
disabled?: boolean | undefined;
|
|
216
|
-
loading?: boolean | undefined;
|
|
217
|
-
buttonText?: string | undefined;
|
|
218
|
-
confirmText?: string | undefined;
|
|
219
|
-
onClick: string | Fn<any, any>;
|
|
220
|
-
} | {
|
|
221
|
-
type: "custom";
|
|
222
|
-
tooltipText: string;
|
|
223
|
-
icon?: any;
|
|
224
|
-
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
225
|
-
disabled?: boolean | undefined;
|
|
226
|
-
loading?: boolean | undefined;
|
|
227
|
-
buttonText?: string | undefined;
|
|
228
|
-
confirmText?: string | undefined;
|
|
229
|
-
onClick: string | Fn<any, any>;
|
|
230
|
-
} | {
|
|
231
215
|
type: "group";
|
|
232
216
|
icon?: any;
|
|
233
217
|
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
@@ -238,20 +222,41 @@ declare const _default: DefineComponent<{}, {
|
|
|
238
222
|
type: "delete" | "detail" | "edit";
|
|
239
223
|
disabled?: boolean | undefined;
|
|
240
224
|
loading?: boolean | undefined;
|
|
225
|
+
icon?: any;
|
|
226
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
241
227
|
buttonText?: string | undefined;
|
|
242
228
|
confirmText?: string | undefined;
|
|
243
229
|
onClick: string | Fn<any, any>;
|
|
244
230
|
} | {
|
|
245
231
|
type: "custom";
|
|
246
232
|
tooltipText: string;
|
|
247
|
-
icon?: any;
|
|
248
|
-
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
249
233
|
disabled?: boolean | undefined;
|
|
250
234
|
loading?: boolean | undefined;
|
|
235
|
+
icon?: any;
|
|
236
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
251
237
|
buttonText?: string | undefined;
|
|
252
238
|
confirmText?: string | undefined;
|
|
253
239
|
onClick: string | Fn<any, any>;
|
|
254
240
|
})[];
|
|
241
|
+
} | {
|
|
242
|
+
type: "delete" | "detail" | "edit";
|
|
243
|
+
disabled?: boolean | undefined;
|
|
244
|
+
loading?: boolean | undefined;
|
|
245
|
+
icon?: any;
|
|
246
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
247
|
+
buttonText?: string | undefined;
|
|
248
|
+
confirmText?: string | undefined;
|
|
249
|
+
onClick: string | Fn<any, any>;
|
|
250
|
+
} | {
|
|
251
|
+
type: "custom";
|
|
252
|
+
tooltipText: string;
|
|
253
|
+
disabled?: boolean | undefined;
|
|
254
|
+
loading?: boolean | undefined;
|
|
255
|
+
icon?: any;
|
|
256
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
257
|
+
buttonText?: string | undefined;
|
|
258
|
+
confirmText?: string | undefined;
|
|
259
|
+
onClick: string | Fn<any, any>;
|
|
255
260
|
})[]>;
|
|
256
261
|
forms: Ref<({
|
|
257
262
|
input: "input";
|
|
@@ -601,6 +606,5 @@ declare const _default: DefineComponent<{}, {
|
|
|
601
606
|
changeFormOne: (value: IFormItem, index: number) => void;
|
|
602
607
|
createVue: () => void;
|
|
603
608
|
addHeader: (type: 1) => void;
|
|
604
|
-
addAction: (type: 1) => void;
|
|
605
609
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
606
610
|
export default _default;
|