@squirrel-cloud/ui-vue 0.4.27 → 0.4.29
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/editor/editor.d.ts +13 -4
- package/dist/components/form/form.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input/input.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +2 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +150 -0
- package/dist/props/form/form.d.ts +2 -2
- package/dist/props/index.d.ts +1 -0
- package/dist/props/input/input.d.ts +2 -2
- package/dist/props/popover/popover.d.ts +6 -1
- package/dist/props/select/index.d.ts +1 -0
- package/dist/props/select/select.d.ts +55 -0
- package/dist/squirrel-cloud-ui-vue.js +1698 -1581
- package/dist/squirrel-cloud-ui-vue.umd.cjs +9 -9
- package/dist/style.css +1 -1
- package/dist/typings/ComponentType.d.ts +2 -2
- package/dist/typings/Form.d.ts +27 -10
- package/dist/typings/SelectItem.d.ts +14 -0
- package/dist/typings/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -87,7 +87,7 @@ declare function __VLS_template(): {
|
|
|
87
87
|
$data: {};
|
|
88
88
|
$props: {
|
|
89
89
|
readonly value?: string | undefined;
|
|
90
|
-
readonly status?: import('../../../typings').
|
|
90
|
+
readonly status?: import('../../../typings').ComponentWarnType | undefined;
|
|
91
91
|
readonly round?: boolean | undefined;
|
|
92
92
|
readonly prefixIcon?: import('vue').Component | undefined;
|
|
93
93
|
readonly suffixIcon?: import('vue').Component | undefined;
|
|
@@ -108,6 +108,7 @@ declare function __VLS_template(): {
|
|
|
108
108
|
readonly resize?: import('../../../typings').TextareaResizeType | undefined;
|
|
109
109
|
readonly rows?: number | string | undefined;
|
|
110
110
|
readonly cols?: number | string | undefined;
|
|
111
|
+
readonly onClear?: (() => any) | undefined;
|
|
111
112
|
readonly onInput?: ((e: Event) => any) | undefined;
|
|
112
113
|
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
113
114
|
readonly onChange?: ((e: Event) => any) | undefined;
|
|
@@ -128,11 +129,12 @@ declare function __VLS_template(): {
|
|
|
128
129
|
$root: import('vue').ComponentPublicInstance | null;
|
|
129
130
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
130
131
|
$host: Element | null;
|
|
131
|
-
$emit: ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
132
|
+
$emit: ((event: "clear") => void) & ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
132
133
|
$el: HTMLDivElement;
|
|
133
134
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
134
135
|
value?: string;
|
|
135
136
|
} & import('../../props').InputProps> & Readonly<{
|
|
137
|
+
onClear?: (() => any) | undefined;
|
|
136
138
|
onInput?: ((e: Event) => any) | undefined;
|
|
137
139
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
138
140
|
onChange?: ((e: Event) => any) | undefined;
|
|
@@ -142,6 +144,7 @@ declare function __VLS_template(): {
|
|
|
142
144
|
focus: () => void;
|
|
143
145
|
blur: () => void;
|
|
144
146
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
147
|
+
clear: () => any;
|
|
145
148
|
input: (e: Event) => any;
|
|
146
149
|
blur: (e: FocusEvent) => any;
|
|
147
150
|
change: (e: Event) => any;
|
|
@@ -188,6 +191,7 @@ declare function __VLS_template(): {
|
|
|
188
191
|
}> & Omit<Readonly<{
|
|
189
192
|
value?: string;
|
|
190
193
|
} & import('../../props').InputProps> & Readonly<{
|
|
194
|
+
onClear?: (() => any) | undefined;
|
|
191
195
|
onInput?: ((e: Event) => any) | undefined;
|
|
192
196
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
193
197
|
onChange?: ((e: Event) => any) | undefined;
|
|
@@ -212,6 +216,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
212
216
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
213
217
|
}>, {
|
|
214
218
|
md: boolean;
|
|
219
|
+
size: import('../../../typings').ComponentSize;
|
|
215
220
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
216
221
|
boldRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
217
222
|
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
@@ -290,7 +295,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
290
295
|
$data: {};
|
|
291
296
|
$props: {
|
|
292
297
|
readonly value?: string | undefined;
|
|
293
|
-
readonly status?: import('../../../typings').
|
|
298
|
+
readonly status?: import('../../../typings').ComponentWarnType | undefined;
|
|
294
299
|
readonly round?: boolean | undefined;
|
|
295
300
|
readonly prefixIcon?: import('vue').Component | undefined;
|
|
296
301
|
readonly suffixIcon?: import('vue').Component | undefined;
|
|
@@ -311,6 +316,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
311
316
|
readonly resize?: import('../../../typings').TextareaResizeType | undefined;
|
|
312
317
|
readonly rows?: number | string | undefined;
|
|
313
318
|
readonly cols?: number | string | undefined;
|
|
319
|
+
readonly onClear?: (() => any) | undefined;
|
|
314
320
|
readonly onInput?: ((e: Event) => any) | undefined;
|
|
315
321
|
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
316
322
|
readonly onChange?: ((e: Event) => any) | undefined;
|
|
@@ -331,11 +337,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
331
337
|
$root: import('vue').ComponentPublicInstance | null;
|
|
332
338
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
333
339
|
$host: Element | null;
|
|
334
|
-
$emit: ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
340
|
+
$emit: ((event: "clear") => void) & ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
335
341
|
$el: HTMLDivElement;
|
|
336
342
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
337
343
|
value?: string;
|
|
338
344
|
} & import('../../props').InputProps> & Readonly<{
|
|
345
|
+
onClear?: (() => any) | undefined;
|
|
339
346
|
onInput?: ((e: Event) => any) | undefined;
|
|
340
347
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
341
348
|
onChange?: ((e: Event) => any) | undefined;
|
|
@@ -345,6 +352,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
345
352
|
focus: () => void;
|
|
346
353
|
blur: () => void;
|
|
347
354
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
355
|
+
clear: () => any;
|
|
348
356
|
input: (e: Event) => any;
|
|
349
357
|
blur: (e: FocusEvent) => any;
|
|
350
358
|
change: (e: Event) => any;
|
|
@@ -391,6 +399,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
391
399
|
}> & Omit<Readonly<{
|
|
392
400
|
value?: string;
|
|
393
401
|
} & import('../../props').InputProps> & Readonly<{
|
|
402
|
+
onClear?: (() => any) | undefined;
|
|
394
403
|
onInput?: ((e: Event) => any) | undefined;
|
|
395
404
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
396
405
|
onChange?: ((e: Event) => any) | undefined;
|
|
@@ -30,7 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<FormProps, {
|
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
readonly: boolean;
|
|
32
32
|
layout: import('../../../typings').Direction;
|
|
33
|
-
invalidStatus: import('../../../typings').
|
|
33
|
+
invalidStatus: import('../../../typings').ComponentWarnType;
|
|
34
34
|
hasFeedback: boolean;
|
|
35
35
|
requiredMark: import('../../../typings').RequiredMarkType;
|
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
@@ -27,12 +27,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
27
27
|
focus: typeof focus;
|
|
28
28
|
blur: typeof blur;
|
|
29
29
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
clear: () => any;
|
|
30
31
|
input: (e: Event) => any;
|
|
31
32
|
blur: (e: FocusEvent) => any;
|
|
32
33
|
change: (e: Event) => any;
|
|
33
34
|
focus: (e: FocusEvent) => any;
|
|
34
35
|
"update:value": (value: string) => any;
|
|
35
36
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
37
|
+
onClear?: (() => any) | undefined;
|
|
36
38
|
onInput?: ((e: Event) => any) | undefined;
|
|
37
39
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
38
40
|
onChange?: ((e: Event) => any) | undefined;
|
|
@@ -29,8 +29,10 @@ declare function __VLS_template(): {
|
|
|
29
29
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
30
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
31
|
"update:visible": (value: boolean) => any;
|
|
32
|
+
openChange: (visible: boolean) => any;
|
|
32
33
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
34
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
35
|
+
onOpenChange?: ((visible: boolean) => any) | undefined;
|
|
34
36
|
}>, {
|
|
35
37
|
transition: string;
|
|
36
38
|
placement: import('../..').PopoverPlacement;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { SelectProps } from '../../props';
|
|
2
|
+
import { SelectItem } from '../../typings';
|
|
3
|
+
type __VLS_Props = SelectProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
'value'?: string | number;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
clear: () => any;
|
|
9
|
+
select: (value: any) => any;
|
|
10
|
+
blur: (e: FocusEvent) => any;
|
|
11
|
+
focus: (e: FocusEvent) => any;
|
|
12
|
+
"update:value": (value: string | number) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
onClear?: (() => any) | undefined;
|
|
15
|
+
onSelect?: ((value: any) => any) | undefined;
|
|
16
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
17
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
18
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
round: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
items: string[] | SelectItem[];
|
|
23
|
+
emptyText: string;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
inputRef: ({
|
|
26
|
+
$: import('vue').ComponentInternalInstance;
|
|
27
|
+
$data: {};
|
|
28
|
+
$props: {
|
|
29
|
+
readonly value?: string | undefined;
|
|
30
|
+
readonly status?: import('../../../typings').ComponentWarnType | undefined;
|
|
31
|
+
readonly round?: boolean | undefined;
|
|
32
|
+
readonly prefixIcon?: import('vue').Component | undefined;
|
|
33
|
+
readonly suffixIcon?: import('vue').Component | undefined;
|
|
34
|
+
readonly disabled?: boolean | undefined;
|
|
35
|
+
readonly readonly?: boolean | undefined;
|
|
36
|
+
readonly clearable?: boolean | undefined;
|
|
37
|
+
readonly placeholder?: string | undefined;
|
|
38
|
+
readonly maxlength?: number | string | undefined;
|
|
39
|
+
readonly minlength?: number | string | undefined;
|
|
40
|
+
readonly autocomplete?: string | undefined;
|
|
41
|
+
readonly name?: string | undefined;
|
|
42
|
+
readonly form?: string | undefined;
|
|
43
|
+
readonly loading?: boolean | undefined;
|
|
44
|
+
readonly inputmode?: import('../../../typings').InputMode | undefined;
|
|
45
|
+
readonly autofocus?: boolean | undefined;
|
|
46
|
+
readonly type?: import('../../../typings').InputType | undefined;
|
|
47
|
+
readonly size?: import('../../../typings').ComponentSize | undefined;
|
|
48
|
+
readonly resize?: import('../../../typings').TextareaResizeType | undefined;
|
|
49
|
+
readonly rows?: number | string | undefined;
|
|
50
|
+
readonly cols?: number | string | undefined;
|
|
51
|
+
readonly onClear?: (() => any) | undefined;
|
|
52
|
+
readonly onInput?: ((e: Event) => any) | undefined;
|
|
53
|
+
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
54
|
+
readonly onChange?: ((e: Event) => any) | undefined;
|
|
55
|
+
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
56
|
+
readonly "onUpdate:value"?: ((value: string) => any) | undefined;
|
|
57
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
58
|
+
$attrs: {
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
$refs: {
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
} & {
|
|
64
|
+
inputRef: HTMLTextAreaElement;
|
|
65
|
+
};
|
|
66
|
+
$slots: Readonly<{
|
|
67
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
70
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
71
|
+
$host: Element | null;
|
|
72
|
+
$emit: ((event: "clear") => void) & ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
73
|
+
$el: HTMLDivElement;
|
|
74
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
75
|
+
value?: string;
|
|
76
|
+
} & import('../../props').InputProps> & Readonly<{
|
|
77
|
+
onClear?: (() => any) | undefined;
|
|
78
|
+
onInput?: ((e: Event) => any) | undefined;
|
|
79
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
80
|
+
onChange?: ((e: Event) => any) | undefined;
|
|
81
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
82
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
83
|
+
}>, {
|
|
84
|
+
focus: () => void;
|
|
85
|
+
blur: () => void;
|
|
86
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
87
|
+
clear: () => any;
|
|
88
|
+
input: (e: Event) => any;
|
|
89
|
+
blur: (e: FocusEvent) => any;
|
|
90
|
+
change: (e: Event) => any;
|
|
91
|
+
focus: (e: FocusEvent) => any;
|
|
92
|
+
"update:value": (value: string) => any;
|
|
93
|
+
}, string, {
|
|
94
|
+
type: import('../../../typings').InputType;
|
|
95
|
+
round: boolean;
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
resize: import('../../../typings').TextareaResizeType;
|
|
98
|
+
rows: number | string;
|
|
99
|
+
readonly: boolean;
|
|
100
|
+
autocomplete: string;
|
|
101
|
+
cols: number | string;
|
|
102
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
103
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
104
|
+
created?: (() => void) | (() => void)[];
|
|
105
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
106
|
+
mounted?: (() => void) | (() => void)[];
|
|
107
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
108
|
+
updated?: (() => void) | (() => void)[];
|
|
109
|
+
activated?: (() => void) | (() => void)[];
|
|
110
|
+
deactivated?: (() => void) | (() => void)[];
|
|
111
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
112
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
113
|
+
destroyed?: (() => void) | (() => void)[];
|
|
114
|
+
unmounted?: (() => void) | (() => void)[];
|
|
115
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
116
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
117
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
118
|
+
};
|
|
119
|
+
$forceUpdate: () => void;
|
|
120
|
+
$nextTick: typeof import('vue').nextTick;
|
|
121
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
122
|
+
} & Readonly<{
|
|
123
|
+
type: import('../../../typings').InputType;
|
|
124
|
+
round: boolean;
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
resize: import('../../../typings').TextareaResizeType;
|
|
127
|
+
rows: number | string;
|
|
128
|
+
readonly: boolean;
|
|
129
|
+
autocomplete: string;
|
|
130
|
+
cols: number | string;
|
|
131
|
+
}> & Omit<Readonly<{
|
|
132
|
+
value?: string;
|
|
133
|
+
} & import('../../props').InputProps> & Readonly<{
|
|
134
|
+
onClear?: (() => any) | undefined;
|
|
135
|
+
onInput?: ((e: Event) => any) | undefined;
|
|
136
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
137
|
+
onChange?: ((e: Event) => any) | undefined;
|
|
138
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
139
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
140
|
+
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "rows" | "readonly" | "autocomplete" | "cols")> & import('vue').ShallowUnwrapRef<{
|
|
141
|
+
focus: () => void;
|
|
142
|
+
blur: () => void;
|
|
143
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
144
|
+
$slots: {
|
|
145
|
+
prefix?(_: {}): any;
|
|
146
|
+
suffix?(_: {}): any;
|
|
147
|
+
};
|
|
148
|
+
}) | null;
|
|
149
|
+
}, any>;
|
|
150
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentSize,
|
|
1
|
+
import { ComponentSize, ComponentWarnType, FormConfig, Direction, RequiredMarkType } from '../../typings';
|
|
2
2
|
/**
|
|
3
3
|
* 表单属性
|
|
4
4
|
*/
|
|
@@ -18,7 +18,7 @@ export interface FormProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* 校验不通过时状态
|
|
20
20
|
*/
|
|
21
|
-
invalidStatus?:
|
|
21
|
+
invalidStatus?: ComponentWarnType;
|
|
22
22
|
/**
|
|
23
23
|
* 是否禁用
|
|
24
24
|
*/
|
package/dist/props/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
import { ComponentSize,
|
|
2
|
+
import { ComponentSize, ComponentWarnType, InputMode, InputType, TextareaResizeType } from '../../typings';
|
|
3
3
|
/**
|
|
4
4
|
* 输入框属性
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ export interface InputProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* 输入框状态
|
|
9
9
|
*/
|
|
10
|
-
status?:
|
|
10
|
+
status?: ComponentWarnType;
|
|
11
11
|
/**
|
|
12
12
|
* 是否圆角输入框
|
|
13
13
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PopoverTrigger, PopoverPlacement } from '../../typings';
|
|
2
|
+
import { StyleValue } from 'vue';
|
|
2
3
|
/**
|
|
3
4
|
* 气泡框属性
|
|
4
5
|
*/
|
|
@@ -39,8 +40,12 @@ export interface PopoverProps {
|
|
|
39
40
|
* 过渡动画
|
|
40
41
|
*/
|
|
41
42
|
transition?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 气泡框样式
|
|
45
|
+
*/
|
|
46
|
+
popoverStyle?: string | string[] | StyleValue;
|
|
42
47
|
/**
|
|
43
48
|
* 气泡框类名
|
|
44
49
|
*/
|
|
45
|
-
popoverClass?: string | string[]
|
|
50
|
+
popoverClass?: string | string[] | Record<string, string | boolean>;
|
|
46
51
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ComponentSize, ComponentWarnType, SelectItem } from '../../typings';
|
|
3
|
+
/**
|
|
4
|
+
* 选择器属性
|
|
5
|
+
*/
|
|
6
|
+
export interface SelectProps {
|
|
7
|
+
/**
|
|
8
|
+
* 输入框状态
|
|
9
|
+
*/
|
|
10
|
+
status?: ComponentWarnType;
|
|
11
|
+
/**
|
|
12
|
+
* 是否圆角选择器
|
|
13
|
+
*/
|
|
14
|
+
round?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 前缀图标
|
|
17
|
+
*/
|
|
18
|
+
prefixIcon?: Component;
|
|
19
|
+
/**
|
|
20
|
+
* 是否可清空
|
|
21
|
+
*/
|
|
22
|
+
clearable?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 占位文本
|
|
25
|
+
*/
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 名称
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 关联表单
|
|
33
|
+
*/
|
|
34
|
+
form?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 选择器项列表
|
|
37
|
+
*/
|
|
38
|
+
items?: string[] | SelectItem[];
|
|
39
|
+
/**
|
|
40
|
+
* 是否禁用
|
|
41
|
+
*/
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 选择器大小
|
|
45
|
+
*/
|
|
46
|
+
size?: ComponentSize;
|
|
47
|
+
/**
|
|
48
|
+
* 是否自动获取焦点
|
|
49
|
+
*/
|
|
50
|
+
autofocus?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* 空值占位
|
|
53
|
+
*/
|
|
54
|
+
emptyText?: string;
|
|
55
|
+
}
|