yc-pro-components 0.0.17 → 0.0.19
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 +23 -23
- package/es/components/check-card/src/index.vue.d.ts +2 -2
- package/es/components/check-card-group/index.d.ts +24 -24
- package/es/components/check-card-group/src/index.vue.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +26 -26
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog/src/index.vue2.mjs +6 -3
- package/es/components/dialog-form/index.d.ts +1154 -0
- package/es/components/dialog-form/src/index.vue.d.ts +493 -0
- package/es/components/dialog-form/src/index.vue2.mjs +7 -4
- 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/display-item/src/index.vue2.mjs +18 -5
- package/es/components/drawer-form/index.d.ts +3467 -0
- package/es/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/es/components/drawer-form/src/index.vue2.mjs +7 -4
- package/es/components/form/index.d.ts +1665 -1
- package/es/components/form/src/form-content.vue.d.ts +14 -12
- package/es/components/form/src/index.vue.d.ts +652 -0
- package/es/components/form/src/index.vue2.mjs +7 -4
- package/es/components/form-item/index.d.ts +36 -36
- package/es/components/form-item/src/index.vue.d.ts +8 -8
- package/es/components/header/index.d.ts +7 -7
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +15 -15
- package/es/components/input-tag/src/index.vue.d.ts +7 -7
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +15450 -0
- package/es/components/page/src/index.vue.d.ts +5301 -0
- package/es/components/page/src/index.vue2.mjs +4 -2
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/popover/src/index.vue2.mjs +6 -3
- package/es/components/radio/index.d.ts +10 -10
- package/es/components/radio/src/index.vue.d.ts +2 -2
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +4514 -0
- package/es/components/search/src/index.vue.d.ts +1539 -0
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- 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 +19 -0
- package/es/components/table/src/index.vue.d.ts +3 -0
- package/es/components/table/src/index.vue2.mjs +4 -2
- package/es/components/table/src/table-column.vue.d.ts +12 -12
- package/es/components/table/src/type.d.ts +9 -0
- package/es/components/utils/index.d.ts +2 -2
- 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-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +6 -6
- package/es/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/es/components/yc-plus-page/src/index.vue.d.ts +12864 -0
- package/es/components/yc-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-status-dialog/src/index.vue2.mjs +6 -3
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/constants/form.d.ts +5 -0
- package/es/constants/form.mjs +2 -1
- package/es/constants/index.mjs +1 -1
- package/es/hooks/usePlusFormReset.d.ts +9833 -5
- package/es/index.css +1 -1
- package/es/index.mjs +1 -1
- package/es/types/plus.d.ts +29 -0
- package/index.css +7 -7
- package/index.js +66 -29
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +66 -30
- package/lib/components/check-card/index.d.ts +23 -23
- package/lib/components/check-card/src/index.vue.d.ts +2 -2
- package/lib/components/check-card-group/index.d.ts +24 -24
- package/lib/components/check-card-group/src/index.vue.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +26 -26
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/src/index.vue2.js +6 -3
- package/lib/components/dialog-form/index.d.ts +1154 -0
- package/lib/components/dialog-form/src/index.vue.d.ts +493 -0
- package/lib/components/dialog-form/src/index.vue2.js +7 -4
- 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/display-item/src/index.vue2.js +16 -3
- package/lib/components/drawer-form/index.d.ts +3467 -0
- package/lib/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/lib/components/drawer-form/src/index.vue2.js +7 -4
- package/lib/components/form/index.d.ts +1665 -1
- package/lib/components/form/src/form-content.vue.d.ts +14 -12
- package/lib/components/form/src/index.vue.d.ts +652 -0
- package/lib/components/form/src/index.vue2.js +7 -4
- package/lib/components/form-item/index.d.ts +36 -36
- package/lib/components/form-item/src/index.vue.d.ts +8 -8
- package/lib/components/header/index.d.ts +7 -7
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +15 -15
- package/lib/components/input-tag/src/index.vue.d.ts +7 -7
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +15450 -0
- package/lib/components/page/src/index.vue.d.ts +5301 -0
- package/lib/components/page/src/index.vue2.js +4 -2
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/popover/src/index.vue2.js +6 -3
- package/lib/components/radio/index.d.ts +10 -10
- package/lib/components/radio/src/index.vue.d.ts +2 -2
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +4514 -0
- package/lib/components/search/src/index.vue.d.ts +1539 -0
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- 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 +19 -0
- package/lib/components/table/src/index.vue.d.ts +3 -0
- package/lib/components/table/src/index.vue2.js +3 -1
- package/lib/components/table/src/table-column.vue.d.ts +12 -12
- package/lib/components/table/src/type.d.ts +9 -0
- package/lib/components/utils/index.d.ts +2 -2
- 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-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +6 -6
- package/lib/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/lib/components/yc-plus-page/src/index.vue.d.ts +12864 -0
- package/lib/components/yc-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-status-dialog/src/index.vue2.js +6 -3
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/constants/form.d.ts +5 -0
- package/lib/constants/form.js +2 -0
- package/lib/constants/index.js +1 -0
- package/lib/hooks/usePlusFormReset.d.ts +9833 -5
- package/lib/index.css +1 -1
- package/lib/index.js +1 -0
- package/lib/types/plus.d.ts +29 -0
- 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 +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ValueType } from './src/index.vue';
|
|
2
1
|
import { PlusCheckCardProps, RenderTypes } from 'packages/yc-components';
|
|
2
|
+
import { ValueType } from './src/index.vue';
|
|
3
3
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
4
4
|
export type { PlusCheckCardGroupProps } from './src/index.vue';
|
|
5
5
|
export declare const PlusCheckCardGroup: {
|
|
@@ -8,6 +8,10 @@ export declare const PlusCheckCardGroup: {
|
|
|
8
8
|
type: PropType<"" | "default" | "small" | "large">;
|
|
9
9
|
default: undefined;
|
|
10
10
|
};
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: PropType<ValueType>;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
};
|
|
11
15
|
disabled: {
|
|
12
16
|
type: PropType<boolean>;
|
|
13
17
|
default: boolean;
|
|
@@ -18,17 +22,13 @@ export declare const PlusCheckCardGroup: {
|
|
|
18
22
|
})[]>;
|
|
19
23
|
default: () => never[];
|
|
20
24
|
};
|
|
21
|
-
modelValue: {
|
|
22
|
-
type: PropType<ValueType>;
|
|
23
|
-
default: () => never[];
|
|
24
|
-
};
|
|
25
25
|
multiple: {
|
|
26
26
|
type: PropType<boolean>;
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
29
|
}>> & {
|
|
30
|
-
onChange?: ((checked: ValueType) => any) | undefined;
|
|
31
30
|
"onUpdate:modelValue"?: ((checked: ValueType) => any) | undefined;
|
|
31
|
+
onChange?: ((checked: ValueType) => any) | undefined;
|
|
32
32
|
onExtra?: ((item: PlusCheckCardProps & {
|
|
33
33
|
value: string | number;
|
|
34
34
|
}) => any) | undefined;
|
|
@@ -43,6 +43,10 @@ export declare const PlusCheckCardGroup: {
|
|
|
43
43
|
type: PropType<"" | "default" | "small" | "large">;
|
|
44
44
|
default: undefined;
|
|
45
45
|
};
|
|
46
|
+
modelValue: {
|
|
47
|
+
type: PropType<ValueType>;
|
|
48
|
+
default: () => never[];
|
|
49
|
+
};
|
|
46
50
|
disabled: {
|
|
47
51
|
type: PropType<boolean>;
|
|
48
52
|
default: boolean;
|
|
@@ -53,27 +57,23 @@ export declare const PlusCheckCardGroup: {
|
|
|
53
57
|
})[]>;
|
|
54
58
|
default: () => never[];
|
|
55
59
|
};
|
|
56
|
-
modelValue: {
|
|
57
|
-
type: PropType<ValueType>;
|
|
58
|
-
default: () => never[];
|
|
59
|
-
};
|
|
60
60
|
multiple: {
|
|
61
61
|
type: PropType<boolean>;
|
|
62
62
|
default: boolean;
|
|
63
63
|
};
|
|
64
64
|
}>> & {
|
|
65
|
-
onChange?: ((checked: ValueType) => any) | undefined;
|
|
66
65
|
"onUpdate:modelValue"?: ((checked: ValueType) => any) | undefined;
|
|
66
|
+
onChange?: ((checked: ValueType) => any) | undefined;
|
|
67
67
|
onExtra?: ((item: PlusCheckCardProps & {
|
|
68
68
|
value: string | number;
|
|
69
69
|
}) => any) | undefined;
|
|
70
70
|
}, {
|
|
71
71
|
size: "" | "default" | "small" | "large";
|
|
72
|
+
modelValue: ValueType;
|
|
72
73
|
disabled: boolean;
|
|
73
74
|
options: ( PlusCheckCardProps & {
|
|
74
75
|
value: string | number;
|
|
75
76
|
})[];
|
|
76
|
-
modelValue: ValueType;
|
|
77
77
|
multiple: boolean;
|
|
78
78
|
}, true, {}, {}, {
|
|
79
79
|
P: {};
|
|
@@ -87,6 +87,10 @@ export declare const PlusCheckCardGroup: {
|
|
|
87
87
|
type: PropType<"" | "default" | "small" | "large">;
|
|
88
88
|
default: undefined;
|
|
89
89
|
};
|
|
90
|
+
modelValue: {
|
|
91
|
+
type: PropType<ValueType>;
|
|
92
|
+
default: () => never[];
|
|
93
|
+
};
|
|
90
94
|
disabled: {
|
|
91
95
|
type: PropType<boolean>;
|
|
92
96
|
default: boolean;
|
|
@@ -97,27 +101,23 @@ export declare const PlusCheckCardGroup: {
|
|
|
97
101
|
})[]>;
|
|
98
102
|
default: () => never[];
|
|
99
103
|
};
|
|
100
|
-
modelValue: {
|
|
101
|
-
type: PropType<ValueType>;
|
|
102
|
-
default: () => never[];
|
|
103
|
-
};
|
|
104
104
|
multiple: {
|
|
105
105
|
type: PropType<boolean>;
|
|
106
106
|
default: boolean;
|
|
107
107
|
};
|
|
108
108
|
}>> & {
|
|
109
|
-
onChange?: ((checked: ValueType) => any) | undefined;
|
|
110
109
|
"onUpdate:modelValue"?: ((checked: ValueType) => any) | undefined;
|
|
110
|
+
onChange?: ((checked: ValueType) => any) | undefined;
|
|
111
111
|
onExtra?: ((item: PlusCheckCardProps & {
|
|
112
112
|
value: string | number;
|
|
113
113
|
}) => any) | undefined;
|
|
114
114
|
}, {}, {}, {}, {}, {
|
|
115
115
|
size: "" | "default" | "small" | "large";
|
|
116
|
+
modelValue: ValueType;
|
|
116
117
|
disabled: boolean;
|
|
117
118
|
options: ( PlusCheckCardProps & {
|
|
118
119
|
value: string | number;
|
|
119
120
|
})[];
|
|
120
|
-
modelValue: ValueType;
|
|
121
121
|
multiple: boolean;
|
|
122
122
|
}>;
|
|
123
123
|
__isFragment?: undefined;
|
|
@@ -128,6 +128,10 @@ export declare const PlusCheckCardGroup: {
|
|
|
128
128
|
type: PropType<"" | "default" | "small" | "large">;
|
|
129
129
|
default: undefined;
|
|
130
130
|
};
|
|
131
|
+
modelValue: {
|
|
132
|
+
type: PropType<ValueType>;
|
|
133
|
+
default: () => never[];
|
|
134
|
+
};
|
|
131
135
|
disabled: {
|
|
132
136
|
type: PropType<boolean>;
|
|
133
137
|
default: boolean;
|
|
@@ -138,17 +142,13 @@ export declare const PlusCheckCardGroup: {
|
|
|
138
142
|
})[]>;
|
|
139
143
|
default: () => never[];
|
|
140
144
|
};
|
|
141
|
-
modelValue: {
|
|
142
|
-
type: PropType<ValueType>;
|
|
143
|
-
default: () => never[];
|
|
144
|
-
};
|
|
145
145
|
multiple: {
|
|
146
146
|
type: PropType<boolean>;
|
|
147
147
|
default: boolean;
|
|
148
148
|
};
|
|
149
149
|
}>> & {
|
|
150
|
-
onChange?: ((checked: ValueType) => any) | undefined;
|
|
151
150
|
"onUpdate:modelValue"?: ((checked: ValueType) => any) | undefined;
|
|
151
|
+
onChange?: ((checked: ValueType) => any) | undefined;
|
|
152
152
|
onExtra?: ((item: PlusCheckCardProps & {
|
|
153
153
|
value: string | number;
|
|
154
154
|
}) => any) | undefined;
|
|
@@ -160,11 +160,11 @@ export declare const PlusCheckCardGroup: {
|
|
|
160
160
|
}) => void;
|
|
161
161
|
}, string, {
|
|
162
162
|
size: "" | "default" | "small" | "large";
|
|
163
|
+
modelValue: ValueType;
|
|
163
164
|
disabled: boolean;
|
|
164
165
|
options: ( PlusCheckCardProps & {
|
|
165
166
|
value: string | number;
|
|
166
167
|
})[];
|
|
167
|
-
modelValue: ValueType;
|
|
168
168
|
multiple: boolean;
|
|
169
169
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
170
170
|
$slots: Partial<Record<string, (_: {
|
|
@@ -45,18 +45,18 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
45
45
|
disabled: boolean;
|
|
46
46
|
multiple: boolean;
|
|
47
47
|
}>>> & {
|
|
48
|
-
onChange?: ((checked: ValueType) => any) | undefined;
|
|
49
48
|
"onUpdate:modelValue"?: ((checked: ValueType) => any) | undefined;
|
|
49
|
+
onChange?: ((checked: ValueType) => any) | undefined;
|
|
50
50
|
onExtra?: ((item: PlusCheckCardProps & {
|
|
51
51
|
value: string | number;
|
|
52
52
|
}) => any) | undefined;
|
|
53
53
|
}, {
|
|
54
54
|
size: "" | "default" | "small" | "large";
|
|
55
|
+
modelValue: ValueType;
|
|
55
56
|
disabled: boolean;
|
|
56
57
|
options: (PlusCheckCardProps & {
|
|
57
58
|
value: string | number;
|
|
58
59
|
})[];
|
|
59
|
-
modelValue: ValueType;
|
|
60
60
|
multiple: boolean;
|
|
61
61
|
}, {}>, Partial<Record<string, (_: {
|
|
62
62
|
avatar: string | undefined;
|
|
@@ -12,14 +12,14 @@ export declare const PlusDatePicker: DefineComponent<{
|
|
|
12
12
|
type: PropType<"date" | "year" | "month" | "dates" | "week" | "datetime">;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
-
disabled: {
|
|
16
|
-
type: PropType<boolean>;
|
|
17
|
-
default: boolean;
|
|
18
|
-
};
|
|
19
15
|
modelValue: {
|
|
20
16
|
type: PropType<string[]>;
|
|
21
17
|
default: () => never[];
|
|
22
18
|
};
|
|
19
|
+
disabled: {
|
|
20
|
+
type: PropType<boolean>;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
23
|
valueFormat: {
|
|
24
24
|
type: PropType<string>;
|
|
25
25
|
default: string;
|
|
@@ -678,14 +678,14 @@ export declare const PlusDatePicker: DefineComponent<{
|
|
|
678
678
|
type: PropType<"date" | "year" | "month" | "dates" | "week" | "datetime">;
|
|
679
679
|
default: string;
|
|
680
680
|
};
|
|
681
|
-
disabled: {
|
|
682
|
-
type: PropType<boolean>;
|
|
683
|
-
default: boolean;
|
|
684
|
-
};
|
|
685
681
|
modelValue: {
|
|
686
682
|
type: PropType<string[]>;
|
|
687
683
|
default: () => never[];
|
|
688
684
|
};
|
|
685
|
+
disabled: {
|
|
686
|
+
type: PropType<boolean>;
|
|
687
|
+
default: boolean;
|
|
688
|
+
};
|
|
689
689
|
valueFormat: {
|
|
690
690
|
type: PropType<string>;
|
|
691
691
|
default: string;
|
|
@@ -711,13 +711,13 @@ export declare const PlusDatePicker: DefineComponent<{
|
|
|
711
711
|
default: (endTime: any, startValue: any) => boolean;
|
|
712
712
|
};
|
|
713
713
|
}>> & {
|
|
714
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
714
715
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
715
716
|
onChange?: ((value: string[]) => any) | undefined;
|
|
716
|
-
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
717
717
|
}, {
|
|
718
718
|
type: "date" | "year" | "month" | "dates" | "week" | "datetime";
|
|
719
|
-
disabled: boolean;
|
|
720
719
|
modelValue: string[];
|
|
720
|
+
disabled: boolean;
|
|
721
721
|
valueFormat: string;
|
|
722
722
|
rangeSeparator: string;
|
|
723
723
|
startProps: Partial< DatePickerProps>;
|
|
@@ -677,13 +677,13 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
677
677
|
startDisabledDate: (startTime: any, endValue: any) => boolean;
|
|
678
678
|
endDisabledDate: (endTime: any, startValue: any) => boolean;
|
|
679
679
|
}>>> & {
|
|
680
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
680
681
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
681
682
|
onChange?: ((value: string[]) => any) | undefined;
|
|
682
|
-
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
683
683
|
}, {
|
|
684
684
|
type: "date" | "year" | "month" | "dates" | "week" | "datetime";
|
|
685
|
-
disabled: boolean;
|
|
686
685
|
modelValue: string[];
|
|
686
|
+
disabled: boolean;
|
|
687
687
|
valueFormat: string;
|
|
688
688
|
rangeSeparator: string;
|
|
689
689
|
startProps: Partial<DatePickerProps>;
|
|
@@ -5,6 +5,10 @@ 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
|
+
modelValue: {
|
|
9
|
+
type: PropType<boolean>;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
8
12
|
title: {
|
|
9
13
|
type: PropType<string>;
|
|
10
14
|
default: string;
|
|
@@ -17,16 +21,12 @@ export declare const PlusDialog: {
|
|
|
17
21
|
type: PropType<string>;
|
|
18
22
|
default: string;
|
|
19
23
|
};
|
|
20
|
-
modelValue: {
|
|
21
|
-
type: PropType<boolean>;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
24
|
hasFooter: {
|
|
25
25
|
type: PropType<boolean>;
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
28
|
footerAlign: {
|
|
29
|
-
type: PropType<"
|
|
29
|
+
type: PropType<"center" | "right" | "left">;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
confirmLoading: {
|
|
@@ -50,6 +50,10 @@ export declare const PlusDialog: {
|
|
|
50
50
|
cancel: () => void;
|
|
51
51
|
confirm: () => void;
|
|
52
52
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: PropType<boolean>;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
53
57
|
title: {
|
|
54
58
|
type: PropType<string>;
|
|
55
59
|
default: string;
|
|
@@ -62,16 +66,12 @@ export declare const PlusDialog: {
|
|
|
62
66
|
type: PropType<string>;
|
|
63
67
|
default: string;
|
|
64
68
|
};
|
|
65
|
-
modelValue: {
|
|
66
|
-
type: PropType<boolean>;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
69
|
hasFooter: {
|
|
70
70
|
type: PropType<boolean>;
|
|
71
71
|
default: boolean;
|
|
72
72
|
};
|
|
73
73
|
footerAlign: {
|
|
74
|
-
type: PropType<"
|
|
74
|
+
type: PropType<"center" | "right" | "left">;
|
|
75
75
|
default: string;
|
|
76
76
|
};
|
|
77
77
|
confirmLoading: {
|
|
@@ -91,12 +91,12 @@ export declare const PlusDialog: {
|
|
|
91
91
|
onCancel?: (() => any) | undefined;
|
|
92
92
|
onConfirm?: (() => any) | undefined;
|
|
93
93
|
}, {
|
|
94
|
+
modelValue: boolean;
|
|
94
95
|
title: string;
|
|
95
96
|
width: string | number;
|
|
96
97
|
top: string;
|
|
97
|
-
modelValue: boolean;
|
|
98
98
|
hasFooter: boolean;
|
|
99
|
-
footerAlign: "
|
|
99
|
+
footerAlign: "center" | "right" | "left";
|
|
100
100
|
confirmLoading: boolean;
|
|
101
101
|
cancelText: string;
|
|
102
102
|
confirmText: string;
|
|
@@ -108,6 +108,10 @@ export declare const PlusDialog: {
|
|
|
108
108
|
M: {};
|
|
109
109
|
Defaults: {};
|
|
110
110
|
}, Readonly< ExtractPropTypes<{
|
|
111
|
+
modelValue: {
|
|
112
|
+
type: PropType<boolean>;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
111
115
|
title: {
|
|
112
116
|
type: PropType<string>;
|
|
113
117
|
default: string;
|
|
@@ -120,16 +124,12 @@ export declare const PlusDialog: {
|
|
|
120
124
|
type: PropType<string>;
|
|
121
125
|
default: string;
|
|
122
126
|
};
|
|
123
|
-
modelValue: {
|
|
124
|
-
type: PropType<boolean>;
|
|
125
|
-
default: boolean;
|
|
126
|
-
};
|
|
127
127
|
hasFooter: {
|
|
128
128
|
type: PropType<boolean>;
|
|
129
129
|
default: boolean;
|
|
130
130
|
};
|
|
131
131
|
footerAlign: {
|
|
132
|
-
type: PropType<"
|
|
132
|
+
type: PropType<"center" | "right" | "left">;
|
|
133
133
|
default: string;
|
|
134
134
|
};
|
|
135
135
|
confirmLoading: {
|
|
@@ -149,12 +149,12 @@ export declare const PlusDialog: {
|
|
|
149
149
|
onCancel?: (() => any) | undefined;
|
|
150
150
|
onConfirm?: (() => any) | undefined;
|
|
151
151
|
}, {}, {}, {}, {}, {
|
|
152
|
+
modelValue: boolean;
|
|
152
153
|
title: string;
|
|
153
154
|
width: string | number;
|
|
154
155
|
top: string;
|
|
155
|
-
modelValue: boolean;
|
|
156
156
|
hasFooter: boolean;
|
|
157
|
-
footerAlign: "
|
|
157
|
+
footerAlign: "center" | "right" | "left";
|
|
158
158
|
confirmLoading: boolean;
|
|
159
159
|
cancelText: string;
|
|
160
160
|
confirmText: string;
|
|
@@ -163,6 +163,10 @@ export declare const PlusDialog: {
|
|
|
163
163
|
__isTeleport?: undefined;
|
|
164
164
|
__isSuspense?: undefined;
|
|
165
165
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
166
|
+
modelValue: {
|
|
167
|
+
type: PropType<boolean>;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
166
170
|
title: {
|
|
167
171
|
type: PropType<string>;
|
|
168
172
|
default: string;
|
|
@@ -175,16 +179,12 @@ export declare const PlusDialog: {
|
|
|
175
179
|
type: PropType<string>;
|
|
176
180
|
default: string;
|
|
177
181
|
};
|
|
178
|
-
modelValue: {
|
|
179
|
-
type: PropType<boolean>;
|
|
180
|
-
default: boolean;
|
|
181
|
-
};
|
|
182
182
|
hasFooter: {
|
|
183
183
|
type: PropType<boolean>;
|
|
184
184
|
default: boolean;
|
|
185
185
|
};
|
|
186
186
|
footerAlign: {
|
|
187
|
-
type: PropType<"
|
|
187
|
+
type: PropType<"center" | "right" | "left">;
|
|
188
188
|
default: string;
|
|
189
189
|
};
|
|
190
190
|
confirmLoading: {
|
|
@@ -208,12 +208,12 @@ export declare const PlusDialog: {
|
|
|
208
208
|
cancel: () => void;
|
|
209
209
|
confirm: () => void;
|
|
210
210
|
}, string, {
|
|
211
|
+
modelValue: boolean;
|
|
211
212
|
title: string;
|
|
212
213
|
width: string | number;
|
|
213
214
|
top: string;
|
|
214
|
-
modelValue: boolean;
|
|
215
215
|
hasFooter: boolean;
|
|
216
|
-
footerAlign: "
|
|
216
|
+
footerAlign: "center" | "right" | "left";
|
|
217
217
|
confirmLoading: boolean;
|
|
218
218
|
cancelText: string;
|
|
219
219
|
confirmText: string;
|
|
@@ -30,12 +30,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
30
30
|
onCancel?: (() => any) | undefined;
|
|
31
31
|
onConfirm?: (() => any) | undefined;
|
|
32
32
|
}, {
|
|
33
|
+
modelValue: boolean;
|
|
33
34
|
title: string;
|
|
34
35
|
width: string | number;
|
|
35
36
|
top: string;
|
|
36
|
-
modelValue: boolean;
|
|
37
37
|
hasFooter: boolean;
|
|
38
|
-
footerAlign: "
|
|
38
|
+
footerAlign: "center" | "right" | "left";
|
|
39
39
|
confirmLoading: boolean;
|
|
40
40
|
cancelText: string;
|
|
41
41
|
confirmText: string;
|
|
@@ -47,12 +47,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
isSubmitting.value = false;
|
|
48
48
|
}, 300);
|
|
49
49
|
};
|
|
50
|
-
const
|
|
50
|
+
const debouncedConfirm = lodashEs.debounce(doConfirm, 300, {
|
|
51
51
|
leading: true,
|
|
52
52
|
// 立即执行第一次
|
|
53
53
|
trailing: false
|
|
54
54
|
// 不执行最后一次
|
|
55
55
|
});
|
|
56
|
+
const handleConfirm = () => {
|
|
57
|
+
debouncedConfirm();
|
|
58
|
+
};
|
|
56
59
|
const handleCancel = () => {
|
|
57
60
|
emit("update:modelValue", false);
|
|
58
61
|
emit("cancel");
|
|
@@ -110,7 +113,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
113
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
111
114
|
type: "primary",
|
|
112
115
|
loading: computedLoading.value,
|
|
113
|
-
onClick:
|
|
116
|
+
onClick: handleConfirm
|
|
114
117
|
}, {
|
|
115
118
|
default: vue.withCtx(() => [
|
|
116
119
|
vue.createTextVNode(
|
|
@@ -121,7 +124,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
121
124
|
]),
|
|
122
125
|
_: 1
|
|
123
126
|
/* STABLE */
|
|
124
|
-
}, 8, ["loading"
|
|
127
|
+
}, 8, ["loading"])
|
|
125
128
|
])
|
|
126
129
|
],
|
|
127
130
|
4
|