@partex/one-core 2.0.10 → 2.0.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.
- package/lib/components/actionButton/index.d.ts +1 -1
- package/lib/components/actionButton/interface.d.ts +11 -1
- package/lib/components/tableEdit/components/action.vue.d.ts +6 -6
- package/lib/components/tableEdit/components/form.vue.d.ts +2 -2
- package/lib/components/tableEdit/components/header.vue.d.ts +2 -2
- package/lib/components/tableEdit/index.vue.d.ts +27 -7
- package/lib/one-core.cjs +7 -7
- package/lib/one-core.js +4140 -4061
- package/lib/one-core.umd.cjs +7 -7
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -15,5 +15,15 @@ interface IActionButtonCustom extends IActionButtonBase {
|
|
|
15
15
|
icon?: any;
|
|
16
16
|
color?: 'default' | 'tertiary' | 'primary' | 'success' | 'info' | 'warning' | 'error';
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
interface IActionButtonGroup {
|
|
19
|
+
type: 'group';
|
|
20
|
+
icon?: any;
|
|
21
|
+
color?: 'default' | 'tertiary' | 'primary' | 'success' | 'info' | 'warning' | 'error';
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
buttonText?: string;
|
|
25
|
+
children: Array<IActionButtonNormal | IActionButtonCustom>;
|
|
26
|
+
}
|
|
27
|
+
export type IActionSingleButton = IActionButtonNormal | IActionButtonCustom;
|
|
28
|
+
export type IActionButton = IActionSingleButton | IActionButtonGroup;
|
|
19
29
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Fn } from '../..';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IActionSingleButton } from '../../actionButton';
|
|
4
4
|
declare const _default: DefineComponent<{
|
|
5
5
|
value: {
|
|
6
|
-
type: PropType<
|
|
6
|
+
type: PropType<IActionSingleButton>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
}, {
|
|
10
|
+
popoverRef: Ref<any>;
|
|
10
11
|
element: Ref<{
|
|
11
12
|
type: "delete" | "detail" | "edit";
|
|
12
13
|
disabled?: boolean | undefined;
|
|
@@ -35,15 +36,14 @@ declare const _default: DefineComponent<{
|
|
|
35
36
|
}[]>;
|
|
36
37
|
doSubmit: () => void;
|
|
37
38
|
doCancel: () => void;
|
|
38
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
39
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "on-update:value"[], "on-update:value", PublicProps, Readonly<ExtractPropTypes<{
|
|
39
40
|
value: {
|
|
40
|
-
type: PropType<
|
|
41
|
+
type: PropType<IActionSingleButton>;
|
|
41
42
|
default: undefined;
|
|
42
43
|
};
|
|
43
44
|
}>> & {
|
|
44
45
|
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
45
|
-
"onUpdate:cancel"?: ((...args: any[]) => any) | undefined;
|
|
46
46
|
}, {
|
|
47
|
-
value:
|
|
47
|
+
value: IActionSingleButton;
|
|
48
48
|
}, {}>;
|
|
49
49
|
export default _default;
|
|
@@ -30,6 +30,7 @@ declare const _default: DefineComponent<{
|
|
|
30
30
|
}[];
|
|
31
31
|
}>;
|
|
32
32
|
formRef: Ref<any>;
|
|
33
|
+
popoverRef: Ref<any>;
|
|
33
34
|
element: Ref<{
|
|
34
35
|
input: "input";
|
|
35
36
|
type: "textarea" | "text" | "password";
|
|
@@ -240,14 +241,13 @@ declare const _default: DefineComponent<{
|
|
|
240
241
|
inputChange: (value: '' | 'number' | 'date' | 'select' | 'input' | 'time' | 'switch' | 'upload') => void;
|
|
241
242
|
doSelectAdd: () => void;
|
|
242
243
|
doSelectDelete: (index: number) => void;
|
|
243
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
244
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "on-update:value"[], "on-update:value", PublicProps, Readonly<ExtractPropTypes<{
|
|
244
245
|
value: {
|
|
245
246
|
type: PropType<IFormItem>;
|
|
246
247
|
default: undefined;
|
|
247
248
|
};
|
|
248
249
|
}>> & {
|
|
249
250
|
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
250
|
-
"onUpdate:cancel"?: ((...args: any[]) => any) | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
value: IFormItem;
|
|
253
253
|
}, {}>;
|
|
@@ -10,6 +10,7 @@ declare const _default: DefineComponent<{
|
|
|
10
10
|
};
|
|
11
11
|
}, {
|
|
12
12
|
formRef: Ref<any>;
|
|
13
|
+
popoverRef: Ref<any>;
|
|
13
14
|
rules: Ref<{
|
|
14
15
|
title: {
|
|
15
16
|
required: boolean;
|
|
@@ -252,7 +253,7 @@ declare const _default: DefineComponent<{
|
|
|
252
253
|
doSelectDelete: (index: number) => void;
|
|
253
254
|
doGroupAdd: () => void;
|
|
254
255
|
doGroupDelete: (index: number) => void;
|
|
255
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
256
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "on-update:value"[], "on-update:value", PublicProps, Readonly<ExtractPropTypes<{
|
|
256
257
|
value: {
|
|
257
258
|
type: PropType<IOcDataTableColumn<{
|
|
258
259
|
[x: string]: unknown;
|
|
@@ -261,7 +262,6 @@ declare const _default: DefineComponent<{
|
|
|
261
262
|
};
|
|
262
263
|
}>> & {
|
|
263
264
|
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
264
|
-
"onUpdate:cancel"?: ((...args: any[]) => any) | undefined;
|
|
265
265
|
}, {
|
|
266
266
|
value: IOcDataTableColumn<{
|
|
267
267
|
[x: string]: unknown;
|
|
@@ -210,8 +210,6 @@ declare const _default: DefineComponent<{}, {
|
|
|
210
210
|
} | undefined;
|
|
211
211
|
}[]>;
|
|
212
212
|
columnData: Ref<string>;
|
|
213
|
-
popoverRef: Ref<any>;
|
|
214
|
-
popoverRefs: Ref<any[]>;
|
|
215
213
|
actions: Ref<({
|
|
216
214
|
type: "delete" | "detail" | "edit";
|
|
217
215
|
disabled?: boolean | undefined;
|
|
@@ -229,9 +227,32 @@ declare const _default: DefineComponent<{}, {
|
|
|
229
227
|
buttonText?: string | undefined;
|
|
230
228
|
confirmText?: string | undefined;
|
|
231
229
|
onClick: string | Fn<any, any>;
|
|
230
|
+
} | {
|
|
231
|
+
type: "group";
|
|
232
|
+
icon?: any;
|
|
233
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
234
|
+
disabled?: boolean | undefined;
|
|
235
|
+
loading?: boolean | undefined;
|
|
236
|
+
buttonText?: string | undefined;
|
|
237
|
+
children: ({
|
|
238
|
+
type: "delete" | "detail" | "edit";
|
|
239
|
+
disabled?: boolean | undefined;
|
|
240
|
+
loading?: boolean | undefined;
|
|
241
|
+
buttonText?: string | undefined;
|
|
242
|
+
confirmText?: string | undefined;
|
|
243
|
+
onClick: string | Fn<any, any>;
|
|
244
|
+
} | {
|
|
245
|
+
type: "custom";
|
|
246
|
+
tooltipText: string;
|
|
247
|
+
icon?: any;
|
|
248
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
249
|
+
disabled?: boolean | undefined;
|
|
250
|
+
loading?: boolean | undefined;
|
|
251
|
+
buttonText?: string | undefined;
|
|
252
|
+
confirmText?: string | undefined;
|
|
253
|
+
onClick: string | Fn<any, any>;
|
|
254
|
+
})[];
|
|
232
255
|
})[]>;
|
|
233
|
-
actionRef: Ref<any>;
|
|
234
|
-
actionRefs: Ref<any[]>;
|
|
235
256
|
forms: Ref<({
|
|
236
257
|
input: "input";
|
|
237
258
|
type: "textarea" | "text" | "password";
|
|
@@ -396,8 +417,6 @@ declare const _default: DefineComponent<{}, {
|
|
|
396
417
|
readonly?: boolean | undefined;
|
|
397
418
|
} | undefined;
|
|
398
419
|
})[]>;
|
|
399
|
-
formRef: Ref<any>;
|
|
400
|
-
formRefs: Ref<any[]>;
|
|
401
420
|
drawer: Ref<boolean>;
|
|
402
421
|
formValues: Ref<string>;
|
|
403
422
|
vueData: Ref<string>;
|
|
@@ -575,12 +594,13 @@ declare const _default: DefineComponent<{}, {
|
|
|
575
594
|
fetchData: (value: any) => Promise<unknown>;
|
|
576
595
|
addNewOne: (value: IOcDataTableColumn) => void;
|
|
577
596
|
changeOne: (value: IOcDataTableColumn, index: number) => void;
|
|
578
|
-
doCancel: () => void;
|
|
579
597
|
addActionNewOne: (value: IActionButton) => void;
|
|
580
598
|
changeActionOne: (value: IActionButton, index: number) => void;
|
|
599
|
+
changeActionGroupOne: (value: IActionButton, index: number, index2: number) => void;
|
|
581
600
|
addFormNewOne: (value: IFormItem) => void;
|
|
582
601
|
changeFormOne: (value: IFormItem, index: number) => void;
|
|
583
602
|
createVue: () => void;
|
|
584
603
|
addHeader: (type: 1) => void;
|
|
604
|
+
addAction: (type: 1) => void;
|
|
585
605
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
586
606
|
export default _default;
|