@dao-style/core 1.24.0 → 1.25.0
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/dist/components/button/button.d.ts +24 -1
- package/dist/components/button/button.vue.d.ts +11 -0
- package/dist/components/button/props.d.ts +7 -0
- package/dist/dao-style.js +7 -7
- package/dist/dao-style.mjs +1565 -1557
- package/dist/font/DaoCloudIconFont/DaoCloudIconFont.woff2 +0 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -38,6 +38,7 @@ declare const DaoButton: {
|
|
|
38
38
|
loading: boolean;
|
|
39
39
|
iconLeft: string;
|
|
40
40
|
iconRight: string;
|
|
41
|
+
nativeType: import("./props").ButtonNativeType;
|
|
41
42
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
42
43
|
type: {
|
|
43
44
|
type: import("vue").PropType<import("./props").ButtonType>;
|
|
@@ -110,7 +111,12 @@ declare const DaoButton: {
|
|
|
110
111
|
type: BooleanConstructor;
|
|
111
112
|
default: boolean;
|
|
112
113
|
};
|
|
113
|
-
|
|
114
|
+
nativeType: {
|
|
115
|
+
type: import("vue").PropType<import("./props").ButtonNativeType>;
|
|
116
|
+
default: string;
|
|
117
|
+
validator: (value: import("./props").ButtonNativeType) => boolean;
|
|
118
|
+
};
|
|
119
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "useFont" | "size" | "block" | "active" | "tooltipContent" | "tooltipDisabled" | "tooltipOption" | "loading" | "iconLeft" | "iconRight" | "nativeType">;
|
|
114
120
|
$attrs: {
|
|
115
121
|
[x: string]: unknown;
|
|
116
122
|
};
|
|
@@ -196,6 +202,11 @@ declare const DaoButton: {
|
|
|
196
202
|
type: BooleanConstructor;
|
|
197
203
|
default: boolean;
|
|
198
204
|
};
|
|
205
|
+
nativeType: {
|
|
206
|
+
type: import("vue").PropType<import("./props").ButtonNativeType>;
|
|
207
|
+
default: string;
|
|
208
|
+
validator: (value: import("./props").ButtonNativeType) => boolean;
|
|
209
|
+
};
|
|
199
210
|
}>>, {
|
|
200
211
|
classList: import("vue").ComputedRef<string[]>;
|
|
201
212
|
realDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -262,6 +273,7 @@ declare const DaoButton: {
|
|
|
262
273
|
loading: boolean;
|
|
263
274
|
iconLeft: string;
|
|
264
275
|
iconRight: string;
|
|
276
|
+
nativeType: import("./props").ButtonNativeType;
|
|
265
277
|
}, {}, string> & {
|
|
266
278
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
267
279
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -354,6 +366,11 @@ declare const DaoButton: {
|
|
|
354
366
|
type: BooleanConstructor;
|
|
355
367
|
default: boolean;
|
|
356
368
|
};
|
|
369
|
+
nativeType: {
|
|
370
|
+
type: import("vue").PropType<import("./props").ButtonNativeType>;
|
|
371
|
+
default: string;
|
|
372
|
+
validator: (value: import("./props").ButtonNativeType) => boolean;
|
|
373
|
+
};
|
|
357
374
|
}>> & import("vue").ShallowUnwrapRef<{
|
|
358
375
|
classList: import("vue").ComputedRef<string[]>;
|
|
359
376
|
realDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -462,6 +479,11 @@ declare const DaoButton: {
|
|
|
462
479
|
type: BooleanConstructor;
|
|
463
480
|
default: boolean;
|
|
464
481
|
};
|
|
482
|
+
nativeType: {
|
|
483
|
+
type: import("vue").PropType<import("./props").ButtonNativeType>;
|
|
484
|
+
default: string;
|
|
485
|
+
validator: (value: import("./props").ButtonNativeType) => boolean;
|
|
486
|
+
};
|
|
465
487
|
}>>, {
|
|
466
488
|
classList: import("vue").ComputedRef<string[]>;
|
|
467
489
|
realDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -528,6 +550,7 @@ declare const DaoButton: {
|
|
|
528
550
|
loading: boolean;
|
|
529
551
|
iconLeft: string;
|
|
530
552
|
iconRight: string;
|
|
553
|
+
nativeType: import("./props").ButtonNativeType;
|
|
531
554
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
532
555
|
$props: Partial<ButtonProps>;
|
|
533
556
|
$slots: {
|
|
@@ -70,6 +70,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
70
|
type: BooleanConstructor;
|
|
71
71
|
default: boolean;
|
|
72
72
|
};
|
|
73
|
+
nativeType: {
|
|
74
|
+
type: import("vue").PropType<import("./props").ButtonNativeType>;
|
|
75
|
+
default: string;
|
|
76
|
+
validator: (value: import("./props").ButtonNativeType) => boolean;
|
|
77
|
+
};
|
|
73
78
|
}, {
|
|
74
79
|
classList: import("vue").ComputedRef<string[]>;
|
|
75
80
|
realDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -174,6 +179,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
179
|
type: BooleanConstructor;
|
|
175
180
|
default: boolean;
|
|
176
181
|
};
|
|
182
|
+
nativeType: {
|
|
183
|
+
type: import("vue").PropType<import("./props").ButtonNativeType>;
|
|
184
|
+
default: string;
|
|
185
|
+
validator: (value: import("./props").ButtonNativeType) => boolean;
|
|
186
|
+
};
|
|
177
187
|
}>>, {
|
|
178
188
|
type: import("./props").ButtonType;
|
|
179
189
|
disabled: boolean;
|
|
@@ -208,5 +218,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
208
218
|
loading: boolean;
|
|
209
219
|
iconLeft: string;
|
|
210
220
|
iconRight: string;
|
|
221
|
+
nativeType: import("./props").ButtonNativeType;
|
|
211
222
|
}>;
|
|
212
223
|
export default _default;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger';
|
|
3
3
|
export declare const BUTTON_TYPES: ButtonType[];
|
|
4
|
+
export type ButtonNativeType = 'submit' | 'reset' | 'button';
|
|
5
|
+
export declare const BUTTON_NATIVE_TYPES: ButtonNativeType[];
|
|
4
6
|
export declare const buttonProps: {
|
|
5
7
|
type: {
|
|
6
8
|
type: PropType<ButtonType>;
|
|
@@ -73,5 +75,10 @@ export declare const buttonProps: {
|
|
|
73
75
|
type: BooleanConstructor;
|
|
74
76
|
default: boolean;
|
|
75
77
|
};
|
|
78
|
+
nativeType: {
|
|
79
|
+
type: PropType<ButtonNativeType>;
|
|
80
|
+
default: string;
|
|
81
|
+
validator: (value: ButtonNativeType) => boolean;
|
|
82
|
+
};
|
|
76
83
|
};
|
|
77
84
|
export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|