@dao-style/core 0.4.2 → 0.5.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/form/error-text.vue.d.ts +13 -0
- package/dist/components/form/form-item.vue.d.ts +6 -6
- package/dist/components/form/form.vue.d.ts +1 -1
- package/dist/components/form/helper-text.vue.d.ts +13 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/type.d.ts +28 -1
- package/dist/components/input/input.vue.d.ts +6 -5
- package/dist/components/input/props.d.ts +2 -1
- package/dist/components/message/message.vue.d.ts +1 -1
- package/dist/dao-style.es.js +207 -159
- package/dist/dao-style.umd.js +1 -1
- package/dist/font/DaoCloudIconFont/DaoCloudIconFont.woff2 +0 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/volar.d.ts +2 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
content: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
7
|
+
content?: unknown;
|
|
8
|
+
} & {
|
|
9
|
+
content: string;
|
|
10
|
+
} & {}>, {
|
|
11
|
+
content: string;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
label: {
|
|
3
|
-
type:
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
required: {
|
|
7
|
-
type:
|
|
7
|
+
type: import("vue").PropType<boolean>;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
10
|
paddingTop: {
|
|
11
|
-
type: (
|
|
11
|
+
type: import("vue").PropType<string | number>;
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
14
|
paddingBottom: {
|
|
15
|
-
type: (
|
|
15
|
+
type: import("vue").PropType<string | number>;
|
|
16
16
|
default: number;
|
|
17
17
|
};
|
|
18
18
|
labelWidth: {
|
|
19
|
-
type:
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
22
|
iconMessage: {
|
|
23
|
-
type:
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
content: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
7
|
+
content?: unknown;
|
|
8
|
+
} & {
|
|
9
|
+
content: string;
|
|
10
|
+
} & {}>, {
|
|
11
|
+
content: string;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as Form } from './form.vue';
|
|
2
2
|
export { default as FormItem } from './form-item.vue';
|
|
3
3
|
export { default as FormGroup } from './form-group.vue';
|
|
4
|
+
export { default as ErrorText } from './error-text.vue';
|
|
5
|
+
export { default as HelperText } from './helper-text.vue';
|
|
4
6
|
export * from './type';
|
|
@@ -21,11 +21,38 @@ export declare const formProps: {
|
|
|
21
21
|
validator: (value: FormType) => boolean;
|
|
22
22
|
};
|
|
23
23
|
labelWidth: {
|
|
24
|
-
type:
|
|
24
|
+
type: PropType<string>;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
declare type FormProps = ExtractPropTypes<typeof formProps>;
|
|
29
29
|
export declare type FormProvide = Partial<Pick<FormProps, 'labelWidth' | 'type'>>;
|
|
30
30
|
export declare const formKey: InjectionKey<FormProvide>;
|
|
31
|
+
export declare const formItemProps: {
|
|
32
|
+
label: {
|
|
33
|
+
type: PropType<string>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
required: {
|
|
37
|
+
type: PropType<boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
paddingTop: {
|
|
41
|
+
type: PropType<string | number>;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
paddingBottom: {
|
|
45
|
+
type: PropType<string | number>;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
labelWidth: {
|
|
49
|
+
type: PropType<string>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
iconMessage: {
|
|
53
|
+
type: PropType<string>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare type FormItemProps = ExtractPropTypes<typeof formItemProps>;
|
|
31
58
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ModalValueType } from './props';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
3
|
modelValue: {
|
|
3
|
-
type: (
|
|
4
|
+
type: import("vue").PropType<ModalValueType>;
|
|
4
5
|
default: string;
|
|
5
6
|
};
|
|
6
7
|
type: {
|
|
@@ -39,10 +40,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
40
|
default: string;
|
|
40
41
|
};
|
|
41
42
|
}, {
|
|
42
|
-
currentValue: import("vue").Ref<
|
|
43
|
+
currentValue: import("vue").Ref<ModalValueType>;
|
|
43
44
|
isFocus: import("vue").Ref<boolean>;
|
|
44
45
|
input: import("vue").Ref<HTMLInputElement | null>;
|
|
45
|
-
clearable: import("vue").ComputedRef<boolean | "" | 0>;
|
|
46
|
+
clearable: import("vue").ComputedRef<boolean | "" | 0 | undefined>;
|
|
46
47
|
wrapClasses: import("vue").ComputedRef<unknown[]>;
|
|
47
48
|
inputClasses: import("vue").ComputedRef<(string | {
|
|
48
49
|
[x: string]: boolean;
|
|
@@ -80,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
81
|
type: import("./props").InputType;
|
|
81
82
|
disabled: boolean;
|
|
82
83
|
block: boolean;
|
|
83
|
-
modelValue:
|
|
84
|
+
modelValue: ModalValueType;
|
|
84
85
|
status: import("./props").InputStatus;
|
|
85
86
|
borderless: boolean;
|
|
86
87
|
append: string;
|
|
@@ -97,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
98
|
type: import("./props").InputType;
|
|
98
99
|
disabled: boolean;
|
|
99
100
|
block: boolean;
|
|
100
|
-
modelValue:
|
|
101
|
+
modelValue: ModalValueType;
|
|
101
102
|
status: import("./props").InputStatus;
|
|
102
103
|
borderless: boolean;
|
|
103
104
|
append: string;
|
|
@@ -3,9 +3,10 @@ export declare type InputStatus = 'default' | 'error' | 'success' | 'loading';
|
|
|
3
3
|
export declare const INPUT_STATUS: InputStatus[];
|
|
4
4
|
export declare type InputType = 'text' | 'search' | 'number' | 'password';
|
|
5
5
|
export declare const INPUT_TYPES: InputType[];
|
|
6
|
+
export declare type ModalValueType = string | number | undefined;
|
|
6
7
|
declare const _default: {
|
|
7
8
|
modelValue: {
|
|
8
|
-
type:
|
|
9
|
+
type: PropType<ModalValueType>;
|
|
9
10
|
default: string;
|
|
10
11
|
};
|
|
11
12
|
type: {
|
|
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
typeClass: import("vue").ComputedRef<string>;
|
|
24
24
|
closeMessage: () => void;
|
|
25
25
|
isMessageShow: import("vue").ComputedRef<boolean>;
|
|
26
|
-
onlyContent: import("vue").ComputedRef<string | false>;
|
|
26
|
+
onlyContent: import("vue").ComputedRef<string | false | import("vue").Slot | undefined>;
|
|
27
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "show" | "closed" | "beforeClose" | "beforeShow")[], "update:modelValue" | "change" | "show" | "closed" | "beforeClose" | "beforeShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
28
28
|
modelValue?: unknown;
|
|
29
29
|
type?: unknown;
|