@vrojs/element-plus 0.0.7 → 0.0.9
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/index.d.ts +5 -0
- package/dist/index.js +125 -83
- package/dist/locale/index.js +6 -7
- package/dist/locale/lang/en.d.ts +8 -0
- package/dist/locale/lang/en.js +8 -0
- package/dist/locale/lang/zh-cn.d.ts +8 -0
- package/dist/locale/lang/zh-cn.js +8 -0
- package/dist/locale/useLocale.d.ts +1 -48
- package/dist/locale/useLocale.js +16 -17
- package/dist/style/deps.js +7 -0
- package/dist/style/index.css +1 -1
- package/dist/style/index.js +7 -0
- package/dist/utils/elTableColumnProps.d.ts +149 -0
- package/dist/utils/elTableColumnProps.js +152 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -2
- package/dist/vro-el-checkbox-group/index.d.ts +1 -1
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +1 -1
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +10 -10
- package/dist/vro-el-config-provider/config.d.ts +14 -0
- package/dist/vro-el-config-provider/config.js +36 -0
- package/dist/vro-el-config-provider/index.d.ts +16 -0
- package/dist/vro-el-config-provider/index.js +8 -2
- package/dist/vro-el-config-provider/types.d.ts +7 -0
- package/dist/vro-el-config-provider/types.js +7 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +9 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +11 -11
- package/dist/vro-el-file-upload/index.d.ts +6 -6
- package/dist/vro-el-file-upload/style/index.css +1 -1
- package/dist/vro-el-file-upload/types.d.ts +9 -2
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +7 -6
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +55 -51
- package/dist/vro-el-icon/index.d.ts +28 -40
- package/dist/vro-el-icon/style/css.js +1 -0
- package/dist/vro-el-icon/style/deps.js +1 -1
- package/dist/vro-el-icon/style/index.js +1 -1
- package/dist/vro-el-icon/types.d.ts +16 -13
- package/dist/vro-el-icon/types.js +8 -1
- package/dist/vro-el-icon/vro-el-icon.vue.d.ts +18 -27
- package/dist/vro-el-icon/vro-el-icon.vue.js +27 -23
- package/dist/vro-el-image/index.d.ts +10 -4
- package/dist/vro-el-image/style/css.js +4 -0
- package/dist/vro-el-image/style/index.css +1 -0
- package/dist/vro-el-image/style/index.js +4 -0
- package/dist/vro-el-image/types.d.ts +35 -0
- package/dist/vro-el-image/types.js +24 -1
- package/dist/vro-el-image/utils.d.ts +1 -1
- package/dist/vro-el-image/vro-el-image.vue.d.ts +7 -2
- package/dist/vro-el-image/vro-el-image.vue.js +55 -24
- package/dist/vro-el-image-upload/index.d.ts +1 -1
- package/dist/vro-el-image-upload/style/css.js +4 -0
- package/dist/vro-el-image-upload/style/index.css +1 -1
- package/dist/vro-el-image-upload/style/index.js +4 -0
- package/dist/vro-el-image-upload/types.d.ts +24 -7
- package/dist/vro-el-image-upload/types.js +21 -7
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +1 -1
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +82 -68
- package/dist/vro-el-radio-group/index.d.ts +1 -1
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +1 -1
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +12 -12
- package/dist/vro-el-schema-filter/index.d.ts +27 -31
- package/dist/vro-el-schema-filter/style/css.js +5 -0
- package/dist/vro-el-schema-filter/style/index.css +1 -1
- package/dist/vro-el-schema-filter/style/index.js +5 -0
- package/dist/vro-el-schema-filter/types.d.ts +17 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +38 -43
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +63 -44
- package/dist/vro-el-schema-form/index.d.ts +16 -18
- package/dist/vro-el-schema-form/style/css.js +5 -0
- package/dist/vro-el-schema-form/style/index.css +1 -1
- package/dist/vro-el-schema-form/style/index.js +5 -0
- package/dist/vro-el-schema-form/types.d.ts +66 -7
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +39 -40
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +15 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +11 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +79 -79
- package/dist/vro-el-schema-form-dialog/function-call.js +10 -7
- package/dist/vro-el-schema-form-dialog/index.d.ts +111 -142
- package/dist/vro-el-schema-form-dialog/style/css.js +5 -0
- package/dist/vro-el-schema-form-dialog/style/index.css +1 -1
- package/dist/vro-el-schema-form-dialog/style/index.js +5 -0
- package/dist/vro-el-schema-form-dialog/types.d.ts +25 -16
- package/dist/vro-el-schema-form-dialog/types.js +6 -11
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +92 -113
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +83 -87
- package/dist/vro-el-schema-form-drawer/function-call.d.ts +4 -0
- package/dist/vro-el-schema-form-drawer/function-call.js +20 -0
- package/dist/vro-el-schema-form-drawer/index.d.ts +2207 -0
- package/dist/vro-el-schema-form-drawer/index.js +16 -0
- package/dist/vro-el-schema-form-drawer/injection.d.ts +9 -0
- package/dist/vro-el-schema-form-drawer/injection.js +9 -0
- package/dist/vro-el-schema-form-drawer/style/css.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/css.js +24 -0
- package/dist/vro-el-schema-form-drawer/style/deps.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/deps.js +24 -0
- package/dist/vro-el-schema-form-drawer/style/index.css +1 -0
- package/dist/vro-el-schema-form-drawer/style/index.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/index.js +48 -0
- package/dist/vro-el-schema-form-drawer/types.d.ts +110 -0
- package/dist/vro-el-schema-form-drawer/types.js +75 -0
- package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.d.ts +14 -0
- package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js +18 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +1832 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.js +134 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue2.js +4 -0
- package/dist/vro-el-select/index.d.ts +11 -11
- package/dist/vro-el-select/vro-el-select.vue.d.ts +11 -11
- package/dist/vro-el-select/vro-el-select.vue.js +11 -11
- package/dist/vro-el-skeleton/index.d.ts +9 -73
- package/dist/vro-el-skeleton/style/index.css +1 -1
- package/dist/vro-el-skeleton/types.d.ts +32 -24
- package/dist/vro-el-skeleton/types.js +3 -23
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +7 -48
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +48 -46
- package/dist/vro-el-table/createUseVroElTable.d.ts +7 -0
- package/dist/vro-el-table/createUseVroElTable.js +7 -0
- package/dist/vro-el-table/index.js +13 -0
- package/dist/vro-el-table/style/css.d.ts +0 -0
- package/dist/vro-el-table/style/css.js +29 -0
- package/dist/vro-el-table/style/deps.d.ts +0 -0
- package/dist/vro-el-table/style/deps.js +28 -0
- package/dist/vro-el-table/style/index.css +1 -0
- package/dist/vro-el-table/style/index.d.ts +0 -0
- package/dist/vro-el-table/style/index.js +57 -0
- package/dist/vro-el-table/types.d.ts +97 -0
- package/dist/vro-el-table/types.js +66 -0
- package/dist/vro-el-table/useVroElTable.d.ts +44 -0
- package/dist/vro-el-table/useVroElTable.js +49 -0
- package/dist/vro-el-table/vro-el-table.vue.js +94 -0
- package/dist/vro-el-table/vro-el-table.vue2.js +4 -0
- package/dist/vro-el-table-actions-column/index.d.ts +269 -0
- package/dist/vro-el-table-actions-column/index.js +9 -0
- package/dist/vro-el-table-actions-column/style/css.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/css.js +4 -0
- package/dist/vro-el-table-actions-column/style/deps.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/deps.js +5 -0
- package/dist/vro-el-table-actions-column/style/index.css +1 -0
- package/dist/vro-el-table-actions-column/style/index.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/index.js +9 -0
- package/dist/vro-el-table-actions-column/types.d.ts +139 -0
- package/dist/vro-el-table-actions-column/types.js +37 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.d.ts +167 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.js +101 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue2.js +4 -0
- package/dist/vro-el-table-column/index.d.ts +257 -0
- package/dist/vro-el-table-column/index.js +9 -0
- package/dist/vro-el-table-column/style/css.d.ts +0 -0
- package/dist/vro-el-table-column/style/css.js +6 -0
- package/dist/vro-el-table-column/style/deps.d.ts +0 -0
- package/dist/vro-el-table-column/style/deps.js +1 -0
- package/dist/vro-el-table-column/style/index.css +1 -0
- package/dist/vro-el-table-column/style/index.d.ts +0 -0
- package/dist/vro-el-table-column/style/index.js +7 -0
- package/dist/vro-el-table-column/types.d.ts +141 -0
- package/dist/vro-el-table-column/types.js +43 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue.d.ts +161 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue.js +66 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue2.js +4 -0
- package/dist/vro-el-table-column-group/index.d.ts +23 -0
- package/dist/vro-el-table-column-group/index.js +13 -0
- package/dist/vro-el-table-column-group/style/css.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/css.js +9 -0
- package/dist/vro-el-table-column-group/style/deps.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/deps.js +5 -0
- package/dist/vro-el-table-column-group/style/index.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/index.js +14 -0
- package/dist/vro-el-table-column-group/types.d.ts +87 -0
- package/dist/vro-el-table-column-group/types.js +12 -0
- package/dist/vro-el-table-column-group/useVroElTableColumnGroup.d.ts +2 -0
- package/dist/vro-el-table-column-group/useVroElTableColumnGroup.js +10 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.d.ts +14 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.js +29 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue2.js +4 -0
- package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.d.ts +2 -0
- package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.js +9 -0
- package/dist/vro-el-tags/index.d.ts +234 -187
- package/dist/vro-el-tags/style/css.js +1 -0
- package/dist/vro-el-tags/style/index.css +1 -0
- package/dist/vro-el-tags/style/index.js +1 -0
- package/dist/vro-el-tags/types.d.ts +37 -1
- package/dist/vro-el-tags/types.js +17 -1
- package/dist/vro-el-tags/vro-el-tags.vue.d.ts +219 -8
- package/dist/vro-el-tags/vro-el-tags.vue.js +55 -45
- package/dist/vro-el-tree/index.d.ts +3235 -32
- package/dist/vro-el-tree/style/index.css +1 -1
- package/dist/vro-el-tree/types.d.ts +124 -5
- package/dist/vro-el-tree/types.js +12 -6
- package/dist/vro-el-tree/vro-el-tree.vue.d.ts +6020 -20
- package/dist/vro-el-tree/vro-el-tree.vue.js +54 -36
- package/package.json +6 -6
|
@@ -1,95 +1,174 @@
|
|
|
1
1
|
export * from './types';
|
|
2
|
-
export declare const VroElTags: import('@vrojs/base').WithInstall<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
disabled: {
|
|
8
|
-
type: BooleanConstructor;
|
|
9
|
-
default: boolean;
|
|
10
|
-
};
|
|
11
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
"update:modelValue": (...args: any[]) => void;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
-
modelValue: {
|
|
15
|
-
type: import('vue').PropType<string[]>;
|
|
16
|
-
default: () => never[];
|
|
17
|
-
};
|
|
18
|
-
disabled: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
}>> & Readonly<{
|
|
23
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
}>, {
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
modelValue: string[];
|
|
27
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
28
|
-
inputRef: ({
|
|
29
|
-
$: import('vue').ComponentInternalInstance;
|
|
30
|
-
$data: {};
|
|
31
|
-
$props: {
|
|
32
|
-
readonly id?: string | undefined;
|
|
33
|
-
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
34
|
-
readonly disabled?: boolean | undefined;
|
|
35
|
-
readonly modelValue?: string | number | null | undefined | undefined;
|
|
36
|
-
readonly modelModifiers?: import('element-plus').InputModelModifiers | undefined;
|
|
37
|
-
readonly maxlength?: string | number | undefined;
|
|
38
|
-
readonly minlength?: string | number | undefined;
|
|
39
|
-
readonly type?: import('element-plus').InputType | undefined;
|
|
40
|
-
readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
41
|
-
readonly autosize?: import('element-plus').InputAutoSize | undefined;
|
|
42
|
-
readonly autocomplete?: string | undefined;
|
|
43
|
-
readonly formatter?: ((value: string) => string) | undefined;
|
|
44
|
-
readonly parser?: ((value: string) => string) | undefined;
|
|
45
|
-
readonly placeholder?: string | undefined;
|
|
46
|
-
readonly form?: string | undefined;
|
|
47
|
-
readonly readonly?: boolean | undefined;
|
|
48
|
-
readonly clearable?: boolean | undefined;
|
|
49
|
-
readonly clearIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
50
|
-
readonly showPassword?: boolean | undefined;
|
|
51
|
-
readonly showWordLimit?: boolean | undefined;
|
|
52
|
-
readonly wordLimitPosition?: "inside" | "outside" | undefined;
|
|
53
|
-
readonly suffixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
54
|
-
readonly prefixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
55
|
-
readonly containerRole?: string | undefined;
|
|
56
|
-
readonly tabindex?: string | number | undefined;
|
|
57
|
-
readonly validateEvent?: boolean | undefined;
|
|
58
|
-
readonly inputStyle?: import('vue').StyleValue;
|
|
59
|
-
readonly autofocus?: boolean | undefined;
|
|
60
|
-
readonly rows?: number | undefined;
|
|
61
|
-
readonly ariaLabel?: string | undefined;
|
|
62
|
-
readonly inputmode?: "search" | "text" | "email" | "tel" | "url" | "decimal" | "none" | "numeric" | undefined;
|
|
63
|
-
readonly name?: string | undefined;
|
|
64
|
-
readonly countGraphemes?: ((value: string) => number) | undefined;
|
|
65
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
66
|
-
readonly onInput?: ((value: string) => any) | undefined | undefined;
|
|
67
|
-
readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
|
|
68
|
-
readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
69
|
-
readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
70
|
-
readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
|
|
71
|
-
readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
72
|
-
readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
73
|
-
readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
74
|
-
readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
75
|
-
readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
76
|
-
readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
77
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
78
|
-
$attrs: {
|
|
79
|
-
[x: string]: unknown;
|
|
2
|
+
export declare const VroElTags: import('@vrojs/base').WithInstall<{
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: import('vue').PropType<import('./types').VroElTagsModelValue>;
|
|
6
|
+
default: () => never[];
|
|
80
7
|
};
|
|
81
|
-
|
|
82
|
-
|
|
8
|
+
disabled: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
83
11
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
12
|
+
max: NumberConstructor;
|
|
13
|
+
tagProps: import('vue').PropType<Partial<import('element-plus').TagProps>>;
|
|
14
|
+
inputProps: import('vue').PropType<Partial<import('element-plus').InputProps>>;
|
|
15
|
+
buttonProps: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
16
|
+
}>> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: import('./types').VroElTagsModelValue) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: import('./types').VroElTagsModelValue) => any;
|
|
20
|
+
}, import('vue').PublicProps, {
|
|
21
|
+
modelValue: import('./types').VroElTagsModelValue;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
24
|
+
inputRef: ({
|
|
25
|
+
$: import('vue').ComponentInternalInstance;
|
|
26
|
+
$data: {};
|
|
27
|
+
$props: {
|
|
28
|
+
readonly id?: string | undefined;
|
|
29
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
30
|
+
readonly disabled?: boolean | undefined;
|
|
31
|
+
readonly modelValue?: string | number | null | undefined | undefined;
|
|
32
|
+
readonly modelModifiers?: import('element-plus').InputModelModifiers | undefined;
|
|
33
|
+
readonly maxlength?: string | number | undefined;
|
|
34
|
+
readonly minlength?: string | number | undefined;
|
|
35
|
+
readonly type?: import('element-plus').InputType | undefined;
|
|
36
|
+
readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
37
|
+
readonly autosize?: import('element-plus').InputAutoSize | undefined;
|
|
38
|
+
readonly autocomplete?: string | undefined;
|
|
39
|
+
readonly formatter?: ((value: string) => string) | undefined;
|
|
40
|
+
readonly parser?: ((value: string) => string) | undefined;
|
|
41
|
+
readonly placeholder?: string | undefined;
|
|
42
|
+
readonly form?: string | undefined;
|
|
43
|
+
readonly readonly?: boolean | undefined;
|
|
44
|
+
readonly clearable?: boolean | undefined;
|
|
45
|
+
readonly clearIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
46
|
+
readonly showPassword?: boolean | undefined;
|
|
47
|
+
readonly showWordLimit?: boolean | undefined;
|
|
48
|
+
readonly wordLimitPosition?: "inside" | "outside" | undefined;
|
|
49
|
+
readonly suffixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
50
|
+
readonly prefixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
51
|
+
readonly containerRole?: string | undefined;
|
|
52
|
+
readonly tabindex?: string | number | undefined;
|
|
53
|
+
readonly validateEvent?: boolean | undefined;
|
|
54
|
+
readonly inputStyle?: import('vue').StyleValue;
|
|
55
|
+
readonly autofocus?: boolean | undefined;
|
|
56
|
+
readonly rows?: number | undefined;
|
|
57
|
+
readonly ariaLabel?: string | undefined;
|
|
58
|
+
readonly inputmode?: "search" | "text" | "none" | "email" | "tel" | "url" | "decimal" | "numeric" | undefined;
|
|
59
|
+
readonly name?: string | undefined;
|
|
60
|
+
readonly countGraphemes?: ((value: string) => number) | undefined;
|
|
61
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
62
|
+
readonly onInput?: ((value: string) => any) | undefined | undefined;
|
|
63
|
+
readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
|
|
64
|
+
readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
65
|
+
readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
66
|
+
readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
|
|
67
|
+
readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
68
|
+
readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
69
|
+
readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
70
|
+
readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
71
|
+
readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
72
|
+
readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
73
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
74
|
+
$attrs: {
|
|
75
|
+
[x: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
$refs: {
|
|
78
|
+
[x: string]: unknown;
|
|
79
|
+
};
|
|
80
|
+
$slots: Readonly<{
|
|
81
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
84
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
85
|
+
$host: Element | null;
|
|
86
|
+
$emit: ((event: "input", value: string) => void) & ((event: "clear", evt: MouseEvent | undefined) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "update:modelValue", value: string) => void);
|
|
87
|
+
$el: any;
|
|
88
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').InputProps> & Readonly<{
|
|
89
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
90
|
+
onInput?: ((value: string) => any) | undefined;
|
|
91
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
92
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
93
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
94
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
95
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
96
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
97
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
98
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
99
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
100
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
101
|
+
}>, {
|
|
102
|
+
input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
103
|
+
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
104
|
+
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
105
|
+
textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
|
|
106
|
+
autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
|
|
107
|
+
isComposing: import('vue').Ref<boolean, boolean>;
|
|
108
|
+
passwordVisible: import('vue').Ref<boolean, boolean>;
|
|
109
|
+
focus: () => void | undefined;
|
|
110
|
+
blur: () => void | undefined;
|
|
111
|
+
select: () => void;
|
|
112
|
+
clear: (evt?: MouseEvent) => void;
|
|
113
|
+
resizeTextarea: () => void;
|
|
114
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
115
|
+
"update:modelValue": (value: string) => void;
|
|
116
|
+
input: (value: string) => void;
|
|
117
|
+
change: (value: string, evt?: Event | undefined) => void;
|
|
118
|
+
focus: (evt: FocusEvent) => void;
|
|
119
|
+
blur: (evt: FocusEvent) => void;
|
|
120
|
+
clear: (evt: MouseEvent | undefined) => void;
|
|
121
|
+
mouseleave: (evt: MouseEvent) => void;
|
|
122
|
+
mouseenter: (evt: MouseEvent) => void;
|
|
123
|
+
keydown: (evt: Event | KeyboardEvent) => void;
|
|
124
|
+
compositionstart: (evt: CompositionEvent) => void;
|
|
125
|
+
compositionupdate: (evt: CompositionEvent) => void;
|
|
126
|
+
compositionend: (evt: CompositionEvent) => void;
|
|
127
|
+
}, string, {
|
|
128
|
+
disabled: boolean;
|
|
129
|
+
modelValue: string | number | null;
|
|
130
|
+
modelModifiers: import('element-plus').InputModelModifiers;
|
|
131
|
+
type: import('element-plus').InputType;
|
|
132
|
+
autocomplete: string;
|
|
133
|
+
clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
|
|
134
|
+
wordLimitPosition: "inside" | "outside";
|
|
135
|
+
tabindex: string | number;
|
|
136
|
+
validateEvent: boolean;
|
|
137
|
+
inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
138
|
+
rows: number;
|
|
139
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
140
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
141
|
+
created?: (() => void) | (() => void)[];
|
|
142
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
143
|
+
mounted?: (() => void) | (() => void)[];
|
|
144
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
145
|
+
updated?: (() => void) | (() => void)[];
|
|
146
|
+
activated?: (() => void) | (() => void)[];
|
|
147
|
+
deactivated?: (() => void) | (() => void)[];
|
|
148
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
149
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
150
|
+
destroyed?: (() => void) | (() => void)[];
|
|
151
|
+
unmounted?: (() => void) | (() => void)[];
|
|
152
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
153
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
154
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
155
|
+
};
|
|
156
|
+
$forceUpdate: () => void;
|
|
157
|
+
$nextTick: typeof import('vue').nextTick;
|
|
158
|
+
$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;
|
|
159
|
+
} & Readonly<{
|
|
160
|
+
disabled: boolean;
|
|
161
|
+
modelValue: string | number | null;
|
|
162
|
+
modelModifiers: import('element-plus').InputModelModifiers;
|
|
163
|
+
type: import('element-plus').InputType;
|
|
164
|
+
autocomplete: string;
|
|
165
|
+
clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
|
|
166
|
+
wordLimitPosition: "inside" | "outside";
|
|
167
|
+
tabindex: string | number;
|
|
168
|
+
validateEvent: boolean;
|
|
169
|
+
inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
170
|
+
rows: number;
|
|
171
|
+
}> & Omit<Readonly<import('element-plus').InputProps> & Readonly<{
|
|
93
172
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
94
173
|
onInput?: ((value: string) => any) | undefined;
|
|
95
174
|
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
@@ -102,7 +181,7 @@ export declare const VroElTags: import('@vrojs/base').WithInstall<import('vue').
|
|
|
102
181
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
103
182
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
104
183
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
105
|
-
}>, {
|
|
184
|
+
}>, "input" | "select" | "textarea" | "clear" | "type" | "modelValue" | "blur" | "focus" | "disabled" | "ref" | "validateEvent" | "tabindex" | "autocomplete" | "clearIcon" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "passwordVisible" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
|
106
185
|
input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
107
186
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
108
187
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -115,105 +194,73 @@ export declare const VroElTags: import('@vrojs/base').WithInstall<import('vue').
|
|
|
115
194
|
select: () => void;
|
|
116
195
|
clear: (evt?: MouseEvent) => void;
|
|
117
196
|
resizeTextarea: () => void;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
145
|
-
created?: (() => void) | (() => void)[];
|
|
146
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
147
|
-
mounted?: (() => void) | (() => void)[];
|
|
148
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
149
|
-
updated?: (() => void) | (() => void)[];
|
|
150
|
-
activated?: (() => void) | (() => void)[];
|
|
151
|
-
deactivated?: (() => void) | (() => void)[];
|
|
152
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
153
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
154
|
-
destroyed?: (() => void) | (() => void)[];
|
|
155
|
-
unmounted?: (() => void) | (() => void)[];
|
|
156
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
157
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
158
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
197
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
198
|
+
$slots: {
|
|
199
|
+
prepend?: (props: {}) => any;
|
|
200
|
+
} & {
|
|
201
|
+
prefix?: (props: {}) => any;
|
|
202
|
+
} & {
|
|
203
|
+
suffix?: (props: {}) => any;
|
|
204
|
+
} & {
|
|
205
|
+
'password-icon'?: (props: {
|
|
206
|
+
visible: boolean;
|
|
207
|
+
}) => any;
|
|
208
|
+
} & {
|
|
209
|
+
append?: (props: {}) => any;
|
|
210
|
+
};
|
|
211
|
+
}) | null;
|
|
212
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
213
|
+
P: {};
|
|
214
|
+
B: {};
|
|
215
|
+
D: {};
|
|
216
|
+
C: {};
|
|
217
|
+
M: {};
|
|
218
|
+
Defaults: {};
|
|
219
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
220
|
+
modelValue: {
|
|
221
|
+
type: import('vue').PropType<import('./types').VroElTagsModelValue>;
|
|
222
|
+
default: () => never[];
|
|
159
223
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
} & Readonly<{
|
|
164
|
-
disabled: boolean;
|
|
165
|
-
modelValue: string | number | null;
|
|
166
|
-
modelModifiers: import('element-plus').InputModelModifiers;
|
|
167
|
-
type: import('element-plus').InputType;
|
|
168
|
-
autocomplete: string;
|
|
169
|
-
clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
|
|
170
|
-
wordLimitPosition: "inside" | "outside";
|
|
171
|
-
tabindex: string | number;
|
|
172
|
-
validateEvent: boolean;
|
|
173
|
-
inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
174
|
-
rows: number;
|
|
175
|
-
}> & Omit<Readonly<import('element-plus').InputProps> & Readonly<{
|
|
176
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
177
|
-
onInput?: ((value: string) => any) | undefined;
|
|
178
|
-
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
179
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
180
|
-
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
181
|
-
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
182
|
-
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
183
|
-
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
184
|
-
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
185
|
-
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
186
|
-
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
187
|
-
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
188
|
-
}>, "input" | "select" | "textarea" | "clear" | "type" | "blur" | "focus" | "disabled" | "modelValue" | "ref" | "validateEvent" | "tabindex" | "autocomplete" | "clearIcon" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "passwordVisible" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
|
189
|
-
input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
190
|
-
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
191
|
-
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
192
|
-
textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
|
|
193
|
-
autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
|
|
194
|
-
isComposing: import('vue').Ref<boolean, boolean>;
|
|
195
|
-
passwordVisible: import('vue').Ref<boolean, boolean>;
|
|
196
|
-
focus: () => void | undefined;
|
|
197
|
-
blur: () => void | undefined;
|
|
198
|
-
select: () => void;
|
|
199
|
-
clear: (evt?: MouseEvent) => void;
|
|
200
|
-
resizeTextarea: () => void;
|
|
201
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
202
|
-
$slots: {
|
|
203
|
-
prepend?: (props: {}) => any;
|
|
204
|
-
} & {
|
|
205
|
-
prefix?: (props: {}) => any;
|
|
206
|
-
} & {
|
|
207
|
-
suffix?: (props: {}) => any;
|
|
208
|
-
} & {
|
|
209
|
-
'password-icon'?: (props: {
|
|
210
|
-
visible: boolean;
|
|
211
|
-
}) => any;
|
|
212
|
-
} & {
|
|
213
|
-
append?: (props: {}) => any;
|
|
224
|
+
disabled: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: boolean;
|
|
214
227
|
};
|
|
215
|
-
|
|
216
|
-
|
|
228
|
+
max: NumberConstructor;
|
|
229
|
+
tagProps: import('vue').PropType<Partial<import('element-plus').TagProps>>;
|
|
230
|
+
inputProps: import('vue').PropType<Partial<import('element-plus').InputProps>>;
|
|
231
|
+
buttonProps: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
232
|
+
}>> & Readonly<{
|
|
233
|
+
"onUpdate:modelValue"?: ((value: import('./types').VroElTagsModelValue) => any) | undefined;
|
|
234
|
+
}>, {}, {}, {}, {}, {
|
|
235
|
+
modelValue: import('./types').VroElTagsModelValue;
|
|
236
|
+
disabled: boolean;
|
|
237
|
+
}>;
|
|
238
|
+
__isFragment?: never;
|
|
239
|
+
__isTeleport?: never;
|
|
240
|
+
__isSuspense?: never;
|
|
241
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
242
|
+
modelValue: {
|
|
243
|
+
type: import('vue').PropType<import('./types').VroElTagsModelValue>;
|
|
244
|
+
default: () => never[];
|
|
245
|
+
};
|
|
246
|
+
disabled: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: boolean;
|
|
249
|
+
};
|
|
250
|
+
max: NumberConstructor;
|
|
251
|
+
tagProps: import('vue').PropType<Partial<import('element-plus').TagProps>>;
|
|
252
|
+
inputProps: import('vue').PropType<Partial<import('element-plus').InputProps>>;
|
|
253
|
+
buttonProps: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
254
|
+
}>> & Readonly<{
|
|
255
|
+
"onUpdate:modelValue"?: ((value: import('./types').VroElTagsModelValue) => any) | undefined;
|
|
256
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
257
|
+
"update:modelValue": (value: import('./types').VroElTagsModelValue) => any;
|
|
258
|
+
}, string, {
|
|
259
|
+
modelValue: import('./types').VroElTagsModelValue;
|
|
260
|
+
disabled: boolean;
|
|
261
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
262
|
+
$slots: Readonly<import('./types').VroElTagsSlots> & import('./types').VroElTagsSlots;
|
|
263
|
+
})>;
|
|
217
264
|
export default VroElTags;
|
|
218
265
|
export type VroElTagsInstance = InstanceType<typeof VroElTags>;
|
|
219
266
|
declare module 'vue' {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root,:host{--vro-el-tags-gap: 8px;--vro-el-tags-input-width: 120px}.vro-el-tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vro-el-tags-gap)}.vro-el-tags-tag,.vro-el-tags-button{flex:none}.vro-el-tags-input{width:var(--vro-el-tags-input-width)}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
import { VroSlot } from '@vrojs/base';
|
|
2
|
+
import { ButtonProps, InputProps, TagProps } from 'element-plus';
|
|
1
3
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
export type VroElTagsModelValue = string[];
|
|
5
|
+
export interface VroElTagsSlotProps {
|
|
6
|
+
item: string;
|
|
7
|
+
index: number;
|
|
8
|
+
}
|
|
9
|
+
export interface VroElTagsEmits {
|
|
10
|
+
'update:modelValue': [value: VroElTagsModelValue];
|
|
11
|
+
}
|
|
2
12
|
export declare const vroElTagsProps: {
|
|
3
13
|
/**
|
|
4
14
|
* 标签列表。
|
|
5
15
|
*/
|
|
6
16
|
modelValue: {
|
|
7
|
-
type: PropType<
|
|
17
|
+
type: PropType<VroElTagsModelValue>;
|
|
8
18
|
default: () => never[];
|
|
9
19
|
};
|
|
10
20
|
/**
|
|
@@ -14,5 +24,31 @@ export declare const vroElTagsProps: {
|
|
|
14
24
|
type: BooleanConstructor;
|
|
15
25
|
default: boolean;
|
|
16
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* 最大标签数量。
|
|
29
|
+
*/
|
|
30
|
+
max: NumberConstructor;
|
|
31
|
+
/**
|
|
32
|
+
* 透传给 ElTag 的属性。
|
|
33
|
+
*/
|
|
34
|
+
tagProps: PropType<Partial<TagProps>>;
|
|
35
|
+
/**
|
|
36
|
+
* 透传给 ElInput 的属性。
|
|
37
|
+
*/
|
|
38
|
+
inputProps: PropType<Partial<InputProps>>;
|
|
39
|
+
/**
|
|
40
|
+
* 透传给 ElButton 的属性。
|
|
41
|
+
*/
|
|
42
|
+
buttonProps: PropType<Partial<ButtonProps>>;
|
|
17
43
|
};
|
|
18
44
|
export type VroElTagsProps = ExtractPropTypes<typeof vroElTagsProps>;
|
|
45
|
+
export interface VroElTagsSlots {
|
|
46
|
+
/**
|
|
47
|
+
* 自定义标签内容。
|
|
48
|
+
*/
|
|
49
|
+
tag?: (props: VroElTagsSlotProps) => any;
|
|
50
|
+
/**
|
|
51
|
+
* 自定义新增按钮内容。
|
|
52
|
+
*/
|
|
53
|
+
add?: VroSlot;
|
|
54
|
+
}
|
|
@@ -12,7 +12,23 @@ const e = {
|
|
|
12
12
|
disabled: {
|
|
13
13
|
type: Boolean,
|
|
14
14
|
default: !1
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
/**
|
|
17
|
+
* 最大标签数量。
|
|
18
|
+
*/
|
|
19
|
+
max: Number,
|
|
20
|
+
/**
|
|
21
|
+
* 透传给 ElTag 的属性。
|
|
22
|
+
*/
|
|
23
|
+
tagProps: Object,
|
|
24
|
+
/**
|
|
25
|
+
* 透传给 ElInput 的属性。
|
|
26
|
+
*/
|
|
27
|
+
inputProps: Object,
|
|
28
|
+
/**
|
|
29
|
+
* 透传给 ElButton 的属性。
|
|
30
|
+
*/
|
|
31
|
+
buttonProps: Object
|
|
16
32
|
};
|
|
17
33
|
export {
|
|
18
34
|
e as vroElTagsProps
|