@vrojs/element-plus 0.0.6 → 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.
Files changed (190) hide show
  1. package/dist/index.d.ts +5 -0
  2. package/dist/index.js +125 -83
  3. package/dist/locale/index.js +6 -7
  4. package/dist/locale/lang/en.d.ts +8 -0
  5. package/dist/locale/lang/en.js +8 -0
  6. package/dist/locale/lang/zh-cn.d.ts +8 -0
  7. package/dist/locale/lang/zh-cn.js +8 -0
  8. package/dist/locale/useLocale.d.ts +1 -48
  9. package/dist/locale/useLocale.js +16 -17
  10. package/dist/style/deps.js +7 -0
  11. package/dist/style/index.css +1 -1
  12. package/dist/style/index.js +7 -0
  13. package/dist/utils/elTableColumnProps.d.ts +149 -0
  14. package/dist/utils/elTableColumnProps.js +152 -0
  15. package/dist/utils/index.d.ts +1 -0
  16. package/dist/utils/index.js +4 -2
  17. package/dist/vro-el-checkbox-group/index.d.ts +1 -1
  18. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +1 -1
  19. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +10 -10
  20. package/dist/vro-el-config-provider/config.d.ts +14 -0
  21. package/dist/vro-el-config-provider/config.js +36 -0
  22. package/dist/vro-el-config-provider/index.d.ts +16 -0
  23. package/dist/vro-el-config-provider/index.js +8 -2
  24. package/dist/vro-el-config-provider/types.d.ts +7 -0
  25. package/dist/vro-el-config-provider/types.js +7 -0
  26. package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +9 -0
  27. package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +11 -11
  28. package/dist/vro-el-file-upload/index.d.ts +6 -6
  29. package/dist/vro-el-file-upload/style/index.css +1 -1
  30. package/dist/vro-el-file-upload/types.d.ts +9 -2
  31. package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +7 -6
  32. package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +55 -51
  33. package/dist/vro-el-icon/index.d.ts +28 -40
  34. package/dist/vro-el-icon/style/css.js +1 -0
  35. package/dist/vro-el-icon/style/deps.js +1 -1
  36. package/dist/vro-el-icon/style/index.js +1 -1
  37. package/dist/vro-el-icon/types.d.ts +16 -13
  38. package/dist/vro-el-icon/types.js +8 -1
  39. package/dist/vro-el-icon/vro-el-icon.vue.d.ts +18 -27
  40. package/dist/vro-el-icon/vro-el-icon.vue.js +27 -23
  41. package/dist/vro-el-image/index.d.ts +10 -4
  42. package/dist/vro-el-image/style/css.js +4 -0
  43. package/dist/vro-el-image/style/index.css +1 -0
  44. package/dist/vro-el-image/style/index.js +4 -0
  45. package/dist/vro-el-image/types.d.ts +35 -0
  46. package/dist/vro-el-image/types.js +24 -1
  47. package/dist/vro-el-image/utils.d.ts +1 -1
  48. package/dist/vro-el-image/vro-el-image.vue.d.ts +7 -2
  49. package/dist/vro-el-image/vro-el-image.vue.js +55 -24
  50. package/dist/vro-el-image-upload/index.d.ts +1 -1
  51. package/dist/vro-el-image-upload/style/css.js +4 -0
  52. package/dist/vro-el-image-upload/style/index.css +1 -1
  53. package/dist/vro-el-image-upload/style/index.js +4 -0
  54. package/dist/vro-el-image-upload/types.d.ts +24 -7
  55. package/dist/vro-el-image-upload/types.js +21 -7
  56. package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +1 -1
  57. package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +82 -68
  58. package/dist/vro-el-radio-group/index.d.ts +1 -1
  59. package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +1 -1
  60. package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +12 -12
  61. package/dist/vro-el-schema-filter/index.d.ts +27 -31
  62. package/dist/vro-el-schema-filter/style/css.js +5 -0
  63. package/dist/vro-el-schema-filter/style/index.css +1 -1
  64. package/dist/vro-el-schema-filter/style/index.js +5 -0
  65. package/dist/vro-el-schema-filter/types.d.ts +17 -0
  66. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +38 -43
  67. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +63 -44
  68. package/dist/vro-el-schema-form/index.d.ts +16 -18
  69. package/dist/vro-el-schema-form/style/css.js +5 -0
  70. package/dist/vro-el-schema-form/style/index.css +1 -1
  71. package/dist/vro-el-schema-form/style/index.js +5 -0
  72. package/dist/vro-el-schema-form/types.d.ts +65 -7
  73. package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +33 -37
  74. package/dist/vro-el-schema-form/useVroElSchemaForm.js +13 -13
  75. package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +11 -13
  76. package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +79 -79
  77. package/dist/vro-el-schema-form-dialog/function-call.js +10 -7
  78. package/dist/vro-el-schema-form-dialog/index.d.ts +111 -142
  79. package/dist/vro-el-schema-form-dialog/style/css.js +5 -0
  80. package/dist/vro-el-schema-form-dialog/style/index.css +1 -1
  81. package/dist/vro-el-schema-form-dialog/style/index.js +5 -0
  82. package/dist/vro-el-schema-form-dialog/types.d.ts +25 -16
  83. package/dist/vro-el-schema-form-dialog/types.js +6 -11
  84. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +92 -113
  85. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +83 -87
  86. package/dist/vro-el-schema-form-drawer/function-call.d.ts +4 -0
  87. package/dist/vro-el-schema-form-drawer/function-call.js +20 -0
  88. package/dist/vro-el-schema-form-drawer/index.d.ts +2207 -0
  89. package/dist/vro-el-schema-form-drawer/index.js +16 -0
  90. package/dist/vro-el-schema-form-drawer/injection.d.ts +9 -0
  91. package/dist/vro-el-schema-form-drawer/injection.js +9 -0
  92. package/dist/vro-el-schema-form-drawer/style/css.d.ts +0 -0
  93. package/dist/vro-el-schema-form-drawer/style/css.js +24 -0
  94. package/dist/vro-el-schema-form-drawer/style/deps.d.ts +0 -0
  95. package/dist/vro-el-schema-form-drawer/style/deps.js +24 -0
  96. package/dist/vro-el-schema-form-drawer/style/index.css +1 -0
  97. package/dist/vro-el-schema-form-drawer/style/index.d.ts +0 -0
  98. package/dist/vro-el-schema-form-drawer/style/index.js +48 -0
  99. package/dist/vro-el-schema-form-drawer/types.d.ts +110 -0
  100. package/dist/vro-el-schema-form-drawer/types.js +75 -0
  101. package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.d.ts +14 -0
  102. package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js +18 -0
  103. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +1832 -0
  104. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.js +134 -0
  105. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue2.js +4 -0
  106. package/dist/vro-el-select/index.d.ts +11 -11
  107. package/dist/vro-el-select/vro-el-select.vue.d.ts +11 -11
  108. package/dist/vro-el-select/vro-el-select.vue.js +11 -11
  109. package/dist/vro-el-skeleton/index.d.ts +9 -73
  110. package/dist/vro-el-skeleton/style/index.css +1 -1
  111. package/dist/vro-el-skeleton/types.d.ts +32 -24
  112. package/dist/vro-el-skeleton/types.js +3 -23
  113. package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +7 -48
  114. package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +48 -46
  115. package/dist/vro-el-table/createUseVroElTable.d.ts +9 -0
  116. package/dist/vro-el-table/createUseVroElTable.js +7 -0
  117. package/dist/vro-el-table/index.js +13 -0
  118. package/dist/vro-el-table/style/css.d.ts +0 -0
  119. package/dist/vro-el-table/style/css.js +29 -0
  120. package/dist/vro-el-table/style/deps.d.ts +0 -0
  121. package/dist/vro-el-table/style/deps.js +28 -0
  122. package/dist/vro-el-table/style/index.css +1 -0
  123. package/dist/vro-el-table/style/index.d.ts +0 -0
  124. package/dist/vro-el-table/style/index.js +57 -0
  125. package/dist/vro-el-table/types.d.ts +97 -0
  126. package/dist/vro-el-table/types.js +66 -0
  127. package/dist/vro-el-table/useVroElTable.d.ts +43 -0
  128. package/dist/vro-el-table/useVroElTable.js +47 -0
  129. package/dist/vro-el-table/vro-el-table.vue.js +94 -0
  130. package/dist/vro-el-table/vro-el-table.vue2.js +4 -0
  131. package/dist/vro-el-table-actions-column/index.d.ts +269 -0
  132. package/dist/vro-el-table-actions-column/index.js +9 -0
  133. package/dist/vro-el-table-actions-column/style/css.d.ts +0 -0
  134. package/dist/vro-el-table-actions-column/style/css.js +4 -0
  135. package/dist/vro-el-table-actions-column/style/deps.d.ts +0 -0
  136. package/dist/vro-el-table-actions-column/style/deps.js +5 -0
  137. package/dist/vro-el-table-actions-column/style/index.css +1 -0
  138. package/dist/vro-el-table-actions-column/style/index.d.ts +0 -0
  139. package/dist/vro-el-table-actions-column/style/index.js +9 -0
  140. package/dist/vro-el-table-actions-column/types.d.ts +139 -0
  141. package/dist/vro-el-table-actions-column/types.js +37 -0
  142. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.d.ts +167 -0
  143. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.js +101 -0
  144. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue2.js +4 -0
  145. package/dist/vro-el-table-column/index.d.ts +257 -0
  146. package/dist/vro-el-table-column/index.js +9 -0
  147. package/dist/vro-el-table-column/style/css.d.ts +0 -0
  148. package/dist/vro-el-table-column/style/css.js +6 -0
  149. package/dist/vro-el-table-column/style/deps.d.ts +0 -0
  150. package/dist/vro-el-table-column/style/deps.js +1 -0
  151. package/dist/vro-el-table-column/style/index.css +1 -0
  152. package/dist/vro-el-table-column/style/index.d.ts +0 -0
  153. package/dist/vro-el-table-column/style/index.js +7 -0
  154. package/dist/vro-el-table-column/types.d.ts +141 -0
  155. package/dist/vro-el-table-column/types.js +43 -0
  156. package/dist/vro-el-table-column/vro-el-table-column.vue.d.ts +161 -0
  157. package/dist/vro-el-table-column/vro-el-table-column.vue.js +66 -0
  158. package/dist/vro-el-table-column/vro-el-table-column.vue2.js +4 -0
  159. package/dist/vro-el-table-column-group/index.d.ts +23 -0
  160. package/dist/vro-el-table-column-group/index.js +13 -0
  161. package/dist/vro-el-table-column-group/style/css.d.ts +0 -0
  162. package/dist/vro-el-table-column-group/style/css.js +9 -0
  163. package/dist/vro-el-table-column-group/style/deps.d.ts +0 -0
  164. package/dist/vro-el-table-column-group/style/deps.js +5 -0
  165. package/dist/vro-el-table-column-group/style/index.d.ts +0 -0
  166. package/dist/vro-el-table-column-group/style/index.js +14 -0
  167. package/dist/vro-el-table-column-group/types.d.ts +87 -0
  168. package/dist/vro-el-table-column-group/types.js +12 -0
  169. package/dist/vro-el-table-column-group/useVroElTableColumnGroup.d.ts +2 -0
  170. package/dist/vro-el-table-column-group/useVroElTableColumnGroup.js +10 -0
  171. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.d.ts +14 -0
  172. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.js +29 -0
  173. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue2.js +4 -0
  174. package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.d.ts +2 -0
  175. package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.js +9 -0
  176. package/dist/vro-el-tags/index.d.ts +234 -187
  177. package/dist/vro-el-tags/style/css.js +1 -0
  178. package/dist/vro-el-tags/style/index.css +1 -0
  179. package/dist/vro-el-tags/style/index.js +1 -0
  180. package/dist/vro-el-tags/types.d.ts +37 -1
  181. package/dist/vro-el-tags/types.js +17 -1
  182. package/dist/vro-el-tags/vro-el-tags.vue.d.ts +219 -8
  183. package/dist/vro-el-tags/vro-el-tags.vue.js +55 -45
  184. package/dist/vro-el-tree/index.d.ts +3235 -32
  185. package/dist/vro-el-tree/style/index.css +1 -1
  186. package/dist/vro-el-tree/types.d.ts +124 -5
  187. package/dist/vro-el-tree/types.js +12 -6
  188. package/dist/vro-el-tree/vro-el-tree.vue.d.ts +6020 -20
  189. package/dist/vro-el-tree/vro-el-tree.vue.js +54 -36
  190. package/package.json +10 -12
@@ -1,95 +1,174 @@
1
1
  export * from './types';
2
- export declare const VroElTags: import('@vrojs/base').WithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
- modelValue: {
4
- type: import('vue').PropType<string[]>;
5
- default: () => never[];
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
- $refs: {
82
- [x: string]: unknown;
8
+ disabled: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
83
11
  };
84
- $slots: Readonly<{
85
- [name: string]: import('vue').Slot<any> | undefined;
86
- }>;
87
- $root: import('vue').ComponentPublicInstance | null;
88
- $parent: import('vue').ComponentPublicInstance | null;
89
- $host: Element | null;
90
- $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);
91
- $el: any;
92
- $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').InputProps> & Readonly<{
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
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
119
- "update:modelValue": (value: string) => void;
120
- input: (value: string) => void;
121
- change: (value: string, evt?: Event | undefined) => void;
122
- focus: (evt: FocusEvent) => void;
123
- blur: (evt: FocusEvent) => void;
124
- clear: (evt: MouseEvent | undefined) => void;
125
- mouseleave: (evt: MouseEvent) => void;
126
- mouseenter: (evt: MouseEvent) => void;
127
- keydown: (evt: Event | KeyboardEvent) => void;
128
- compositionstart: (evt: CompositionEvent) => void;
129
- compositionupdate: (evt: CompositionEvent) => void;
130
- compositionend: (evt: CompositionEvent) => void;
131
- }, string, {
132
- disabled: boolean;
133
- modelValue: string | number | null;
134
- modelModifiers: import('element-plus').InputModelModifiers;
135
- type: import('element-plus').InputType;
136
- autocomplete: string;
137
- clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
138
- wordLimitPosition: "inside" | "outside";
139
- tabindex: string | number;
140
- validateEvent: boolean;
141
- inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
142
- rows: number;
143
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
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
- $forceUpdate: () => void;
161
- $nextTick: typeof import('vue').nextTick;
162
- $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;
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
- }) | null;
216
- }, HTMLDivElement>>;
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' {
@@ -1,3 +1,4 @@
1
1
  import '../../style/base.css';
2
+ import './index.css';
2
3
  /* empty css */
3
4
  /* empty css */
@@ -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,4 +1,5 @@
1
1
  import '../../style/base.css';
2
+ import './index.css';
2
3
  import "element-plus/es/components/button/style/css";
3
4
  import "element-plus/es/components/input/style/css";
4
5
  import "element-plus/es/components/tag/style/css";
@@ -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<string[]>;
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