@partex/one-core 2.0.9 → 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/searchBar/interface.d.ts +0 -4
- 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 +17 -6
- package/lib/components/tableEdit/index.vue.d.ts +31 -11
- package/lib/components/tableEdit/interface.d.ts +2 -0
- package/lib/one-core.cjs +4 -4
- package/lib/one-core.js +4252 -3810
- package/lib/one-core.umd.cjs +3 -3
- 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 {};
|
|
@@ -58,19 +58,15 @@ export interface TimePicker extends Base {
|
|
|
58
58
|
type unUse = 'title' | 'show';
|
|
59
59
|
type unGroupUse = 'title' | 'clearable';
|
|
60
60
|
export interface GInput extends Omit<Input, unUse> {
|
|
61
|
-
key: string;
|
|
62
61
|
options?: Array<SelectOption | SelectGroupOption>;
|
|
63
62
|
}
|
|
64
63
|
export interface GInputNumber extends Omit<InputNumber, unUse> {
|
|
65
|
-
key: string;
|
|
66
64
|
options?: Array<SelectOption | SelectGroupOption>;
|
|
67
65
|
}
|
|
68
66
|
export interface GDatePicker extends Omit<DatePicker, unUse> {
|
|
69
|
-
key: string;
|
|
70
67
|
options?: Array<SelectOption | SelectGroupOption>;
|
|
71
68
|
}
|
|
72
69
|
export interface GSelectPicker extends Omit<Select, 'title' | 'show' | 'multiple'> {
|
|
73
|
-
key: string;
|
|
74
70
|
multiple?: boolean;
|
|
75
71
|
}
|
|
76
72
|
export interface GSelect extends Omit<Select, unUse> {
|
|
@@ -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;
|
|
@@ -37,6 +38,8 @@ declare const _default: DefineComponent<{
|
|
|
37
38
|
type?: undefined;
|
|
38
39
|
tree?: boolean | undefined;
|
|
39
40
|
resizable?: boolean | undefined;
|
|
41
|
+
show?: boolean | undefined;
|
|
42
|
+
hide?: boolean | undefined;
|
|
40
43
|
minWidth?: string | number | undefined;
|
|
41
44
|
maxWidth?: string | number | undefined;
|
|
42
45
|
render?: string | undefined;
|
|
@@ -152,20 +155,20 @@ declare const _default: DefineComponent<{
|
|
|
152
155
|
};
|
|
153
156
|
width?: string | number | undefined;
|
|
154
157
|
inputTemp?: {
|
|
155
|
-
key: string;
|
|
156
158
|
options?: any[] | undefined;
|
|
157
159
|
type: "input";
|
|
158
160
|
disabled?: boolean | undefined;
|
|
161
|
+
key?: string | undefined;
|
|
159
162
|
placeholder?: string | (() => string) | undefined;
|
|
160
163
|
defaultValue?: any;
|
|
161
164
|
clearable?: boolean | undefined;
|
|
162
165
|
updateValue?: ((value: string | number | [] | null, data: any) => void) | undefined;
|
|
163
166
|
} | {
|
|
164
|
-
key: string;
|
|
165
167
|
options?: any[] | undefined;
|
|
166
168
|
max?: number | undefined;
|
|
167
169
|
type: "number";
|
|
168
170
|
disabled?: boolean | undefined;
|
|
171
|
+
key?: string | undefined;
|
|
169
172
|
validator?: ((value: number) => boolean) | undefined;
|
|
170
173
|
min?: number | undefined;
|
|
171
174
|
suffix?: string | undefined;
|
|
@@ -176,10 +179,10 @@ declare const _default: DefineComponent<{
|
|
|
176
179
|
showButton?: boolean | undefined;
|
|
177
180
|
updateValue?: ((value: string | number | [] | null, data: any) => void) | undefined;
|
|
178
181
|
} | {
|
|
179
|
-
key: string;
|
|
180
182
|
options?: any[] | undefined;
|
|
181
183
|
type: "datePicker";
|
|
182
184
|
disabled?: boolean | undefined;
|
|
185
|
+
key?: string | undefined;
|
|
183
186
|
placeholder?: string | (() => string) | undefined;
|
|
184
187
|
defaultValue?: any;
|
|
185
188
|
clearable?: boolean | undefined;
|
|
@@ -189,11 +192,11 @@ declare const _default: DefineComponent<{
|
|
|
189
192
|
dateType: "date" | "datetime" | "daterange" | "datetimerange" | "month" | "monthrange" | "year" | "quarter";
|
|
190
193
|
updateValue?: ((value: string | number | [] | null, data: any) => void) | undefined;
|
|
191
194
|
} | {
|
|
192
|
-
key: string;
|
|
193
195
|
multiple?: boolean | undefined;
|
|
194
196
|
type: "select";
|
|
195
197
|
options: any;
|
|
196
198
|
disabled?: boolean | undefined;
|
|
199
|
+
key?: string | undefined;
|
|
197
200
|
placeholder?: string | (() => string) | undefined;
|
|
198
201
|
defaultValue?: any;
|
|
199
202
|
clearable?: boolean | undefined;
|
|
@@ -239,9 +242,18 @@ declare const _default: DefineComponent<{
|
|
|
239
242
|
label: string;
|
|
240
243
|
value: string;
|
|
241
244
|
}[]>;
|
|
245
|
+
optionsE: Ref<{
|
|
246
|
+
label: string;
|
|
247
|
+
value: string;
|
|
248
|
+
}[]>;
|
|
249
|
+
inputChange: (value: '' | 'input' | 'number' | 'datePicker' | 'timePicker' | 'group' | 'select' | 'dropdown' | 'cascader' | 'treeSelect') => void;
|
|
242
250
|
doSubmit: () => void;
|
|
243
251
|
doCancel: () => void;
|
|
244
|
-
|
|
252
|
+
doSelectAdd: () => void;
|
|
253
|
+
doSelectDelete: (index: number) => void;
|
|
254
|
+
doGroupAdd: () => void;
|
|
255
|
+
doGroupDelete: (index: number) => void;
|
|
256
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "on-update:value"[], "on-update:value", PublicProps, Readonly<ExtractPropTypes<{
|
|
245
257
|
value: {
|
|
246
258
|
type: PropType<IOcDataTableColumn<{
|
|
247
259
|
[x: string]: unknown;
|
|
@@ -250,7 +262,6 @@ declare const _default: DefineComponent<{
|
|
|
250
262
|
};
|
|
251
263
|
}>> & {
|
|
252
264
|
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
253
|
-
"onUpdate:cancel"?: ((...args: any[]) => any) | undefined;
|
|
254
265
|
}, {
|
|
255
266
|
value: IOcDataTableColumn<{
|
|
256
267
|
[x: string]: unknown;
|
|
@@ -144,20 +144,20 @@ declare const _default: DefineComponent<{}, {
|
|
|
144
144
|
};
|
|
145
145
|
width?: string | number | undefined;
|
|
146
146
|
inputTemp?: {
|
|
147
|
-
key: string;
|
|
148
147
|
options?: any[] | undefined;
|
|
149
148
|
type: "input";
|
|
150
149
|
disabled?: boolean | undefined;
|
|
150
|
+
key?: string | undefined;
|
|
151
151
|
placeholder?: string | (() => string) | undefined;
|
|
152
152
|
defaultValue?: any;
|
|
153
153
|
clearable?: boolean | undefined;
|
|
154
154
|
updateValue?: ((value: string | number | [] | null, data: any) => void) | undefined;
|
|
155
155
|
} | {
|
|
156
|
-
key: string;
|
|
157
156
|
options?: any[] | undefined;
|
|
158
157
|
max?: number | undefined;
|
|
159
158
|
type: "number";
|
|
160
159
|
disabled?: boolean | undefined;
|
|
160
|
+
key?: string | undefined;
|
|
161
161
|
validator?: ((value: number) => boolean) | undefined;
|
|
162
162
|
min?: number | undefined;
|
|
163
163
|
suffix?: string | undefined;
|
|
@@ -168,10 +168,10 @@ declare const _default: DefineComponent<{}, {
|
|
|
168
168
|
showButton?: boolean | undefined;
|
|
169
169
|
updateValue?: ((value: string | number | [] | null, data: any) => void) | undefined;
|
|
170
170
|
} | {
|
|
171
|
-
key: string;
|
|
172
171
|
options?: any[] | undefined;
|
|
173
172
|
type: "datePicker";
|
|
174
173
|
disabled?: boolean | undefined;
|
|
174
|
+
key?: string | undefined;
|
|
175
175
|
placeholder?: string | (() => string) | undefined;
|
|
176
176
|
defaultValue?: any;
|
|
177
177
|
clearable?: boolean | undefined;
|
|
@@ -181,11 +181,11 @@ declare const _default: DefineComponent<{}, {
|
|
|
181
181
|
dateType: "date" | "datetime" | "daterange" | "datetimerange" | "month" | "monthrange" | "year" | "quarter";
|
|
182
182
|
updateValue?: ((value: string | number | [] | null, data: any) => void) | undefined;
|
|
183
183
|
} | {
|
|
184
|
-
key: string;
|
|
185
184
|
multiple?: boolean | undefined;
|
|
186
185
|
type: "select";
|
|
187
186
|
options: any;
|
|
188
187
|
disabled?: boolean | undefined;
|
|
188
|
+
key?: string | undefined;
|
|
189
189
|
placeholder?: string | (() => string) | undefined;
|
|
190
190
|
defaultValue?: any;
|
|
191
191
|
clearable?: boolean | undefined;
|
|
@@ -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;
|