@vtj/ui 0.7.28 → 0.7.30

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 (98) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.iife.js +2 -2
  3. package/dist/index.mjs +2 -2
  4. package/dist/index.umd.js +2 -2
  5. package/package.json +5 -5
  6. package/types/components/action/Action.d.ts +23 -23
  7. package/types/components/action/Trigger.d.ts +11 -11
  8. package/types/components/action/hooks.d.ts +4 -3
  9. package/types/components/action/index.d.ts +2 -1
  10. package/types/components/action/types.d.ts +6 -5
  11. package/types/components/action-bar/ActionBar.d.ts +42 -41
  12. package/types/components/action-bar/index.d.ts +2 -1
  13. package/types/components/action-bar/types.d.ts +7 -6
  14. package/types/components/chart/Chart.d.ts +2 -2
  15. package/types/components/chart/index.d.ts +2 -1
  16. package/types/components/chart/types.d.ts +4 -3
  17. package/types/components/chart/useChart.d.ts +4 -3
  18. package/types/components/container/Container.d.ts +4 -4
  19. package/types/components/container/index.d.ts +2 -1
  20. package/types/components/container/types.d.ts +4 -3
  21. package/types/components/data-item/DataItem.d.ts +24 -23
  22. package/types/components/data-item/index.d.ts +2 -1
  23. package/types/components/data-item/types.d.ts +4 -3
  24. package/types/components/dialog/Dialog.d.ts +2 -2
  25. package/types/components/dialog/create.d.ts +3 -2
  26. package/types/components/dialog/hooks.d.ts +5 -4
  27. package/types/components/dialog/index.d.ts +2 -1
  28. package/types/components/dialog/types.d.ts +7 -6
  29. package/types/components/dialog-form/DialogForm.d.ts +2 -2
  30. package/types/components/dialog-form/index.d.ts +2 -1
  31. package/types/components/dialog-form/types.d.ts +3 -2
  32. package/types/components/field/Field.d.ts +9 -8
  33. package/types/components/field/editors/CheckboxEditor.d.ts +3 -2
  34. package/types/components/field/editors/RadioEditor.d.ts +3 -2
  35. package/types/components/field/editors/SelectEditor.d.ts +4 -3
  36. package/types/components/field/editors/index.d.ts +4 -3
  37. package/types/components/field/hooks/useEditor.d.ts +4 -3
  38. package/types/components/field/index.d.ts +2 -1
  39. package/types/components/field/types.d.ts +7 -6
  40. package/types/components/form/Form.d.ts +7 -6
  41. package/types/components/form/index.d.ts +2 -1
  42. package/types/components/form/types.d.ts +5 -4
  43. package/types/components/header/Header.d.ts +2 -2
  44. package/types/components/header/index.d.ts +2 -1
  45. package/types/components/header/types.d.ts +4 -3
  46. package/types/components/icon/Icon.d.ts +2 -2
  47. package/types/components/icon/index.d.ts +2 -1
  48. package/types/components/icon/types.d.ts +3 -2
  49. package/types/components/input-unit/InputUnit.d.ts +1 -1
  50. package/types/components/input-unit/index.d.ts +2 -1
  51. package/types/components/input-unit/types.d.ts +3 -2
  52. package/types/components/list/List.d.ts +7 -6
  53. package/types/components/list/index.d.ts +2 -1
  54. package/types/components/list/types.d.ts +4 -3
  55. package/types/components/mask/Mask.d.ts +31 -30
  56. package/types/components/mask/components/Avatar.d.ts +1 -1
  57. package/types/components/mask/components/Brand.d.ts +2 -2
  58. package/types/components/mask/components/Content.d.ts +3 -2
  59. package/types/components/mask/components/Menu.d.ts +3 -2
  60. package/types/components/mask/components/Sidebar.d.ts +1 -1
  61. package/types/components/mask/components/SwitchBar.d.ts +1 -1
  62. package/types/components/mask/components/Tabs.d.ts +4 -3
  63. package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
  64. package/types/components/mask/components/Toolbar.d.ts +5 -4
  65. package/types/components/mask/defineTab.d.ts +2 -1
  66. package/types/components/mask/hooks/useContent.d.ts +3 -2
  67. package/types/components/mask/hooks/useHome.d.ts +2 -1
  68. package/types/components/mask/hooks/useMenus.d.ts +3 -2
  69. package/types/components/mask/hooks/useTabs.d.ts +4 -3
  70. package/types/components/mask/index.d.ts +2 -1
  71. package/types/components/mask/types.d.ts +5 -4
  72. package/types/components/menu/Menu.d.ts +3 -2
  73. package/types/components/menu/MenuItem.d.ts +4 -3
  74. package/types/components/menu/components.d.ts +2 -1
  75. package/types/components/menu/index.d.ts +2 -1
  76. package/types/components/menu/types.d.ts +3 -2
  77. package/types/components/panel/Panel.d.ts +12 -12
  78. package/types/components/panel/index.d.ts +2 -1
  79. package/types/components/panel/types.d.ts +19 -18
  80. package/types/components/shared.d.ts +3 -2
  81. package/types/components/startup/Startup.d.ts +1 -1
  82. package/types/components/startup/index.d.ts +2 -1
  83. package/types/components/startup/types.d.ts +2 -1
  84. package/types/components/tabs/Tabs.d.ts +25 -24
  85. package/types/components/tabs/index.d.ts +2 -1
  86. package/types/components/tabs/types.d.ts +4 -3
  87. package/types/components/test/Test.d.ts +6 -6
  88. package/types/components/test/index.d.ts +2 -1
  89. package/types/components/test/types.d.ts +2 -1
  90. package/types/directives/vDraggable.d.ts +3 -2
  91. package/types/directives/vResizable.d.ts +3 -2
  92. package/types/hooks/useDisabled.d.ts +2 -1
  93. package/types/hooks/useIcon.d.ts +3 -2
  94. package/types/hooks/useLoader.d.ts +2 -1
  95. package/types/index.d.ts +1 -0
  96. package/types/list.d.ts +2 -1
  97. package/types/utils/install.d.ts +2 -1
  98. package/types/version.d.ts +2 -2
@@ -1,7 +1,7 @@
1
1
  import { IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '../';
2
2
  import { BaseSize } from '../shared';
3
3
  import { DefineComponent, PropType, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps } from 'vue';
4
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
4
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
5
5
  fit: {
6
6
  type: BooleanConstructor;
7
7
  default: boolean;
@@ -30,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
30
30
  type: PropType<"hover" | "always" | "none">;
31
31
  };
32
32
  header: {
33
- type: PropType<string | Readonly<Partial<ExtractPropTypes<{
33
+ type: PropType<string | Readonly<Partial< ExtractPropTypes<{
34
34
  size: {
35
35
  type: PropType<BaseSize>;
36
36
  default: string;
@@ -54,7 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
54
54
  }>>> | null>;
55
55
  };
56
56
  body: {
57
- type: PropType<Readonly<Partial<ExtractPropTypes<{
57
+ type: PropType<Readonly<Partial< ExtractPropTypes<{
58
58
  tag: {
59
59
  type: StringConstructor;
60
60
  default: string;
@@ -105,7 +105,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
105
105
  default: boolean;
106
106
  };
107
107
  alignSelf: {
108
- type: PropType<ContainerAlignItems | "auto">;
108
+ type: PropType< ContainerAlignItems | "auto">;
109
109
  default: string;
110
110
  };
111
111
  overflow: {
@@ -124,7 +124,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
124
124
  }>>>>;
125
125
  };
126
126
  footer: {
127
- type: PropType<Readonly<Partial<ExtractPropTypes<{
127
+ type: PropType<Readonly<Partial< ExtractPropTypes<{
128
128
  tag: {
129
129
  type: StringConstructor;
130
130
  default: string;
@@ -175,7 +175,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
175
175
  default: boolean;
176
176
  };
177
177
  alignSelf: {
178
- type: PropType<ContainerAlignItems | "auto">;
178
+ type: PropType< ContainerAlignItems | "auto">;
179
179
  default: string;
180
180
  };
181
181
  overflow: {
@@ -195,7 +195,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
195
195
  };
196
196
  }, {
197
197
  bodyRef: Ref<any>;
198
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
198
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
199
199
  fit: {
200
200
  type: BooleanConstructor;
201
201
  default: boolean;
@@ -224,7 +224,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
224
224
  type: PropType<"hover" | "always" | "none">;
225
225
  };
226
226
  header: {
227
- type: PropType<string | Readonly<Partial<ExtractPropTypes<{
227
+ type: PropType<string | Readonly<Partial< ExtractPropTypes<{
228
228
  size: {
229
229
  type: PropType<BaseSize>;
230
230
  default: string;
@@ -248,7 +248,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
248
248
  }>>> | null>;
249
249
  };
250
250
  body: {
251
- type: PropType<Readonly<Partial<ExtractPropTypes<{
251
+ type: PropType<Readonly<Partial< ExtractPropTypes<{
252
252
  tag: {
253
253
  type: StringConstructor;
254
254
  default: string;
@@ -299,7 +299,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
299
299
  default: boolean;
300
300
  };
301
301
  alignSelf: {
302
- type: PropType<ContainerAlignItems | "auto">;
302
+ type: PropType< ContainerAlignItems | "auto">;
303
303
  default: string;
304
304
  };
305
305
  overflow: {
@@ -318,7 +318,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
318
318
  }>>>>;
319
319
  };
320
320
  footer: {
321
- type: PropType<Readonly<Partial<ExtractPropTypes<{
321
+ type: PropType<Readonly<Partial< ExtractPropTypes<{
322
322
  tag: {
323
323
  type: StringConstructor;
324
324
  default: string;
@@ -369,7 +369,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
369
369
  default: boolean;
370
370
  };
371
371
  alignSelf: {
372
- type: PropType<ContainerAlignItems | "auto">;
372
+ type: PropType< ContainerAlignItems | "auto">;
373
373
  default: string;
374
374
  };
375
375
  overflow: {
@@ -1,3 +1,4 @@
1
- import XPanel from "./Panel";
1
+ import { default as XPanel } from "./Panel";
2
+
2
3
  export { XPanel };
3
4
  export * from './types';
@@ -1,6 +1,7 @@
1
1
  import { IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '../';
2
- import { ExtractPropTypes, PropType } from 'vue';
3
- import type { ComponentPropsType, BaseSize } from '../shared';
2
+ import { ComponentPropsType, BaseSize } from '../shared';
3
+ import { PropType, ExtractPropTypes } from 'vue';
4
+
4
5
  export declare const panelProps: {
5
6
  /**
6
7
  * 宽高自适应
@@ -57,7 +58,7 @@ export declare const panelProps: {
57
58
  * 头部设置
58
59
  */
59
60
  header: {
60
- type: PropType<string | Readonly<Partial<ExtractPropTypes<{
61
+ type: PropType<string | Readonly<Partial< ExtractPropTypes<{
61
62
  size: {
62
63
  type: PropType<BaseSize>;
63
64
  default: string;
@@ -73,7 +74,7 @@ export declare const panelProps: {
73
74
  * 指定高度,fit 为true失效
74
75
  */
75
76
  icon: {
76
- type: PropType<IconParam>;
77
+ type: PropType< IconParam>;
77
78
  };
78
79
  border: {
79
80
  type: BooleanConstructor;
@@ -84,7 +85,7 @@ export declare const panelProps: {
84
85
  }>>> | null>;
85
86
  };
86
87
  body: {
87
- type: PropType<Readonly<Partial<ExtractPropTypes<{
88
+ type: PropType<Readonly<Partial< ExtractPropTypes<{
88
89
  /**
89
90
  * 阴影设置
90
91
  */
@@ -110,23 +111,23 @@ export declare const panelProps: {
110
111
  type: BooleanConstructor;
111
112
  };
112
113
  direction: {
113
- type: PropType<ContainerDirection>;
114
+ type: PropType< ContainerDirection>;
114
115
  default: string;
115
116
  };
116
117
  wrap: {
117
- type: PropType<ContainerWrap>;
118
+ type: PropType< ContainerWrap>;
118
119
  default: string;
119
120
  };
120
121
  justify: {
121
- type: PropType<ContainerJustifyContent>;
122
+ type: PropType< ContainerJustifyContent>;
122
123
  default: string;
123
124
  };
124
125
  align: {
125
- type: PropType<ContainerAlignItems>;
126
+ type: PropType< ContainerAlignItems>;
126
127
  default: string;
127
128
  };
128
129
  alignContent: {
129
- type: PropType<ContainerAlignContent>;
130
+ type: PropType< ContainerAlignContent>;
130
131
  default: string;
131
132
  };
132
133
  grow: {
@@ -138,7 +139,7 @@ export declare const panelProps: {
138
139
  default: boolean;
139
140
  };
140
141
  alignSelf: {
141
- type: PropType<ContainerAlignItems | "auto">;
142
+ type: PropType< ContainerAlignItems | "auto">;
142
143
  default: string;
143
144
  };
144
145
  overflow: {
@@ -157,7 +158,7 @@ export declare const panelProps: {
157
158
  }>>>>;
158
159
  };
159
160
  footer: {
160
- type: PropType<Readonly<Partial<ExtractPropTypes<{
161
+ type: PropType<Readonly<Partial< ExtractPropTypes<{
161
162
  /**
162
163
  * 阴影设置
163
164
  */
@@ -183,23 +184,23 @@ export declare const panelProps: {
183
184
  type: BooleanConstructor;
184
185
  };
185
186
  direction: {
186
- type: PropType<ContainerDirection>;
187
+ type: PropType< ContainerDirection>;
187
188
  default: string;
188
189
  };
189
190
  wrap: {
190
- type: PropType<ContainerWrap>;
191
+ type: PropType< ContainerWrap>;
191
192
  default: string;
192
193
  };
193
194
  justify: {
194
- type: PropType<ContainerJustifyContent>;
195
+ type: PropType< ContainerJustifyContent>;
195
196
  default: string;
196
197
  };
197
198
  align: {
198
- type: PropType<ContainerAlignItems>;
199
+ type: PropType< ContainerAlignItems>;
199
200
  default: string;
200
201
  };
201
202
  alignContent: {
202
- type: PropType<ContainerAlignContent>;
203
+ type: PropType< ContainerAlignContent>;
203
204
  default: string;
204
205
  };
205
206
  grow: {
@@ -211,7 +212,7 @@ export declare const panelProps: {
211
212
  default: boolean;
212
213
  };
213
214
  alignSelf: {
214
- type: PropType<ContainerAlignItems | "auto">;
215
+ type: PropType< ContainerAlignItems | "auto">;
215
216
  default: string;
216
217
  };
217
218
  overflow: {
@@ -1,5 +1,6 @@
1
- import type { ExtractPropTypes } from 'vue';
2
- import type { MenuProps } from './menu';
1
+ import { MenuProps } from './menu';
2
+ import { ExtractPropTypes } from 'vue';
3
+
3
4
  export interface MaskProject {
4
5
  id?: string;
5
6
  name?: string;
@@ -16,7 +16,7 @@ declare const _default: DefineComponent<{
16
16
  type: StringConstructor;
17
17
  default: string;
18
18
  };
19
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
19
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
20
20
  name: {
21
21
  type: StringConstructor;
22
22
  default: string;
@@ -1,3 +1,4 @@
1
- import XStartup from "./Startup";
1
+ import { default as XStartup } from "./Startup";
2
+
2
3
  export { XStartup };
3
4
  export * from './types';
@@ -1,4 +1,5 @@
1
- import type { ComponentPropsType } from '../shared';
1
+ import { ComponentPropsType } from '../shared';
2
+
2
3
  export declare const startupProps: {
3
4
  name: {
4
5
  type: StringConstructor;
@@ -3,9 +3,10 @@ import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
3
3
  import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
4
4
  import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
5
5
  import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
6
- import { IconParam, ActionMode, type ActionMenuItem } from '../';
7
- import { type TabsItem } from './types';
8
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
6
+ import { TabsItem } from './types';
7
+ import { ActionMenuItem, IconParam, ActionMode } from '../';
8
+
9
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
9
10
  items: {
10
11
  type: PropType<TabsItem[]>;
11
12
  default(): never[];
@@ -14,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
14
15
  type: BooleanConstructor;
15
16
  };
16
17
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
- actionClick: (props: Readonly<Partial<ExtractPropTypes<{
18
+ actionClick: (props: Readonly<Partial< ExtractPropTypes<{
18
19
  name: {
19
20
  type: StringConstructor;
20
21
  };
@@ -35,13 +36,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
35
36
  type: PropType<ActionMenuItem[]>;
36
37
  };
37
38
  tooltip: {
38
- type: PropType<string | Partial<ElTooltipProps>>;
39
+ type: PropType<string | Partial< ElTooltipProps>>;
39
40
  };
40
41
  badge: {
41
- type: PropType<string | number | Partial<BadgeProps>>;
42
+ type: PropType<string | number | Partial< BadgeProps>>;
42
43
  };
43
44
  dropdown: {
44
- type: PropType<Partial<ExtractPropTypes<{
45
+ type: PropType<Partial< ExtractPropTypes<{
45
46
  readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
46
47
  readonly effect: {
47
48
  readonly default: "light";
@@ -80,7 +81,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
80
81
  }>>>;
81
82
  };
82
83
  button: {
83
- type: PropType<Partial<ButtonProps>>;
84
+ type: PropType<Partial< ButtonProps>>;
84
85
  };
85
86
  disabled: {
86
87
  type: PropType<boolean | (() => boolean)>;
@@ -102,7 +103,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
102
103
  };
103
104
  }>>>) => void;
104
105
  actionCommand: (item: ActionMenuItem) => void;
105
- }, string, PublicProps, Readonly<ExtractPropTypes<{
106
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
106
107
  items: {
107
108
  type: PropType<TabsItem[]>;
108
109
  default(): never[];
@@ -111,7 +112,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
111
112
  type: BooleanConstructor;
112
113
  };
113
114
  }>> & {
114
- onActionClick?: ((props: Readonly<Partial<ExtractPropTypes<{
115
+ onActionClick?: ((props: Readonly<Partial< ExtractPropTypes<{
115
116
  name: {
116
117
  type: StringConstructor;
117
118
  };
@@ -132,13 +133,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
132
133
  type: PropType<ActionMenuItem[]>;
133
134
  };
134
135
  tooltip: {
135
- type: PropType<string | Partial<ElTooltipProps>>;
136
+ type: PropType<string | Partial< ElTooltipProps>>;
136
137
  };
137
138
  badge: {
138
- type: PropType<string | number | Partial<BadgeProps>>;
139
+ type: PropType<string | number | Partial< BadgeProps>>;
139
140
  };
140
141
  dropdown: {
141
- type: PropType<Partial<ExtractPropTypes<{
142
+ type: PropType<Partial< ExtractPropTypes<{
142
143
  readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
143
144
  readonly effect: {
144
145
  readonly default: "light";
@@ -177,7 +178,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
177
178
  }>>>;
178
179
  };
179
180
  button: {
180
- type: PropType<Partial<ButtonProps>>;
181
+ type: PropType<Partial< ButtonProps>>;
181
182
  };
182
183
  disabled: {
183
184
  type: PropType<boolean | (() => boolean)>;
@@ -211,7 +212,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
211
212
  disabled?: boolean | undefined;
212
213
  closable?: boolean | undefined;
213
214
  lazy?: boolean | undefined;
214
- actions?: Readonly<Partial<ExtractPropTypes<{
215
+ actions?: Readonly<Partial< ExtractPropTypes<{
215
216
  name: {
216
217
  type: StringConstructor;
217
218
  };
@@ -232,13 +233,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
232
233
  type: PropType<ActionMenuItem[]>;
233
234
  };
234
235
  tooltip: {
235
- type: PropType<string | Partial<ElTooltipProps>>;
236
+ type: PropType<string | Partial< ElTooltipProps>>;
236
237
  };
237
238
  badge: {
238
- type: PropType<string | number | Partial<BadgeProps>>;
239
+ type: PropType<string | number | Partial< BadgeProps>>;
239
240
  };
240
241
  dropdown: {
241
- type: PropType<Partial<ExtractPropTypes<{
242
+ type: PropType<Partial< ExtractPropTypes<{
242
243
  readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
243
244
  readonly effect: {
244
245
  readonly default: "light";
@@ -277,7 +278,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
277
278
  }>>>;
278
279
  };
279
280
  button: {
280
- type: PropType<Partial<ButtonProps>>;
281
+ type: PropType<Partial< ButtonProps>>;
281
282
  };
282
283
  disabled: {
283
284
  type: PropType<boolean | (() => boolean)>;
@@ -309,7 +310,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
309
310
  disabled?: boolean | undefined;
310
311
  closable?: boolean | undefined;
311
312
  lazy?: boolean | undefined;
312
- actions?: Readonly<Partial<ExtractPropTypes<{
313
+ actions?: Readonly<Partial< ExtractPropTypes<{
313
314
  name: {
314
315
  type: StringConstructor;
315
316
  };
@@ -330,13 +331,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
330
331
  type: PropType<ActionMenuItem[]>;
331
332
  };
332
333
  tooltip: {
333
- type: PropType<string | Partial<ElTooltipProps>>;
334
+ type: PropType<string | Partial< ElTooltipProps>>;
334
335
  };
335
336
  badge: {
336
- type: PropType<string | number | Partial<BadgeProps>>;
337
+ type: PropType<string | number | Partial< BadgeProps>>;
337
338
  };
338
339
  dropdown: {
339
- type: PropType<Partial<ExtractPropTypes<{
340
+ type: PropType<Partial< ExtractPropTypes<{
340
341
  readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
341
342
  readonly effect: {
342
343
  readonly default: "light";
@@ -375,7 +376,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
375
376
  }>>>;
376
377
  };
377
378
  button: {
378
- type: PropType<Partial<ButtonProps>>;
379
+ type: PropType<Partial< ButtonProps>>;
379
380
  };
380
381
  disabled: {
381
382
  type: PropType<boolean | (() => boolean)>;
@@ -1,3 +1,4 @@
1
- import XTabs from "./Tabs";
1
+ import { default as XTabs } from "./Tabs";
2
+
2
3
  export { XTabs };
3
4
  export * from './types';
@@ -1,6 +1,7 @@
1
- import type { PropType } from 'vue';
2
- import type { ComponentPropsType } from '../shared';
3
- import type { IconParam, ActionProps, ActionMenuItem } from '../';
1
+ import { IconParam, ActionProps, ActionMenuItem } from '../';
2
+ import { ComponentPropsType } from '../shared';
3
+ import { PropType } from 'vue';
4
+
4
5
  export interface TabsItem {
5
6
  label: string;
6
7
  name?: string | number;
@@ -1,5 +1,5 @@
1
1
  import { DefineComponent, Ref, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
2
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
2
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
3
3
  stringProp: {
4
4
  type: StringConstructor;
5
5
  };
@@ -36,7 +36,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
36
36
  data: Ref<any>;
37
37
  change: (params: any) => void;
38
38
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
39
- click: (props: Readonly<Partial<ExtractPropTypes<{
39
+ click: (props: Readonly<Partial< ExtractPropTypes<{
40
40
  stringProp: {
41
41
  type: StringConstructor;
42
42
  };
@@ -68,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
68
68
  type: StringConstructor;
69
69
  };
70
70
  }>>>) => void;
71
- submit: (props: Readonly<Partial<ExtractPropTypes<{
71
+ submit: (props: Readonly<Partial< ExtractPropTypes<{
72
72
  stringProp: {
73
73
  type: StringConstructor;
74
74
  };
@@ -103,7 +103,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
103
103
  change: (data: any) => void;
104
104
  "update:modelValue": (value?: string | undefined) => void;
105
105
  "update:syncProp": (value?: string | undefined) => void;
106
- }, string, PublicProps, Readonly<ExtractPropTypes<{
106
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
107
107
  stringProp: {
108
108
  type: StringConstructor;
109
109
  };
@@ -136,7 +136,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
136
136
  };
137
137
  }>> & {
138
138
  onChange?: ((data: any) => any) | undefined;
139
- onSubmit?: ((props: Readonly<Partial<ExtractPropTypes<{
139
+ onSubmit?: ((props: Readonly<Partial< ExtractPropTypes<{
140
140
  stringProp: {
141
141
  type: StringConstructor;
142
142
  };
@@ -168,7 +168,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
168
168
  type: StringConstructor;
169
169
  };
170
170
  }>>>) => any) | undefined;
171
- onClick?: ((props: Readonly<Partial<ExtractPropTypes<{
171
+ onClick?: ((props: Readonly<Partial< ExtractPropTypes<{
172
172
  stringProp: {
173
173
  type: StringConstructor;
174
174
  };
@@ -1,3 +1,4 @@
1
- import XTest from "./Test";
1
+ import { default as XTest } from "./Test";
2
+
2
3
  export { XTest };
3
4
  export * from './types';
@@ -1,4 +1,5 @@
1
- import type { ComponentPropsType } from '../shared';
1
+ import { ComponentPropsType } from '../shared';
2
+
2
3
  export declare const testProps: {
3
4
  stringProp: {
4
5
  type: StringConstructor;
@@ -1,5 +1,6 @@
1
- import { type Directive, type MaybeRef } from 'vue';
2
- import { type UseDraggableOptions } from '@vueuse/core';
1
+ import { UseDraggableOptions } from '@vueuse/core';
2
+ import { Directive, MaybeRef } from 'vue';
3
+
3
4
  declare global {
4
5
  interface HTMLElement {
5
6
  __draggable__?: Draggable | null;
@@ -1,5 +1,6 @@
1
- import { type Directive, type Ref } from 'vue';
2
- import { useMouseInElement, type Fn } from '@vueuse/core';
1
+ import { useMouseInElement, Fn } from '@vueuse/core';
2
+ import { Directive, Ref } from 'vue';
3
+
3
4
  declare global {
4
5
  interface HTMLElement {
5
6
  __resizable__?: Resizable | null;
@@ -1,3 +1,4 @@
1
- import { ComputedRef, type MaybeRef } from 'vue';
1
+ import { MaybeRef, ComputedRef } from 'vue';
2
+
2
3
  export type IUseDisabled = MaybeRef<undefined | boolean | ((...args: any[]) => boolean)>;
3
4
  export declare function useDisabled(disabled: IUseDisabled, params?: any): ComputedRef<boolean>;
@@ -1,4 +1,5 @@
1
- import { type ComputedRef, type MaybeRef } from 'vue';
2
- import { type IconParam, type IconProps } from '../components';
1
+ import { IconParam, IconProps } from '../components';
2
+ import { ComputedRef, MaybeRef } from 'vue';
3
+
3
4
  export declare function useIconProps(iconRef: MaybeRef<IconParam | undefined>): ComputedRef<IconProps | null>;
4
5
  export declare function useIcon(icon: MaybeRef<IconParam | undefined>): Record<string, any> | undefined;
@@ -1,4 +1,5 @@
1
- import { type MaybeRef, type ShallowRef, type Ref } from 'vue';
1
+ import { MaybeRef, ShallowRef, Ref } from 'vue';
2
+
2
3
  export interface UseLoaderResult<T> {
3
4
  data: ShallowRef<T>;
4
5
  loading: Ref<boolean>;
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  export { version as VTJ_UI_VERSION } from './version';
2
3
  export * from './components';
3
4
  export * from './directives';
package/types/list.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- import type { DefineComponent } from 'vue';
1
+ import { DefineComponent } from 'vue';
2
+
2
3
  export declare const components: DefineComponent<any, any, any, any>[];
@@ -1,4 +1,5 @@
1
- import type { App } from 'vue';
1
+ import { App } from 'vue';
2
+
2
3
  export declare const makeInstaller: (components?: any[]) => {
3
4
  install: (app: App) => void;
4
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.7.27
5
+ * @version 0.7.29
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.7.27";
8
+ export declare const version = "0.7.29";