@vrojs/element-plus 0.0.7 → 0.0.8
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 +65 -7
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +33 -37
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +13 -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 +9 -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 +43 -0
- package/dist/vro-el-table/useVroElTable.js +47 -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,29 +1,234 @@
|
|
|
1
1
|
import { nextTick } from 'vue';
|
|
2
|
-
|
|
2
|
+
import { VroElTagsSlots } from './types';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<VroElTagsSlots> & VroElTagsSlots;
|
|
6
|
+
refs: {
|
|
7
|
+
inputRef: ({
|
|
8
|
+
$: import('vue').ComponentInternalInstance;
|
|
9
|
+
$data: {};
|
|
10
|
+
$props: {
|
|
11
|
+
readonly id?: string | undefined;
|
|
12
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
13
|
+
readonly disabled?: boolean | undefined;
|
|
14
|
+
readonly modelValue?: string | number | null | undefined | undefined;
|
|
15
|
+
readonly modelModifiers?: import('element-plus').InputModelModifiers | undefined;
|
|
16
|
+
readonly maxlength?: string | number | undefined;
|
|
17
|
+
readonly minlength?: string | number | undefined;
|
|
18
|
+
readonly type?: import('element-plus').InputType | undefined;
|
|
19
|
+
readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
20
|
+
readonly autosize?: import('element-plus').InputAutoSize | undefined;
|
|
21
|
+
readonly autocomplete?: string | undefined;
|
|
22
|
+
readonly formatter?: ((value: string) => string) | undefined;
|
|
23
|
+
readonly parser?: ((value: string) => string) | undefined;
|
|
24
|
+
readonly placeholder?: string | undefined;
|
|
25
|
+
readonly form?: string | undefined;
|
|
26
|
+
readonly readonly?: boolean | undefined;
|
|
27
|
+
readonly clearable?: boolean | undefined;
|
|
28
|
+
readonly clearIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
29
|
+
readonly showPassword?: boolean | undefined;
|
|
30
|
+
readonly showWordLimit?: boolean | undefined;
|
|
31
|
+
readonly wordLimitPosition?: "inside" | "outside" | undefined;
|
|
32
|
+
readonly suffixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
33
|
+
readonly prefixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
34
|
+
readonly containerRole?: string | undefined;
|
|
35
|
+
readonly tabindex?: string | number | undefined;
|
|
36
|
+
readonly validateEvent?: boolean | undefined;
|
|
37
|
+
readonly inputStyle?: import('vue').StyleValue;
|
|
38
|
+
readonly autofocus?: boolean | undefined;
|
|
39
|
+
readonly rows?: number | undefined;
|
|
40
|
+
readonly ariaLabel?: string | undefined;
|
|
41
|
+
readonly inputmode?: "search" | "text" | "none" | "email" | "tel" | "url" | "decimal" | "numeric" | undefined;
|
|
42
|
+
readonly name?: string | undefined;
|
|
43
|
+
readonly countGraphemes?: ((value: string) => number) | undefined;
|
|
44
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
45
|
+
readonly onInput?: ((value: string) => any) | undefined | undefined;
|
|
46
|
+
readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
|
|
47
|
+
readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
48
|
+
readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
49
|
+
readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
|
|
50
|
+
readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
51
|
+
readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
52
|
+
readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
53
|
+
readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
54
|
+
readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
55
|
+
readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
56
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
57
|
+
$attrs: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
$refs: {
|
|
61
|
+
[x: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
$slots: Readonly<{
|
|
64
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
67
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
68
|
+
$host: Element | null;
|
|
69
|
+
$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);
|
|
70
|
+
$el: any;
|
|
71
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').InputProps> & Readonly<{
|
|
72
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
73
|
+
onInput?: ((value: string) => any) | undefined;
|
|
74
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
75
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
76
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
77
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
78
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
79
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
80
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
81
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
82
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
83
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
86
|
+
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
87
|
+
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
88
|
+
textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
|
|
89
|
+
autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
|
|
90
|
+
isComposing: import('vue').Ref<boolean, boolean>;
|
|
91
|
+
passwordVisible: import('vue').Ref<boolean, boolean>;
|
|
92
|
+
focus: () => void | undefined;
|
|
93
|
+
blur: () => void | undefined;
|
|
94
|
+
select: () => void;
|
|
95
|
+
clear: (evt?: MouseEvent) => void;
|
|
96
|
+
resizeTextarea: () => void;
|
|
97
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
|
+
"update:modelValue": (value: string) => void;
|
|
99
|
+
input: (value: string) => void;
|
|
100
|
+
change: (value: string, evt?: Event | undefined) => void;
|
|
101
|
+
focus: (evt: FocusEvent) => void;
|
|
102
|
+
blur: (evt: FocusEvent) => void;
|
|
103
|
+
clear: (evt: MouseEvent | undefined) => void;
|
|
104
|
+
mouseleave: (evt: MouseEvent) => void;
|
|
105
|
+
mouseenter: (evt: MouseEvent) => void;
|
|
106
|
+
keydown: (evt: Event | KeyboardEvent) => void;
|
|
107
|
+
compositionstart: (evt: CompositionEvent) => void;
|
|
108
|
+
compositionupdate: (evt: CompositionEvent) => void;
|
|
109
|
+
compositionend: (evt: CompositionEvent) => void;
|
|
110
|
+
}, string, {
|
|
111
|
+
disabled: boolean;
|
|
112
|
+
modelValue: string | number | null;
|
|
113
|
+
modelModifiers: import('element-plus').InputModelModifiers;
|
|
114
|
+
type: import('element-plus').InputType;
|
|
115
|
+
autocomplete: string;
|
|
116
|
+
clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
|
|
117
|
+
wordLimitPosition: "inside" | "outside";
|
|
118
|
+
tabindex: string | number;
|
|
119
|
+
validateEvent: boolean;
|
|
120
|
+
inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
121
|
+
rows: number;
|
|
122
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
123
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
124
|
+
created?: (() => void) | (() => void)[];
|
|
125
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
126
|
+
mounted?: (() => void) | (() => void)[];
|
|
127
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
128
|
+
updated?: (() => void) | (() => void)[];
|
|
129
|
+
activated?: (() => void) | (() => void)[];
|
|
130
|
+
deactivated?: (() => void) | (() => void)[];
|
|
131
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
132
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
133
|
+
destroyed?: (() => void) | (() => void)[];
|
|
134
|
+
unmounted?: (() => void) | (() => void)[];
|
|
135
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
136
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
137
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
138
|
+
};
|
|
139
|
+
$forceUpdate: () => void;
|
|
140
|
+
$nextTick: typeof nextTick;
|
|
141
|
+
$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;
|
|
142
|
+
} & Readonly<{
|
|
143
|
+
disabled: boolean;
|
|
144
|
+
modelValue: string | number | null;
|
|
145
|
+
modelModifiers: import('element-plus').InputModelModifiers;
|
|
146
|
+
type: import('element-plus').InputType;
|
|
147
|
+
autocomplete: string;
|
|
148
|
+
clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
|
|
149
|
+
wordLimitPosition: "inside" | "outside";
|
|
150
|
+
tabindex: string | number;
|
|
151
|
+
validateEvent: boolean;
|
|
152
|
+
inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
153
|
+
rows: number;
|
|
154
|
+
}> & Omit<Readonly<import('element-plus').InputProps> & Readonly<{
|
|
155
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
156
|
+
onInput?: ((value: string) => any) | undefined;
|
|
157
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
158
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
159
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
160
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
161
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
162
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
163
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
164
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
165
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
166
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
167
|
+
}>, "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<{
|
|
168
|
+
input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
169
|
+
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
170
|
+
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
171
|
+
textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
|
|
172
|
+
autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
|
|
173
|
+
isComposing: import('vue').Ref<boolean, boolean>;
|
|
174
|
+
passwordVisible: import('vue').Ref<boolean, boolean>;
|
|
175
|
+
focus: () => void | undefined;
|
|
176
|
+
blur: () => void | undefined;
|
|
177
|
+
select: () => void;
|
|
178
|
+
clear: (evt?: MouseEvent) => void;
|
|
179
|
+
resizeTextarea: () => void;
|
|
180
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
181
|
+
$slots: {
|
|
182
|
+
prepend?: (props: {}) => any;
|
|
183
|
+
} & {
|
|
184
|
+
prefix?: (props: {}) => any;
|
|
185
|
+
} & {
|
|
186
|
+
suffix?: (props: {}) => any;
|
|
187
|
+
} & {
|
|
188
|
+
'password-icon'?: (props: {
|
|
189
|
+
visible: boolean;
|
|
190
|
+
}) => any;
|
|
191
|
+
} & {
|
|
192
|
+
append?: (props: {}) => any;
|
|
193
|
+
};
|
|
194
|
+
}) | null;
|
|
195
|
+
};
|
|
196
|
+
rootEl: HTMLDivElement;
|
|
197
|
+
};
|
|
198
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
199
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
200
|
modelValue: {
|
|
4
|
-
type: import('vue').PropType<
|
|
201
|
+
type: import('vue').PropType<import('./types').VroElTagsModelValue>;
|
|
5
202
|
default: () => never[];
|
|
6
203
|
};
|
|
7
204
|
disabled: {
|
|
8
205
|
type: BooleanConstructor;
|
|
9
206
|
default: boolean;
|
|
10
207
|
};
|
|
208
|
+
max: NumberConstructor;
|
|
209
|
+
tagProps: import('vue').PropType<Partial<import('element-plus').TagProps>>;
|
|
210
|
+
inputProps: import('vue').PropType<Partial<import('element-plus').InputProps>>;
|
|
211
|
+
buttonProps: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
11
212
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
"update:modelValue": (
|
|
213
|
+
"update:modelValue": (value: import('./types').VroElTagsModelValue) => any;
|
|
13
214
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
215
|
modelValue: {
|
|
15
|
-
type: import('vue').PropType<
|
|
216
|
+
type: import('vue').PropType<import('./types').VroElTagsModelValue>;
|
|
16
217
|
default: () => never[];
|
|
17
218
|
};
|
|
18
219
|
disabled: {
|
|
19
220
|
type: BooleanConstructor;
|
|
20
221
|
default: boolean;
|
|
21
222
|
};
|
|
223
|
+
max: NumberConstructor;
|
|
224
|
+
tagProps: import('vue').PropType<Partial<import('element-plus').TagProps>>;
|
|
225
|
+
inputProps: import('vue').PropType<Partial<import('element-plus').InputProps>>;
|
|
226
|
+
buttonProps: import('vue').PropType<Partial<import('element-plus').ButtonProps>>;
|
|
22
227
|
}>> & Readonly<{
|
|
23
|
-
"onUpdate:modelValue"?: ((
|
|
228
|
+
"onUpdate:modelValue"?: ((value: import('./types').VroElTagsModelValue) => any) | undefined;
|
|
24
229
|
}>, {
|
|
230
|
+
modelValue: import('./types').VroElTagsModelValue;
|
|
25
231
|
disabled: boolean;
|
|
26
|
-
modelValue: string[];
|
|
27
232
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
28
233
|
inputRef: ({
|
|
29
234
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -59,7 +264,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
59
264
|
readonly autofocus?: boolean | undefined;
|
|
60
265
|
readonly rows?: number | undefined;
|
|
61
266
|
readonly ariaLabel?: string | undefined;
|
|
62
|
-
readonly inputmode?: "search" | "text" | "
|
|
267
|
+
readonly inputmode?: "search" | "text" | "none" | "email" | "tel" | "url" | "decimal" | "numeric" | undefined;
|
|
63
268
|
readonly name?: string | undefined;
|
|
64
269
|
readonly countGraphemes?: ((value: string) => number) | undefined;
|
|
65
270
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
@@ -185,7 +390,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
185
390
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
186
391
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
187
392
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
188
|
-
}>, "input" | "select" | "textarea" | "clear" | "type" | "
|
|
393
|
+
}>, "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<{
|
|
189
394
|
input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
190
395
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
191
396
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -214,4 +419,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
214
419
|
};
|
|
215
420
|
}) | null;
|
|
216
421
|
}, HTMLDivElement>;
|
|
422
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
217
423
|
export default _default;
|
|
424
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
425
|
+
new (): {
|
|
426
|
+
$slots: S;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
@@ -1,62 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Plus as
|
|
3
|
-
import { ElTag as
|
|
4
|
-
import { useLocale as
|
|
5
|
-
import { vroElTagsProps as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as v, useTemplateRef as $, computed as R, createElementBlock as g, openBlock as a, createBlock as p, createCommentVNode as w, Fragment as I, renderList as _, unref as s, mergeProps as d, withCtx as V, renderSlot as b, createTextVNode as k, toDisplayString as C, withKeys as K, nextTick as L } from "vue";
|
|
2
|
+
import { Plus as N } from "@element-plus/icons-vue";
|
|
3
|
+
import { ElTag as S, ElInput as z, ElButton as A } from "element-plus";
|
|
4
|
+
import { useLocale as D } from "../locale/useLocale.js";
|
|
5
|
+
import { vroElTagsProps as F } from "./types.js";
|
|
6
|
+
const U = { class: "vro-el-tags" }, O = /* @__PURE__ */ B({
|
|
7
7
|
name: "VroElTags",
|
|
8
8
|
__name: "vro-el-tags",
|
|
9
|
-
props:
|
|
9
|
+
props: F,
|
|
10
10
|
emits: ["update:modelValue"],
|
|
11
|
-
setup(
|
|
12
|
-
const m =
|
|
13
|
-
const
|
|
14
|
-
m("update:modelValue",
|
|
15
|
-
},
|
|
16
|
-
u.value = !0,
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
const e =
|
|
21
|
-
|
|
11
|
+
setup(y, { emit: P }) {
|
|
12
|
+
const m = P, t = y, { t: T } = D(), n = v(""), u = v(!1), c = $("inputRef"), i = R(() => !t.disabled && (t.max === void 0 || t.modelValue.length < t.max)), h = (e) => {
|
|
13
|
+
const r = t.modelValue.filter((o, l) => l !== e);
|
|
14
|
+
m("update:modelValue", r);
|
|
15
|
+
}, E = () => {
|
|
16
|
+
i.value && (u.value = !0, L(() => {
|
|
17
|
+
c.value?.input?.focus();
|
|
18
|
+
}));
|
|
19
|
+
}, f = () => {
|
|
20
|
+
const e = n.value.trim();
|
|
21
|
+
e && i.value && m("update:modelValue", [...t.modelValue, e]), u.value = !1, n.value = "";
|
|
22
22
|
};
|
|
23
|
-
return (e,
|
|
24
|
-
(
|
|
25
|
-
key: `${
|
|
26
|
-
class: "vro-el-tag",
|
|
23
|
+
return (e, r) => (a(), g("div", U, [
|
|
24
|
+
(a(!0), g(I, null, _(e.modelValue, (o, l) => (a(), p(s(S), d({
|
|
25
|
+
key: `${o}-${l}`,
|
|
27
26
|
size: "large",
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
"disable-transitions": ""
|
|
28
|
+
}, { ref_for: !0 }, e.tagProps, {
|
|
29
|
+
class: "vro-el-tags-tag",
|
|
30
|
+
closable: !e.disabled && e.tagProps?.closable !== !1,
|
|
31
|
+
onClose: (j) => h(l)
|
|
32
|
+
}), {
|
|
33
|
+
default: V(() => [
|
|
34
|
+
b(e.$slots, "tag", {
|
|
35
|
+
item: o,
|
|
36
|
+
index: l
|
|
37
|
+
}, () => [
|
|
38
|
+
k(C(o), 1)
|
|
39
|
+
])
|
|
34
40
|
]),
|
|
35
41
|
_: 2
|
|
36
|
-
},
|
|
37
|
-
u.value ? (
|
|
42
|
+
}, 1040, ["closable", "onClose"]))), 128)),
|
|
43
|
+
u.value ? (a(), p(s(z), d({
|
|
38
44
|
key: 0,
|
|
39
45
|
ref_key: "inputRef",
|
|
40
|
-
ref:
|
|
46
|
+
ref: c
|
|
47
|
+
}, e.inputProps, {
|
|
41
48
|
modelValue: n.value,
|
|
42
|
-
"onUpdate:modelValue":
|
|
43
|
-
class: "vro-el-
|
|
44
|
-
onKeyup:
|
|
45
|
-
onBlur:
|
|
46
|
-
}, null,
|
|
49
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
|
|
50
|
+
class: "vro-el-tags-input",
|
|
51
|
+
onKeyup: K(f, ["enter"]),
|
|
52
|
+
onBlur: f
|
|
53
|
+
}), null, 16, ["modelValue"])) : i.value ? (a(), p(s(A), d({
|
|
47
54
|
key: 1,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
icon: s(N)
|
|
56
|
+
}, e.buttonProps, {
|
|
57
|
+
class: "vro-el-tags-button",
|
|
58
|
+
onClick: E
|
|
59
|
+
}), {
|
|
60
|
+
default: V(() => [
|
|
61
|
+
b(e.$slots, "add", {}, () => [
|
|
62
|
+
k(C(s(T)("tags.addText")), 1)
|
|
63
|
+
])
|
|
54
64
|
]),
|
|
55
|
-
_:
|
|
56
|
-
},
|
|
65
|
+
_: 3
|
|
66
|
+
}, 16, ["icon"])) : w("", !0)
|
|
57
67
|
]));
|
|
58
68
|
}
|
|
59
69
|
});
|
|
60
70
|
export {
|
|
61
|
-
|
|
71
|
+
O as default
|
|
62
72
|
};
|