@vtj/ui 0.8.136 → 0.8.137

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 (167) hide show
  1. package/dist/index.mjs +2258 -2258
  2. package/dist/index.umd.js +12 -12
  3. package/package.json +5 -5
  4. package/types/adapter.d.ts +0 -1
  5. package/types/components/action/Action.d.ts +12 -12
  6. package/types/components/action/Trigger.d.ts +7 -7
  7. package/types/components/action/hooks.d.ts +0 -1
  8. package/types/components/action/index.d.ts +0 -1
  9. package/types/components/action/types.d.ts +0 -1
  10. package/types/components/action-bar/ActionBar.d.ts +12 -11
  11. package/types/components/action-bar/index.d.ts +0 -1
  12. package/types/components/action-bar/types.d.ts +0 -1
  13. package/types/components/attachment/Attachment.d.ts +536 -23
  14. package/types/components/attachment/index.d.ts +0 -1
  15. package/types/components/attachment/props.d.ts +0 -1
  16. package/types/components/attachment/types.d.ts +0 -1
  17. package/types/components/attachment/util.d.ts +0 -1
  18. package/types/components/captcha/Captcha.d.ts +13 -36
  19. package/types/components/captcha/index.d.ts +0 -1
  20. package/types/components/captcha/types.d.ts +0 -1
  21. package/types/components/container/Container.d.ts +15 -8
  22. package/types/components/container/index.d.ts +0 -1
  23. package/types/components/container/types.d.ts +0 -1
  24. package/types/components/data-item/DataItem.d.ts +25 -18
  25. package/types/components/data-item/index.d.ts +0 -1
  26. package/types/components/data-item/types.d.ts +0 -1
  27. package/types/components/dialog/Dialog.d.ts +387 -33
  28. package/types/components/dialog/create.d.ts +0 -1
  29. package/types/components/dialog/hooks.d.ts +0 -1
  30. package/types/components/dialog/index.d.ts +0 -1
  31. package/types/components/dialog/types.d.ts +0 -1
  32. package/types/components/dialog-form/DialogForm.d.ts +946 -19
  33. package/types/components/dialog-form/index.d.ts +0 -1
  34. package/types/components/dialog-form/types.d.ts +0 -1
  35. package/types/components/dialog-grid/DialogGrid.d.ts +2117 -92
  36. package/types/components/dialog-grid/index.d.ts +0 -1
  37. package/types/components/dialog-grid/types.d.ts +0 -1
  38. package/types/components/field/Field.d.ts +235 -32
  39. package/types/components/field/editors/CheckboxEditor.d.ts +3 -27
  40. package/types/components/field/editors/RadioEditor.d.ts +3 -27
  41. package/types/components/field/editors/SelectEditor.d.ts +14 -31
  42. package/types/components/field/editors/index.d.ts +0 -1
  43. package/types/components/field/hooks/useEditor.d.ts +0 -1
  44. package/types/components/field/index.d.ts +0 -1
  45. package/types/components/field/types.d.ts +1 -2
  46. package/types/components/form/Form.d.ts +244 -18
  47. package/types/components/form/index.d.ts +0 -1
  48. package/types/components/form/types.d.ts +0 -1
  49. package/types/components/grid/Grid.d.ts +157 -140
  50. package/types/components/grid/hooks/useColumnSortable.d.ts +1 -2
  51. package/types/components/grid/hooks/useCustom.d.ts +0 -1
  52. package/types/components/grid/hooks/useEditRender.d.ts +3 -4
  53. package/types/components/grid/hooks/useFilterRender.d.ts +0 -1
  54. package/types/components/grid/hooks/useLoader.d.ts +103 -104
  55. package/types/components/grid/hooks/useProps.d.ts +0 -1
  56. package/types/components/grid/hooks/useRowSortable.d.ts +1 -2
  57. package/types/components/grid/hooks/useState.d.ts +103 -104
  58. package/types/components/grid/hooks/useVxe.d.ts +0 -1
  59. package/types/components/grid/index.d.ts +0 -1
  60. package/types/components/grid/props.d.ts +0 -1
  61. package/types/components/grid/renderers/actions.d.ts +0 -1
  62. package/types/components/grid/renderers/components/DateEdit.d.ts +2 -12
  63. package/types/components/grid/renderers/components/DateFilter.d.ts +2 -12
  64. package/types/components/grid/renderers/components/GridEdit.d.ts +2 -12
  65. package/types/components/grid/renderers/components/InputEdit.d.ts +2 -12
  66. package/types/components/grid/renderers/components/InputFilter.d.ts +2 -12
  67. package/types/components/grid/renderers/components/NumberEdit.d.ts +2 -12
  68. package/types/components/grid/renderers/components/NumberFilter.d.ts +2 -12
  69. package/types/components/grid/renderers/components/PickerEdit.d.ts +2 -12
  70. package/types/components/grid/renderers/components/SelectEdit.d.ts +2 -12
  71. package/types/components/grid/renderers/components/SelectFilter.d.ts +2 -12
  72. package/types/components/grid/renderers/date.d.ts +0 -1
  73. package/types/components/grid/renderers/grid.d.ts +0 -1
  74. package/types/components/grid/renderers/image.d.ts +0 -1
  75. package/types/components/grid/renderers/index.d.ts +0 -1
  76. package/types/components/grid/renderers/input.d.ts +0 -1
  77. package/types/components/grid/renderers/interceptors.d.ts +0 -1
  78. package/types/components/grid/renderers/link.d.ts +0 -1
  79. package/types/components/grid/renderers/number.d.ts +0 -1
  80. package/types/components/grid/renderers/picker.d.ts +0 -1
  81. package/types/components/grid/renderers/select.d.ts +0 -1
  82. package/types/components/grid/renderers/shared.d.ts +0 -1
  83. package/types/components/grid/renderers/tag.d.ts +0 -1
  84. package/types/components/grid/renderers/text.d.ts +0 -1
  85. package/types/components/grid/types.d.ts +0 -1
  86. package/types/components/grid/utils.d.ts +0 -1
  87. package/types/components/grid-editor/GridEditor.d.ts +9 -33
  88. package/types/components/grid-editor/index.d.ts +0 -1
  89. package/types/components/grid-editor/types.d.ts +0 -1
  90. package/types/components/header/Header.d.ts +15 -10
  91. package/types/components/header/index.d.ts +0 -1
  92. package/types/components/header/types.d.ts +0 -1
  93. package/types/components/icon/Icon.d.ts +12 -7
  94. package/types/components/icon/index.d.ts +0 -1
  95. package/types/components/icon/types.d.ts +0 -1
  96. package/types/components/import-button/ImportButton.d.ts +15 -10
  97. package/types/components/import-button/index.d.ts +0 -1
  98. package/types/components/import-button/props.d.ts +0 -1
  99. package/types/components/import-button/types.d.ts +0 -1
  100. package/types/components/input-unit/InputUnit.d.ts +11 -11
  101. package/types/components/input-unit/index.d.ts +0 -1
  102. package/types/components/input-unit/types.d.ts +0 -1
  103. package/types/components/list/List.d.ts +33 -21
  104. package/types/components/list/index.d.ts +0 -1
  105. package/types/components/list/types.d.ts +0 -1
  106. package/types/components/mask/Mask.d.ts +57 -14
  107. package/types/components/mask/components/Avatar.d.ts +9 -13
  108. package/types/components/mask/components/Brand.d.ts +11 -27
  109. package/types/components/mask/components/Content.d.ts +9 -14
  110. package/types/components/mask/components/Menu.d.ts +6 -28
  111. package/types/components/mask/components/Sidebar.d.ts +10 -14
  112. package/types/components/mask/components/SwitchBar.d.ts +5 -28
  113. package/types/components/mask/components/Tabs.d.ts +10 -20
  114. package/types/components/mask/components/ThemeSwitch.d.ts +2 -2
  115. package/types/components/mask/components/Toolbar.d.ts +12 -29
  116. package/types/components/mask/defineTab.d.ts +0 -1
  117. package/types/components/mask/hooks/useContent.d.ts +1 -2
  118. package/types/components/mask/hooks/useHome.d.ts +0 -1
  119. package/types/components/mask/hooks/useMenus.d.ts +1 -2
  120. package/types/components/mask/hooks/useSidebar.d.ts +3 -3
  121. package/types/components/mask/hooks/useTabs.d.ts +3 -4
  122. package/types/components/mask/index.d.ts +0 -1
  123. package/types/components/mask/types.d.ts +0 -1
  124. package/types/components/menu/Menu.d.ts +6 -30
  125. package/types/components/menu/MenuItem.d.ts +2 -12
  126. package/types/components/menu/components.d.ts +0 -1
  127. package/types/components/menu/index.d.ts +0 -1
  128. package/types/components/menu/types.d.ts +0 -1
  129. package/types/components/panel/Panel.d.ts +337 -14
  130. package/types/components/panel/index.d.ts +0 -1
  131. package/types/components/panel/types.d.ts +0 -1
  132. package/types/components/picker/Dialog.d.ts +4 -14
  133. package/types/components/picker/Picker.d.ts +20 -18
  134. package/types/components/picker/hooks.d.ts +6 -4
  135. package/types/components/picker/index.d.ts +0 -1
  136. package/types/components/picker/props.d.ts +1 -2
  137. package/types/components/picker/types.d.ts +0 -1
  138. package/types/components/qr-code/QrCode.d.ts +15 -34
  139. package/types/components/qr-code/index.d.ts +0 -1
  140. package/types/components/qr-code/types.d.ts +0 -1
  141. package/types/components/query-form/QueryForm.d.ts +442 -32
  142. package/types/components/query-form/hooks.d.ts +1 -2
  143. package/types/components/query-form/index.d.ts +0 -1
  144. package/types/components/query-form/props.d.ts +0 -1
  145. package/types/components/query-form/types.d.ts +0 -1
  146. package/types/components/shared.d.ts +0 -1
  147. package/types/components/startup/Startup.d.ts +5 -5
  148. package/types/components/startup/index.d.ts +0 -1
  149. package/types/components/startup/types.d.ts +0 -1
  150. package/types/components/tabs/Tabs.d.ts +48 -42
  151. package/types/components/tabs/index.d.ts +0 -1
  152. package/types/components/tabs/types.d.ts +0 -1
  153. package/types/components/test/Test.d.ts +51 -46
  154. package/types/components/test/index.d.ts +0 -1
  155. package/types/components/test/types.d.ts +0 -1
  156. package/types/components/verify/Verify.d.ts +14 -38
  157. package/types/components/verify/index.d.ts +0 -1
  158. package/types/directives/vDraggable.d.ts +0 -1
  159. package/types/directives/vResizable.d.ts +0 -1
  160. package/types/hooks/useDisabled.d.ts +0 -1
  161. package/types/hooks/useIcon.d.ts +0 -1
  162. package/types/hooks/useLoader.d.ts +0 -1
  163. package/types/index.d.ts +0 -1
  164. package/types/install.d.ts +1 -1
  165. package/types/list.d.ts +0 -1
  166. package/types/utils/install.d.ts +0 -1
  167. package/types/version.d.ts +2 -2
@@ -1,26 +1,14 @@
1
- import { ActionProps, ActionMenuItem, IconParam, ActionMode } from '../';
1
+ import { ActionProps, ActionMenuItem } from '../';
2
2
  import { TabsItem } from './types';
3
- import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
3
+ import { IconParam } from '../icon';
4
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
5
+ import { ActionMode } from '../action';
4
6
  import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
5
7
  import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
6
8
  import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
7
9
  import { BaseSize, BaseType } from '../shared';
8
-
9
- declare function __VLS_template(): Partial<Record<string, (_: {
10
- label: string;
11
- name?: string | number;
12
- icon?: IconParam;
13
- value?: string | number;
14
- data?: any;
15
- disabled?: boolean;
16
- closable?: boolean;
17
- lazy?: boolean;
18
- actions?: ActionProps[];
19
- component?: any;
20
- props?: Record<string, any>;
21
- slot?: string;
22
- }) => any>> & {
23
- label?(_: {
10
+ declare function __VLS_template(): {
11
+ slots: Partial<Record<string, (_: {
24
12
  label: string;
25
13
  name?: string | number;
26
14
  icon?: IconParam;
@@ -33,23 +21,41 @@ declare function __VLS_template(): Partial<Record<string, (_: {
33
21
  component?: any;
34
22
  props?: Record<string, any>;
35
23
  slot?: string;
36
- }): any;
37
- default?(_: {
38
- label: string;
39
- name?: string | number;
40
- icon?: IconParam;
41
- value?: string | number;
42
- data?: any;
43
- disabled?: boolean;
44
- closable?: boolean;
45
- lazy?: boolean;
46
- actions?: ActionProps[];
47
- component?: any;
48
- props?: Record<string, any>;
49
- slot?: string;
50
- }): any;
24
+ }) => any>> & {
25
+ label?(_: {
26
+ label: string;
27
+ name?: string | number;
28
+ icon?: IconParam;
29
+ value?: string | number;
30
+ data?: any;
31
+ disabled?: boolean;
32
+ closable?: boolean;
33
+ lazy?: boolean;
34
+ actions?: ActionProps[];
35
+ component?: any;
36
+ props?: Record<string, any>;
37
+ slot?: string;
38
+ }): any;
39
+ default?(_: {
40
+ label: string;
41
+ name?: string | number;
42
+ icon?: IconParam;
43
+ value?: string | number;
44
+ data?: any;
45
+ disabled?: boolean;
46
+ closable?: boolean;
47
+ lazy?: boolean;
48
+ actions?: ActionProps[];
49
+ component?: any;
50
+ props?: Record<string, any>;
51
+ slot?: string;
52
+ }): any;
53
+ };
54
+ refs: {};
55
+ attrs: Partial<{}>;
51
56
  };
52
- declare const __VLS_component: DefineComponent<{
57
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
58
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
53
59
  items: {
54
60
  type: PropType<TabsItem[]>;
55
61
  default(): never[];
@@ -63,9 +69,9 @@ declare const __VLS_component: DefineComponent<{
63
69
  align: {
64
70
  type: PropType<"left" | "center" | "right">;
65
71
  };
66
- }, {
72
+ }>, {
67
73
  $vtjDynamicSlots: () => (string | undefined)[];
68
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
74
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
69
75
  actionClick: (props: Readonly<Partial< ExtractPropTypes<{
70
76
  name: {
71
77
  type: StringConstructor;
@@ -154,8 +160,8 @@ declare const __VLS_component: DefineComponent<{
154
160
  draggable: {
155
161
  type: BooleanConstructor;
156
162
  };
157
- }>>>) => void;
158
- actionCommand: (item: ActionMenuItem) => void;
163
+ }>>>) => any;
164
+ actionCommand: (item: ActionMenuItem) => any;
159
165
  }, string, PublicProps, Readonly< ExtractPropTypes<{
160
166
  items: {
161
167
  type: PropType<TabsItem[]>;
@@ -170,7 +176,7 @@ declare const __VLS_component: DefineComponent<{
170
176
  align: {
171
177
  type: PropType<"left" | "center" | "right">;
172
178
  };
173
- }>> & {
179
+ }>> & Readonly<{
174
180
  onActionClick?: ((props: Readonly<Partial< ExtractPropTypes<{
175
181
  name: {
176
182
  type: StringConstructor;
@@ -261,12 +267,12 @@ declare const __VLS_component: DefineComponent<{
261
267
  };
262
268
  }>>>) => any) | undefined;
263
269
  onActionCommand?: ((item: ActionMenuItem) => any) | undefined;
264
- }, {
270
+ }>, {
265
271
  items: TabsItem[];
266
272
  fit: boolean;
267
273
  border: boolean;
268
- }, {}>;
269
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
274
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
275
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
270
276
  export default _default;
271
277
  type __VLS_WithTemplateSlots<T, S> = T & {
272
278
  new (): {
@@ -1,4 +1,3 @@
1
1
  import { default as XTabs } from './Tabs';
2
-
3
2
  export { XTabs };
4
3
  export * from './types';
@@ -1,7 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ComponentPropsType } from '../shared';
3
3
  import { IconParam, ActionProps, ActionMenuItem } from '../';
4
-
5
4
  export interface TabsItem {
6
5
  label: string;
7
6
  name?: string | number;
@@ -1,37 +1,42 @@
1
- import { DefineComponent, Ref, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
2
- declare function __VLS_template(): Partial<Record<string, (_: {}) => any>> & {
3
- default?(_: {
4
- props: {
5
- readonly booleanProp: boolean;
6
- readonly modelValue?: string | undefined;
7
- readonly stringProp?: string | undefined;
8
- readonly numberProp?: number | undefined;
9
- readonly selectProp?: string | undefined;
10
- readonly objectProp?: Record<string, any> | undefined;
11
- readonly arrayProp?: unknown[] | undefined;
12
- readonly iconProp?: string | undefined;
13
- readonly colorProp?: string | undefined;
14
- readonly syncProp?: string | undefined;
15
- };
16
- data: any;
17
- }): any;
18
- extra?(_: {
19
- props: {
20
- readonly booleanProp: boolean;
21
- readonly modelValue?: string | undefined;
22
- readonly stringProp?: string | undefined;
23
- readonly numberProp?: number | undefined;
24
- readonly selectProp?: string | undefined;
25
- readonly objectProp?: Record<string, any> | undefined;
26
- readonly arrayProp?: unknown[] | undefined;
27
- readonly iconProp?: string | undefined;
28
- readonly colorProp?: string | undefined;
29
- readonly syncProp?: string | undefined;
30
- };
31
- data: any;
32
- }): any;
1
+ import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ slots: Partial<Record<string, (_: {}) => any>> & {
4
+ default?(_: {
5
+ props: {
6
+ readonly booleanProp: boolean;
7
+ readonly modelValue?: string | undefined;
8
+ readonly stringProp?: string | undefined;
9
+ readonly numberProp?: number | undefined;
10
+ readonly selectProp?: string | undefined;
11
+ readonly objectProp?: Record<string, any> | undefined;
12
+ readonly arrayProp?: unknown[] | undefined;
13
+ readonly iconProp?: string | undefined;
14
+ readonly colorProp?: string | undefined;
15
+ readonly syncProp?: string | undefined;
16
+ };
17
+ data: any;
18
+ }): any;
19
+ extra?(_: {
20
+ props: {
21
+ readonly booleanProp: boolean;
22
+ readonly modelValue?: string | undefined;
23
+ readonly stringProp?: string | undefined;
24
+ readonly numberProp?: number | undefined;
25
+ readonly selectProp?: string | undefined;
26
+ readonly objectProp?: Record<string, any> | undefined;
27
+ readonly arrayProp?: unknown[] | undefined;
28
+ readonly iconProp?: string | undefined;
29
+ readonly colorProp?: string | undefined;
30
+ readonly syncProp?: string | undefined;
31
+ };
32
+ data: any;
33
+ }): any;
34
+ };
35
+ refs: {};
36
+ attrs: Partial<{}>;
33
37
  };
34
- declare const __VLS_component: DefineComponent<{
38
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
35
40
  stringProp: {
36
41
  type: StringConstructor;
37
42
  };
@@ -62,14 +67,13 @@ declare const __VLS_component: DefineComponent<{
62
67
  syncProp: {
63
68
  type: StringConstructor;
64
69
  };
65
- }, {
70
+ }>, {
66
71
  click: () => void;
67
72
  submit: () => void;
68
- data: Ref<any>;
73
+ data: Ref<any, any>;
69
74
  change: (params: any) => void;
70
75
  $vtjDynamicSlots: () => string[];
71
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
72
- change: (data: any) => void;
76
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
73
77
  click: (props: Readonly<Partial< ExtractPropTypes<{
74
78
  stringProp: {
75
79
  type: StringConstructor;
@@ -101,7 +105,7 @@ declare const __VLS_component: DefineComponent<{
101
105
  syncProp: {
102
106
  type: StringConstructor;
103
107
  };
104
- }>>>) => void;
108
+ }>>>) => any;
105
109
  submit: (props: Readonly<Partial< ExtractPropTypes<{
106
110
  stringProp: {
107
111
  type: StringConstructor;
@@ -133,9 +137,10 @@ declare const __VLS_component: DefineComponent<{
133
137
  syncProp: {
134
138
  type: StringConstructor;
135
139
  };
136
- }>>>) => void;
137
- "update:modelValue": (value?: string | undefined) => void;
138
- "update:syncProp": (value?: string | undefined) => void;
140
+ }>>>) => any;
141
+ change: (data: any) => any;
142
+ "update:modelValue": (value?: string | undefined) => any;
143
+ "update:syncProp": (value?: string | undefined) => any;
139
144
  }, string, PublicProps, Readonly< ExtractPropTypes<{
140
145
  stringProp: {
141
146
  type: StringConstructor;
@@ -167,7 +172,7 @@ declare const __VLS_component: DefineComponent<{
167
172
  syncProp: {
168
173
  type: StringConstructor;
169
174
  };
170
- }>> & {
175
+ }>> & Readonly<{
171
176
  onClick?: ((props: Readonly<Partial< ExtractPropTypes<{
172
177
  stringProp: {
173
178
  type: StringConstructor;
@@ -200,7 +205,6 @@ declare const __VLS_component: DefineComponent<{
200
205
  type: StringConstructor;
201
206
  };
202
207
  }>>>) => any) | undefined;
203
- onChange?: ((data: any) => any) | undefined;
204
208
  onSubmit?: ((props: Readonly<Partial< ExtractPropTypes<{
205
209
  stringProp: {
206
210
  type: StringConstructor;
@@ -233,12 +237,13 @@ declare const __VLS_component: DefineComponent<{
233
237
  type: StringConstructor;
234
238
  };
235
239
  }>>>) => any) | undefined;
240
+ onChange?: ((data: any) => any) | undefined;
236
241
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
237
242
  "onUpdate:syncProp"?: ((value?: string | undefined) => any) | undefined;
238
- }, {
243
+ }>, {
239
244
  booleanProp: boolean;
240
- }, {}>;
241
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
245
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
246
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
242
247
  export default _default;
243
248
  type __VLS_WithTemplateSlots<T, S> = T & {
244
249
  new (): {
@@ -1,4 +1,3 @@
1
1
  import { default as XTest } from './Test';
2
-
3
2
  export { XTest };
4
3
  export * from './types';
@@ -1,5 +1,4 @@
1
1
  import { ComponentPropsType } from '../shared';
2
-
3
2
  export declare const testProps: {
4
3
  stringProp: {
5
4
  type: StringConstructor;
@@ -1,43 +1,19 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- declare const _default: DefineComponent<{
3
- modelValue: PropType<any>;
4
- maxlength: {
5
- type: PropType<number>;
6
- default: number;
7
- };
8
- placeholder: {
9
- type: PropType<string>;
10
- default: string;
11
- };
12
- api: {
13
- type: PropType<() => Promise<boolean>>;
14
- };
15
- seconds: {
16
- type: PropType<number>;
17
- default: number;
18
- };
19
- }, {
1
+ import { VerifyProps } from './types';
2
+ import { ModelRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare let __VLS_typeProps: VerifyProps;
4
+ declare const modelValue: ModelRef<string | undefined, string, string | undefined, string | undefined>;
5
+ type __VLS_PublicProps = {
6
+ modelValue?: typeof modelValue['value'];
7
+ } & typeof __VLS_typeProps;
8
+ declare const _default: DefineComponent<__VLS_PublicProps, {
20
9
  send: () => Promise<void>;
21
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
22
- modelValue: PropType<any>;
23
- maxlength: {
24
- type: PropType<number>;
25
- default: number;
26
- };
27
- placeholder: {
28
- type: PropType<string>;
29
- default: string;
30
- };
31
- api: {
32
- type: PropType<() => Promise<boolean>>;
33
- };
34
- seconds: {
35
- type: PropType<number>;
36
- default: number;
37
- };
38
- }>>, {
10
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:modelValue": (modelValue: string | undefined) => any;
12
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:modelValue"?: ((modelValue: string | undefined) => any) | undefined;
14
+ }>, {
39
15
  maxlength: number;
40
16
  placeholder: string;
41
17
  seconds: number;
42
- }, {}>;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
43
19
  export default _default;
@@ -1,4 +1,3 @@
1
1
  import { default as XVerify } from './Verify';
2
-
3
2
  export { XVerify };
4
3
  export * from './types';
@@ -1,6 +1,5 @@
1
1
  import { Directive, MaybeRef } from 'vue';
2
2
  import { UseDraggableOptions } from '@vueuse/core';
3
-
4
3
  declare global {
5
4
  interface HTMLElement {
6
5
  __draggable__?: Draggable | null;
@@ -1,6 +1,5 @@
1
1
  import { Directive, Ref } from 'vue';
2
2
  import { useMouseInElement, Fn } from '@vueuse/core';
3
-
4
3
  declare global {
5
4
  interface HTMLElement {
6
5
  __resizable__?: Resizable | null;
@@ -1,4 +1,3 @@
1
1
  import { MaybeRef, ComputedRef } from 'vue';
2
-
3
2
  export type IUseDisabled = MaybeRef<undefined | boolean | ((...args: any[]) => boolean)>;
4
3
  export declare function useDisabled(disabled: IUseDisabled, params?: any): ComputedRef<boolean>;
@@ -1,5 +1,4 @@
1
1
  import { ComputedRef, MaybeRef } from 'vue';
2
2
  import { IconParam, IconProps } from '../components';
3
-
4
3
  export declare function useIconProps(iconRef: MaybeRef<IconParam | undefined>): ComputedRef<IconProps | null>;
5
4
  export declare function useIcon(icon: MaybeRef<IconParam | undefined>): Record<string, any> | undefined;
@@ -1,5 +1,4 @@
1
1
  import { MaybeRef, ShallowRef, Ref } from 'vue';
2
-
3
2
  export interface UseLoaderResult<T> {
4
3
  data: ShallowRef<T>;
5
4
  loading: Ref<boolean>;
package/types/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  export { version as VTJ_UI_VERSION } from './version';
3
2
  export * from './components';
4
3
  export * from './directives';
@@ -1,5 +1,5 @@
1
1
  import { App } from 'vue';
2
- import { InstallerOptions } from './index';
2
+ import { InstallerOptions } from './utils';
3
3
  declare const install: (app: App, options?: InstallerOptions) => void;
4
4
  export { install };
5
5
  export * from './index';
package/types/list.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  import { DefineComponent } from 'vue';
2
-
3
2
  export declare const components: DefineComponent<any, any, any, any>[];
@@ -1,6 +1,5 @@
1
1
  import { App } from 'vue';
2
2
  import { Adapter } from '../adapter';
3
-
4
3
  export interface InstallerOptions {
5
4
  adapter?: Adapter;
6
5
  }
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/ui
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.8.135
5
+ * @version 0.8.136
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.135";
8
+ export declare const version = "0.8.136";