yc-pro-components 0.0.6 → 0.0.7
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/es/components/check-card/index.d.ts +57 -57
- package/es/components/check-card/src/index.vue.d.ts +14 -14
- package/es/components/check-card-group/index.d.ts +22 -22
- package/es/components/check-card-group/src/index.vue.d.ts +19 -19
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/date-picker/src/index.vue.d.ts +1 -1
- package/es/components/descriptions/index.d.ts +39 -39
- package/es/components/descriptions/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +19 -19
- package/es/components/dialog/src/index.vue.d.ts +1 -1
- package/es/components/dialog-form/index.d.ts +47 -47
- package/es/components/dialog-form/src/index.vue.d.ts +7 -7
- package/es/components/display-item/index.d.ts +12 -12
- package/es/components/display-item/src/index.vue.d.ts +12 -12
- package/es/components/drawer-form/index.d.ts +28 -28
- package/es/components/drawer-form/src/index.vue.d.ts +6 -6
- package/es/components/form/index.d.ts +107 -107
- package/es/components/form/src/form-content.vue.d.ts +17 -17
- package/es/components/form/src/index.vue.d.ts +16 -16
- package/es/components/form-item/index.d.ts +106 -106
- package/es/components/form-item/src/index.vue.d.ts +14 -14
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +11 -11
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- package/es/components/page/index.d.ts +900 -900
- package/es/components/page/src/index.vue.d.ts +289 -289
- package/es/components/pagination/index.d.ts +4 -4
- package/es/components/pagination/src/index.vue.d.ts +1 -1
- package/es/components/radio/index.d.ts +26 -26
- package/es/components/radio/src/index.vue.d.ts +26 -26
- package/es/components/render/index.d.ts +17 -17
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +328 -328
- package/es/components/search/src/index.vue.d.ts +95 -95
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +74 -74
- package/es/components/table/src/index.vue.d.ts +19 -19
- package/es/components/table/src/table-action-bar.vue.d.ts +3 -3
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +12 -12
- package/es/components/utils/index.d.ts +15 -15
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-drawer/store.d.ts +6 -6
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/index.vue.d.ts +677 -677
- package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/es/components/yc-segmented/index.d.ts +1 -1
- package/es/components/yc-segmented/src/index.d.ts +1 -1
- package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/es/components/yc-status-dialog/src/index.vue.d.ts +2 -2
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +193 -193
- package/es/index.css +2 -2
- package/index.css +19 -14
- package/index.js +2 -2
- package/index.min.css +2 -2
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +2 -2
- package/lib/components/check-card/index.d.ts +57 -57
- package/lib/components/check-card/src/index.vue.d.ts +14 -14
- package/lib/components/check-card-group/index.d.ts +22 -22
- package/lib/components/check-card-group/src/index.vue.d.ts +19 -19
- package/lib/components/date-picker/index.d.ts +1 -1
- package/lib/components/date-picker/src/index.vue.d.ts +1 -1
- package/lib/components/descriptions/index.d.ts +39 -39
- package/lib/components/descriptions/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +19 -19
- package/lib/components/dialog/src/index.vue.d.ts +1 -1
- package/lib/components/dialog-form/index.d.ts +47 -47
- package/lib/components/dialog-form/src/index.vue.d.ts +7 -7
- package/lib/components/display-item/index.d.ts +12 -12
- package/lib/components/display-item/src/index.vue.d.ts +12 -12
- package/lib/components/drawer-form/index.d.ts +28 -28
- package/lib/components/drawer-form/src/index.vue.d.ts +6 -6
- package/lib/components/form/index.d.ts +107 -107
- package/lib/components/form/src/form-content.vue.d.ts +17 -17
- package/lib/components/form/src/index.vue.d.ts +16 -16
- package/lib/components/form-item/index.d.ts +106 -106
- package/lib/components/form-item/src/index.vue.d.ts +14 -14
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +11 -11
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- package/lib/components/page/index.d.ts +900 -900
- package/lib/components/page/src/index.vue.d.ts +289 -289
- package/lib/components/pagination/index.d.ts +4 -4
- package/lib/components/pagination/src/index.vue.d.ts +1 -1
- package/lib/components/radio/index.d.ts +26 -26
- package/lib/components/radio/src/index.vue.d.ts +26 -26
- package/lib/components/render/index.d.ts +17 -17
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +328 -328
- package/lib/components/search/src/index.vue.d.ts +95 -95
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +74 -74
- package/lib/components/table/src/index.vue.d.ts +19 -19
- package/lib/components/table/src/table-action-bar.vue.d.ts +3 -3
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +12 -12
- package/lib/components/utils/index.d.ts +15 -15
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-drawer/store.d.ts +6 -6
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/index.vue.d.ts +677 -677
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/lib/components/yc-segmented/index.d.ts +1 -1
- package/lib/components/yc-segmented/src/index.d.ts +1 -1
- package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +2 -2
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/usePlusFormReset.d.ts +193 -193
- package/lib/index.css +2 -2
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-yc-line-tree.css +1 -0
- package/theme-chalk/plus-yc-plus-tree.css +1 -1
- package/theme-chalk/plus-yc-status-dialog.css +1 -1
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/yc-line-tree.scss +64 -0
- package/theme-chalk/src/yc-plus-tree.scss +102 -0
- package/theme-chalk/src/yc-status-dialog.scss +7 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PlusColumn, PlusFormProps, RecordType, FieldValueType, TableFormRefRow } from 'packages/yc-components';
|
|
2
2
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ShallowRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
3
|
import { default as Descriptions } from './src/index.vue';
|
|
4
4
|
|
|
@@ -6,6 +6,14 @@ export type PlusDescriptionsInstance = InstanceType<typeof Descriptions>;
|
|
|
6
6
|
export type { PlusDescriptionsProps } from './src/index.vue';
|
|
7
7
|
export declare const PlusDescriptions: {
|
|
8
8
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
9
|
+
columns: {
|
|
10
|
+
type: PropType< PlusColumn[]>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
formProps: {
|
|
14
|
+
type: PropType<PlusFormProps>;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
9
17
|
data: {
|
|
10
18
|
type: PropType<RecordType>;
|
|
11
19
|
required: true;
|
|
@@ -15,14 +23,6 @@ export declare const PlusDescriptions: {
|
|
|
15
23
|
type: PropType<string>;
|
|
16
24
|
default: string;
|
|
17
25
|
};
|
|
18
|
-
columns: {
|
|
19
|
-
type: PropType< PlusColumn[]>;
|
|
20
|
-
default: () => never[];
|
|
21
|
-
};
|
|
22
|
-
formProps: {
|
|
23
|
-
type: PropType<PlusFormProps>;
|
|
24
|
-
default: undefined;
|
|
25
|
-
};
|
|
26
26
|
border: {
|
|
27
27
|
type: PropType<boolean>;
|
|
28
28
|
default: boolean;
|
|
@@ -60,6 +60,14 @@ export declare const PlusDescriptions: {
|
|
|
60
60
|
value: FieldValueType;
|
|
61
61
|
}) => void;
|
|
62
62
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
63
|
+
columns: {
|
|
64
|
+
type: PropType< PlusColumn[]>;
|
|
65
|
+
default: () => never[];
|
|
66
|
+
};
|
|
67
|
+
formProps: {
|
|
68
|
+
type: PropType<PlusFormProps>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
63
71
|
data: {
|
|
64
72
|
type: PropType<RecordType>;
|
|
65
73
|
required: true;
|
|
@@ -69,14 +77,6 @@ export declare const PlusDescriptions: {
|
|
|
69
77
|
type: PropType<string>;
|
|
70
78
|
default: string;
|
|
71
79
|
};
|
|
72
|
-
columns: {
|
|
73
|
-
type: PropType< PlusColumn[]>;
|
|
74
|
-
default: () => never[];
|
|
75
|
-
};
|
|
76
|
-
formProps: {
|
|
77
|
-
type: PropType<PlusFormProps>;
|
|
78
|
-
default: undefined;
|
|
79
|
-
};
|
|
80
80
|
border: {
|
|
81
81
|
type: PropType<boolean>;
|
|
82
82
|
default: boolean;
|
|
@@ -102,10 +102,10 @@ export declare const PlusDescriptions: {
|
|
|
102
102
|
value: FieldValueType;
|
|
103
103
|
}) => any) | undefined;
|
|
104
104
|
}, {
|
|
105
|
-
data: RecordType;
|
|
106
|
-
title: string;
|
|
107
105
|
columns: PlusColumn[];
|
|
108
106
|
formProps: PlusFormProps;
|
|
107
|
+
data: RecordType;
|
|
108
|
+
title: string;
|
|
109
109
|
border: boolean;
|
|
110
110
|
column: number;
|
|
111
111
|
editable: boolean;
|
|
@@ -118,6 +118,14 @@ export declare const PlusDescriptions: {
|
|
|
118
118
|
M: {};
|
|
119
119
|
Defaults: {};
|
|
120
120
|
}, Readonly< ExtractPropTypes<{
|
|
121
|
+
columns: {
|
|
122
|
+
type: PropType< PlusColumn[]>;
|
|
123
|
+
default: () => never[];
|
|
124
|
+
};
|
|
125
|
+
formProps: {
|
|
126
|
+
type: PropType<PlusFormProps>;
|
|
127
|
+
default: undefined;
|
|
128
|
+
};
|
|
121
129
|
data: {
|
|
122
130
|
type: PropType<RecordType>;
|
|
123
131
|
required: true;
|
|
@@ -127,14 +135,6 @@ export declare const PlusDescriptions: {
|
|
|
127
135
|
type: PropType<string>;
|
|
128
136
|
default: string;
|
|
129
137
|
};
|
|
130
|
-
columns: {
|
|
131
|
-
type: PropType< PlusColumn[]>;
|
|
132
|
-
default: () => never[];
|
|
133
|
-
};
|
|
134
|
-
formProps: {
|
|
135
|
-
type: PropType<PlusFormProps>;
|
|
136
|
-
default: undefined;
|
|
137
|
-
};
|
|
138
138
|
border: {
|
|
139
139
|
type: PropType<boolean>;
|
|
140
140
|
default: boolean;
|
|
@@ -164,10 +164,10 @@ export declare const PlusDescriptions: {
|
|
|
164
164
|
validate: () => Promise<undefined>;
|
|
165
165
|
clearValidate: () => void;
|
|
166
166
|
}, {}, {}, {}, {
|
|
167
|
-
data: RecordType;
|
|
168
|
-
title: string;
|
|
169
167
|
columns: PlusColumn[];
|
|
170
168
|
formProps: PlusFormProps;
|
|
169
|
+
data: RecordType;
|
|
170
|
+
title: string;
|
|
171
171
|
border: boolean;
|
|
172
172
|
column: number;
|
|
173
173
|
editable: boolean;
|
|
@@ -177,6 +177,14 @@ export declare const PlusDescriptions: {
|
|
|
177
177
|
__isTeleport?: undefined;
|
|
178
178
|
__isSuspense?: undefined;
|
|
179
179
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
180
|
+
columns: {
|
|
181
|
+
type: PropType< PlusColumn[]>;
|
|
182
|
+
default: () => never[];
|
|
183
|
+
};
|
|
184
|
+
formProps: {
|
|
185
|
+
type: PropType<PlusFormProps>;
|
|
186
|
+
default: undefined;
|
|
187
|
+
};
|
|
180
188
|
data: {
|
|
181
189
|
type: PropType<RecordType>;
|
|
182
190
|
required: true;
|
|
@@ -186,14 +194,6 @@ export declare const PlusDescriptions: {
|
|
|
186
194
|
type: PropType<string>;
|
|
187
195
|
default: string;
|
|
188
196
|
};
|
|
189
|
-
columns: {
|
|
190
|
-
type: PropType< PlusColumn[]>;
|
|
191
|
-
default: () => never[];
|
|
192
|
-
};
|
|
193
|
-
formProps: {
|
|
194
|
-
type: PropType<PlusFormProps>;
|
|
195
|
-
default: undefined;
|
|
196
|
-
};
|
|
197
197
|
border: {
|
|
198
198
|
type: PropType<boolean>;
|
|
199
199
|
default: boolean;
|
|
@@ -231,10 +231,10 @@ export declare const PlusDescriptions: {
|
|
|
231
231
|
value: FieldValueType;
|
|
232
232
|
}) => void;
|
|
233
233
|
}, string, {
|
|
234
|
-
data: RecordType;
|
|
235
|
-
title: string;
|
|
236
234
|
columns: PlusColumn[];
|
|
237
235
|
formProps: PlusFormProps;
|
|
236
|
+
data: RecordType;
|
|
237
|
+
title: string;
|
|
238
238
|
border: boolean;
|
|
239
239
|
column: number;
|
|
240
240
|
editable: boolean;
|
|
@@ -69,10 +69,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
69
69
|
}>>> & {
|
|
70
70
|
onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
|
|
71
71
|
}, {
|
|
72
|
-
data: RecordType;
|
|
73
|
-
title: string;
|
|
74
72
|
columns: PlusColumn[];
|
|
75
73
|
formProps: PlusFormProps;
|
|
74
|
+
data: RecordType;
|
|
75
|
+
title: string;
|
|
76
76
|
border: boolean;
|
|
77
77
|
column: number;
|
|
78
78
|
editable: boolean;
|
|
@@ -5,10 +5,6 @@ export type PlusDialogInstance = InstanceType<typeof Dialog>;
|
|
|
5
5
|
export * from './src/type';
|
|
6
6
|
export declare const PlusDialog: {
|
|
7
7
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
8
|
-
title: {
|
|
9
|
-
type: PropType<string>;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
8
|
width: {
|
|
13
9
|
type: PropType<string | number>;
|
|
14
10
|
default: string;
|
|
@@ -21,6 +17,10 @@ export declare const PlusDialog: {
|
|
|
21
17
|
type: PropType<boolean>;
|
|
22
18
|
default: boolean;
|
|
23
19
|
};
|
|
20
|
+
title: {
|
|
21
|
+
type: PropType<string>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
24
|
hasFooter: {
|
|
25
25
|
type: PropType<boolean>;
|
|
26
26
|
default: boolean;
|
|
@@ -50,10 +50,6 @@ export declare const PlusDialog: {
|
|
|
50
50
|
cancel: () => void;
|
|
51
51
|
confirm: () => void;
|
|
52
52
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
53
|
-
title: {
|
|
54
|
-
type: PropType<string>;
|
|
55
|
-
default: string;
|
|
56
|
-
};
|
|
57
53
|
width: {
|
|
58
54
|
type: PropType<string | number>;
|
|
59
55
|
default: string;
|
|
@@ -66,6 +62,10 @@ export declare const PlusDialog: {
|
|
|
66
62
|
type: PropType<boolean>;
|
|
67
63
|
default: boolean;
|
|
68
64
|
};
|
|
65
|
+
title: {
|
|
66
|
+
type: PropType<string>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
69
|
hasFooter: {
|
|
70
70
|
type: PropType<boolean>;
|
|
71
71
|
default: boolean;
|
|
@@ -91,10 +91,10 @@ export declare const PlusDialog: {
|
|
|
91
91
|
onCancel?: (() => any) | undefined;
|
|
92
92
|
onConfirm?: (() => any) | undefined;
|
|
93
93
|
}, {
|
|
94
|
-
title: string;
|
|
95
94
|
width: string | number;
|
|
96
95
|
top: string;
|
|
97
96
|
modelValue: boolean;
|
|
97
|
+
title: string;
|
|
98
98
|
hasFooter: boolean;
|
|
99
99
|
footerAlign: "right" | "left" | "center";
|
|
100
100
|
confirmLoading: boolean;
|
|
@@ -108,10 +108,6 @@ export declare const PlusDialog: {
|
|
|
108
108
|
M: {};
|
|
109
109
|
Defaults: {};
|
|
110
110
|
}, Readonly< ExtractPropTypes<{
|
|
111
|
-
title: {
|
|
112
|
-
type: PropType<string>;
|
|
113
|
-
default: string;
|
|
114
|
-
};
|
|
115
111
|
width: {
|
|
116
112
|
type: PropType<string | number>;
|
|
117
113
|
default: string;
|
|
@@ -124,6 +120,10 @@ export declare const PlusDialog: {
|
|
|
124
120
|
type: PropType<boolean>;
|
|
125
121
|
default: boolean;
|
|
126
122
|
};
|
|
123
|
+
title: {
|
|
124
|
+
type: PropType<string>;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
127
|
hasFooter: {
|
|
128
128
|
type: PropType<boolean>;
|
|
129
129
|
default: boolean;
|
|
@@ -149,10 +149,10 @@ export declare const PlusDialog: {
|
|
|
149
149
|
onCancel?: (() => any) | undefined;
|
|
150
150
|
onConfirm?: (() => any) | undefined;
|
|
151
151
|
}, {}, {}, {}, {}, {
|
|
152
|
-
title: string;
|
|
153
152
|
width: string | number;
|
|
154
153
|
top: string;
|
|
155
154
|
modelValue: boolean;
|
|
155
|
+
title: string;
|
|
156
156
|
hasFooter: boolean;
|
|
157
157
|
footerAlign: "right" | "left" | "center";
|
|
158
158
|
confirmLoading: boolean;
|
|
@@ -163,10 +163,6 @@ export declare const PlusDialog: {
|
|
|
163
163
|
__isTeleport?: undefined;
|
|
164
164
|
__isSuspense?: undefined;
|
|
165
165
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
166
|
-
title: {
|
|
167
|
-
type: PropType<string>;
|
|
168
|
-
default: string;
|
|
169
|
-
};
|
|
170
166
|
width: {
|
|
171
167
|
type: PropType<string | number>;
|
|
172
168
|
default: string;
|
|
@@ -179,6 +175,10 @@ export declare const PlusDialog: {
|
|
|
179
175
|
type: PropType<boolean>;
|
|
180
176
|
default: boolean;
|
|
181
177
|
};
|
|
178
|
+
title: {
|
|
179
|
+
type: PropType<string>;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
182
|
hasFooter: {
|
|
183
183
|
type: PropType<boolean>;
|
|
184
184
|
default: boolean;
|
|
@@ -208,10 +208,10 @@ export declare const PlusDialog: {
|
|
|
208
208
|
cancel: () => void;
|
|
209
209
|
confirm: () => void;
|
|
210
210
|
}, string, {
|
|
211
|
-
title: string;
|
|
212
211
|
width: string | number;
|
|
213
212
|
top: string;
|
|
214
213
|
modelValue: boolean;
|
|
214
|
+
title: string;
|
|
215
215
|
hasFooter: boolean;
|
|
216
216
|
footerAlign: "right" | "left" | "center";
|
|
217
217
|
confirmLoading: boolean;
|
|
@@ -30,10 +30,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
30
30
|
onCancel?: (() => any) | undefined;
|
|
31
31
|
onConfirm?: (() => any) | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
title: string;
|
|
34
33
|
width: string | number;
|
|
35
34
|
top: string;
|
|
36
35
|
modelValue: boolean;
|
|
36
|
+
title: string;
|
|
37
37
|
hasFooter: boolean;
|
|
38
38
|
footerAlign: "right" | "left" | "center";
|
|
39
39
|
confirmLoading: boolean;
|
|
@@ -2,7 +2,7 @@ import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time
|
|
|
2
2
|
import { LooseRequired } from '@vue/shared';
|
|
3
3
|
import { FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
4
4
|
import { Arrayable, EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils';
|
|
5
|
-
import { PlusDialogProps,
|
|
5
|
+
import { PlusDialogProps, FieldValues, PlusFormProps, PlusColumn, PlusFormItemProps, RecordType, Mutable, PropsItemType, OmitTypes, CascaderProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'packages/yc-components';
|
|
6
6
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Ref, CSSProperties, Component } from 'vue';
|
|
7
7
|
import { default as DialogForm } from './src/index.vue';
|
|
8
8
|
|
|
@@ -10,30 +10,30 @@ export type { PlusDialogFormProps } from './src/index.vue';
|
|
|
10
10
|
export type PlusDialogFormInstance = InstanceType<typeof DialogForm>;
|
|
11
11
|
export declare const PlusDialogForm: {
|
|
12
12
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
13
|
-
dialog: {
|
|
14
|
-
type: PropType<PlusDialogProps>;
|
|
15
|
-
default: () => {};
|
|
16
|
-
};
|
|
17
|
-
form: {
|
|
18
|
-
type: PropType<PlusFormProps>;
|
|
19
|
-
default: () => {};
|
|
20
|
-
};
|
|
21
13
|
visible: {
|
|
22
14
|
type: PropType<boolean>;
|
|
23
15
|
default: boolean;
|
|
24
16
|
};
|
|
17
|
+
dialog: {
|
|
18
|
+
type: PropType<PlusDialogProps>;
|
|
19
|
+
default: () => {};
|
|
20
|
+
};
|
|
25
21
|
modelValue: {
|
|
26
22
|
type: PropType<FieldValues>;
|
|
27
23
|
default: () => {};
|
|
28
24
|
};
|
|
25
|
+
form: {
|
|
26
|
+
type: PropType<PlusFormProps>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
29
|
hasErrorTip: {
|
|
30
30
|
type: PropType<boolean>;
|
|
31
31
|
default: boolean;
|
|
32
32
|
};
|
|
33
33
|
}>> & {
|
|
34
|
-
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
35
34
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
36
35
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
36
|
+
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
37
37
|
onClose?: (() => any) | undefined;
|
|
38
38
|
onCancel?: (() => any) | undefined;
|
|
39
39
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
@@ -332,39 +332,39 @@ export declare const PlusDialogForm: {
|
|
|
332
332
|
close: () => void;
|
|
333
333
|
confirmError: (errors: unknown) => void;
|
|
334
334
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
335
|
-
dialog: {
|
|
336
|
-
type: PropType<PlusDialogProps>;
|
|
337
|
-
default: () => {};
|
|
338
|
-
};
|
|
339
|
-
form: {
|
|
340
|
-
type: PropType<PlusFormProps>;
|
|
341
|
-
default: () => {};
|
|
342
|
-
};
|
|
343
335
|
visible: {
|
|
344
336
|
type: PropType<boolean>;
|
|
345
337
|
default: boolean;
|
|
346
338
|
};
|
|
339
|
+
dialog: {
|
|
340
|
+
type: PropType<PlusDialogProps>;
|
|
341
|
+
default: () => {};
|
|
342
|
+
};
|
|
347
343
|
modelValue: {
|
|
348
344
|
type: PropType<FieldValues>;
|
|
349
345
|
default: () => {};
|
|
350
346
|
};
|
|
347
|
+
form: {
|
|
348
|
+
type: PropType<PlusFormProps>;
|
|
349
|
+
default: () => {};
|
|
350
|
+
};
|
|
351
351
|
hasErrorTip: {
|
|
352
352
|
type: PropType<boolean>;
|
|
353
353
|
default: boolean;
|
|
354
354
|
};
|
|
355
355
|
}>> & {
|
|
356
|
-
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
357
356
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
358
357
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
358
|
+
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
359
359
|
onClose?: (() => any) | undefined;
|
|
360
360
|
onCancel?: (() => any) | undefined;
|
|
361
361
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
362
362
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
363
363
|
}, {
|
|
364
|
-
dialog: PlusDialogProps;
|
|
365
|
-
form: PlusFormProps;
|
|
366
364
|
visible: boolean;
|
|
365
|
+
dialog: PlusDialogProps;
|
|
367
366
|
modelValue: FieldValues;
|
|
367
|
+
form: PlusFormProps;
|
|
368
368
|
hasErrorTip: boolean;
|
|
369
369
|
}, true, {}, {}, {
|
|
370
370
|
P: {};
|
|
@@ -374,30 +374,30 @@ export declare const PlusDialogForm: {
|
|
|
374
374
|
M: {};
|
|
375
375
|
Defaults: {};
|
|
376
376
|
}, Readonly< ExtractPropTypes<{
|
|
377
|
-
dialog: {
|
|
378
|
-
type: PropType<PlusDialogProps>;
|
|
379
|
-
default: () => {};
|
|
380
|
-
};
|
|
381
|
-
form: {
|
|
382
|
-
type: PropType<PlusFormProps>;
|
|
383
|
-
default: () => {};
|
|
384
|
-
};
|
|
385
377
|
visible: {
|
|
386
378
|
type: PropType<boolean>;
|
|
387
379
|
default: boolean;
|
|
388
380
|
};
|
|
381
|
+
dialog: {
|
|
382
|
+
type: PropType<PlusDialogProps>;
|
|
383
|
+
default: () => {};
|
|
384
|
+
};
|
|
389
385
|
modelValue: {
|
|
390
386
|
type: PropType<FieldValues>;
|
|
391
387
|
default: () => {};
|
|
392
388
|
};
|
|
389
|
+
form: {
|
|
390
|
+
type: PropType<PlusFormProps>;
|
|
391
|
+
default: () => {};
|
|
392
|
+
};
|
|
393
393
|
hasErrorTip: {
|
|
394
394
|
type: PropType<boolean>;
|
|
395
395
|
default: boolean;
|
|
396
396
|
};
|
|
397
397
|
}>> & {
|
|
398
|
-
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
399
398
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
400
399
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
400
|
+
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
401
401
|
onClose?: (() => any) | undefined;
|
|
402
402
|
onCancel?: (() => any) | undefined;
|
|
403
403
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
@@ -688,40 +688,40 @@ export declare const PlusDialogForm: {
|
|
|
688
688
|
readonly scrollToError: boolean;
|
|
689
689
|
}>>;
|
|
690
690
|
}, {}, {}, {}, {
|
|
691
|
-
dialog: PlusDialogProps;
|
|
692
|
-
form: PlusFormProps;
|
|
693
691
|
visible: boolean;
|
|
692
|
+
dialog: PlusDialogProps;
|
|
694
693
|
modelValue: FieldValues;
|
|
694
|
+
form: PlusFormProps;
|
|
695
695
|
hasErrorTip: boolean;
|
|
696
696
|
}>;
|
|
697
697
|
__isFragment?: undefined;
|
|
698
698
|
__isTeleport?: undefined;
|
|
699
699
|
__isSuspense?: undefined;
|
|
700
700
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
701
|
-
dialog: {
|
|
702
|
-
type: PropType<PlusDialogProps>;
|
|
703
|
-
default: () => {};
|
|
704
|
-
};
|
|
705
|
-
form: {
|
|
706
|
-
type: PropType<PlusFormProps>;
|
|
707
|
-
default: () => {};
|
|
708
|
-
};
|
|
709
701
|
visible: {
|
|
710
702
|
type: PropType<boolean>;
|
|
711
703
|
default: boolean;
|
|
712
704
|
};
|
|
705
|
+
dialog: {
|
|
706
|
+
type: PropType<PlusDialogProps>;
|
|
707
|
+
default: () => {};
|
|
708
|
+
};
|
|
713
709
|
modelValue: {
|
|
714
710
|
type: PropType<FieldValues>;
|
|
715
711
|
default: () => {};
|
|
716
712
|
};
|
|
713
|
+
form: {
|
|
714
|
+
type: PropType<PlusFormProps>;
|
|
715
|
+
default: () => {};
|
|
716
|
+
};
|
|
717
717
|
hasErrorTip: {
|
|
718
718
|
type: PropType<boolean>;
|
|
719
719
|
default: boolean;
|
|
720
720
|
};
|
|
721
721
|
}>> & {
|
|
722
|
-
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
723
722
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
724
723
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
724
|
+
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
725
725
|
onClose?: (() => any) | undefined;
|
|
726
726
|
onCancel?: (() => any) | undefined;
|
|
727
727
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
@@ -1020,16 +1020,16 @@ export declare const PlusDialogForm: {
|
|
|
1020
1020
|
close: () => void;
|
|
1021
1021
|
confirmError: (errors: unknown) => void;
|
|
1022
1022
|
}, string, {
|
|
1023
|
-
dialog: PlusDialogProps;
|
|
1024
|
-
form: PlusFormProps;
|
|
1025
1023
|
visible: boolean;
|
|
1024
|
+
dialog: PlusDialogProps;
|
|
1026
1025
|
modelValue: FieldValues;
|
|
1026
|
+
form: PlusFormProps;
|
|
1027
1027
|
hasErrorTip: boolean;
|
|
1028
1028
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1029
1029
|
$slots: Partial<Record<NonNullable<string | number>, (_: {
|
|
1030
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
1030
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "renderLabel" | "renderErrorMessage">> & {
|
|
1031
1031
|
readonly label: string | ComputedRef<string>;
|
|
1032
|
-
readonly modelValue: string | number | boolean |
|
|
1032
|
+
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1033
1033
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1034
1034
|
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1035
1035
|
style?: CSSProperties | undefined;
|
|
@@ -1056,7 +1056,7 @@ export declare const PlusDialogForm: {
|
|
|
1056
1056
|
};
|
|
1057
1057
|
rows: number;
|
|
1058
1058
|
autocomplete: string;
|
|
1059
|
-
type: "" | "number" | "default" | "
|
|
1059
|
+
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "datetimerange" | "daterange" | "monthrange" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1060
1060
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1061
1061
|
step: string | number;
|
|
1062
1062
|
format: string | ProgressFn | undefined;
|
|
@@ -1095,7 +1095,7 @@ export declare const PlusDialogForm: {
|
|
|
1095
1095
|
fieldInstance?: any;
|
|
1096
1096
|
valueIsReady?: Ref<boolean> | undefined;
|
|
1097
1097
|
prop: string;
|
|
1098
|
-
modelValue: string | number | boolean |
|
|
1098
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
1099
1099
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
1100
1100
|
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
1101
1101
|
style?: CSSProperties | undefined;
|
|
@@ -330,23 +330,23 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
330
330
|
dialog: () => {};
|
|
331
331
|
form: () => {};
|
|
332
332
|
}>>> & {
|
|
333
|
-
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
334
333
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
335
334
|
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
335
|
+
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
336
336
|
onClose?: (() => any) | undefined;
|
|
337
337
|
onCancel?: (() => any) | undefined;
|
|
338
338
|
onConfirm?: ((values: FieldValues) => any) | undefined;
|
|
339
339
|
onConfirmError?: ((errors: unknown) => any) | undefined;
|
|
340
340
|
}, {
|
|
341
|
-
dialog: PlusDialogProps;
|
|
342
|
-
form: PlusFormProps;
|
|
343
341
|
visible: boolean;
|
|
342
|
+
dialog: PlusDialogProps;
|
|
344
343
|
modelValue: FieldValues;
|
|
344
|
+
form: PlusFormProps;
|
|
345
345
|
hasErrorTip: boolean;
|
|
346
346
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
347
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "
|
|
347
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "renderLabel" | "renderErrorMessage">> & {
|
|
348
348
|
readonly label: string | ComputedRef<string>;
|
|
349
|
-
readonly modelValue: string | number | boolean |
|
|
349
|
+
readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
350
350
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
351
351
|
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
352
352
|
style?: CSSProperties | undefined;
|
|
@@ -373,7 +373,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
373
373
|
};
|
|
374
374
|
rows: number;
|
|
375
375
|
autocomplete: string;
|
|
376
|
-
type: "" | "number" | "default" | "
|
|
376
|
+
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "datetimerange" | "daterange" | "monthrange" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
377
377
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
378
378
|
step: string | number;
|
|
379
379
|
format: string | ProgressFn | undefined;
|
|
@@ -412,7 +412,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
412
412
|
fieldInstance?: any;
|
|
413
413
|
valueIsReady?: Ref<boolean> | undefined;
|
|
414
414
|
prop: string;
|
|
415
|
-
modelValue: string | number | boolean |
|
|
415
|
+
modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
|
|
416
416
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
417
417
|
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
418
418
|
style?: CSSProperties | undefined;
|