@vtj/ui 0.6.25 → 0.7.0

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 (87) hide show
  1. package/LICENSE +21 -21
  2. package/dist/index.cjs +7 -0
  3. package/dist/index.iife.js +7 -0
  4. package/dist/index.mjs +4165 -0
  5. package/dist/index.umd.js +7 -0
  6. package/dist/style.css +1 -0
  7. package/package.json +23 -21
  8. package/types/components/action/Action.d.ts +23 -22
  9. package/types/components/action/Trigger.d.ts +15 -14
  10. package/types/components/action/hooks.d.ts +7 -6
  11. package/types/components/action/types.d.ts +14 -10
  12. package/types/components/action-bar/ActionBar.d.ts +41 -40
  13. package/types/components/action-bar/types.d.ts +10 -11
  14. package/types/components/chart/Chart.d.ts +4 -4
  15. package/types/components/chart/types.d.ts +3 -3
  16. package/types/components/chart/useChart.d.ts +5 -5
  17. package/types/components/container/Container.d.ts +7 -7
  18. package/types/components/container/types.d.ts +3 -3
  19. package/types/components/data-item/DataItem.d.ts +23 -22
  20. package/types/components/data-item/types.d.ts +3 -3
  21. package/types/components/dialog/Dialog.d.ts +9 -9
  22. package/types/components/dialog/create.d.ts +2 -2
  23. package/types/components/dialog/hooks.d.ts +5 -5
  24. package/types/components/dialog/types.d.ts +4 -4
  25. package/types/components/dialog-form/DialogForm.d.ts +3 -3
  26. package/types/components/dialog-form/types.d.ts +3 -3
  27. package/types/components/field/Field.d.ts +17 -4
  28. package/types/components/field/editors/CheckboxEditor.d.ts +6 -3
  29. package/types/components/field/editors/RadioEditor.d.ts +6 -3
  30. package/types/components/field/editors/SelectEditor.d.ts +6 -3
  31. package/types/components/field/hooks/useEditor.d.ts +3 -3
  32. package/types/components/field/types.d.ts +16 -4
  33. package/types/components/form/Form.d.ts +13 -3
  34. package/types/components/form/types.d.ts +10 -2
  35. package/types/components/header/Header.d.ts +2 -2
  36. package/types/components/header/types.d.ts +4 -3
  37. package/types/components/icon/Icon.d.ts +2 -2
  38. package/types/components/index.d.ts +2 -2
  39. package/types/components/list/List.d.ts +109 -0
  40. package/types/components/list/index.d.ts +3 -0
  41. package/types/components/list/types.d.ts +58 -0
  42. package/types/components/mask/Mask.d.ts +23 -22
  43. package/types/components/mask/components/Avatar.d.ts +2 -2
  44. package/types/components/mask/components/Brand.d.ts +5 -2
  45. package/types/components/mask/components/Content.d.ts +3 -3
  46. package/types/components/mask/components/Menu.d.ts +6 -3
  47. package/types/components/mask/components/Sidebar.d.ts +2 -2
  48. package/types/components/mask/components/SwitchBar.d.ts +5 -2
  49. package/types/components/mask/components/Tabs.d.ts +4 -4
  50. package/types/components/mask/components/ThemeSwitch.d.ts +2 -2
  51. package/types/components/mask/components/Toolbar.d.ts +7 -4
  52. package/types/components/mask/defineTab.d.ts +1 -1
  53. package/types/components/mask/hooks/useContent.d.ts +2 -2
  54. package/types/components/mask/hooks/useHome.d.ts +1 -1
  55. package/types/components/mask/hooks/useMenus.d.ts +3 -3
  56. package/types/components/mask/hooks/useSidebar.d.ts +1 -2
  57. package/types/components/mask/hooks/useTabs.d.ts +4 -4
  58. package/types/components/mask/types.d.ts +3 -3
  59. package/types/components/menu/Menu.d.ts +6 -3
  60. package/types/components/menu/MenuItem.d.ts +3 -3
  61. package/types/components/menu/types.d.ts +2 -2
  62. package/types/components/panel/Panel.d.ts +6 -24
  63. package/types/components/panel/types.d.ts +9 -11
  64. package/types/components/shared.d.ts +2 -1
  65. package/types/components/tabs/Tabs.d.ts +3 -3
  66. package/types/components/tabs/types.d.ts +3 -3
  67. package/types/components/test/Test.d.ts +244 -0
  68. package/types/components/test/index.d.ts +3 -0
  69. package/types/components/test/types.d.ts +41 -0
  70. package/types/directives/vDraggable.d.ts +2 -2
  71. package/types/directives/vResizable.d.ts +2 -2
  72. package/types/hooks/index.d.ts +1 -0
  73. package/types/hooks/useDisabled.d.ts +1 -1
  74. package/types/hooks/useIcon.d.ts +3 -3
  75. package/types/index.d.ts +1 -4
  76. package/types/install.d.ts +4 -0
  77. package/types/list.d.ts +1 -1
  78. package/types/utils/util.d.ts +1 -3
  79. package/types/version.d.ts +8 -1
  80. package/cdn/index.js +0 -1
  81. package/cdn/style.css +0 -1
  82. package/lib/index.js +0 -3830
  83. package/lib/style.css +0 -1
  84. package/types/components/simple-mask/SimpleMask.d.ts +0 -43
  85. package/types/components/simple-mask/index.d.ts +0 -2
  86. package/types/components/startup/Startup.d.ts +0 -38
  87. package/types/components/startup/index.d.ts +0 -2
@@ -1,5 +1,5 @@
1
1
  import { ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from './types';
2
- import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
3
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
4
4
  tag: {
5
5
  type: StringConstructor;
@@ -51,7 +51,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
51
51
  default: boolean;
52
52
  };
53
53
  alignSelf: {
54
- type: PropType<"auto" | ContainerAlignItems>;
54
+ type: PropType<ContainerAlignItems | "auto">;
55
55
  default: string;
56
56
  };
57
57
  overflow: {
@@ -67,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
67
67
  autoPointer: {
68
68
  type: BooleanConstructor;
69
69
  };
70
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
70
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
71
71
  tag: {
72
72
  type: StringConstructor;
73
73
  default: string;
@@ -118,7 +118,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
118
118
  default: boolean;
119
119
  };
120
120
  alignSelf: {
121
- type: PropType<"auto" | ContainerAlignItems>;
121
+ type: PropType<ContainerAlignItems | "auto">;
122
122
  default: string;
123
123
  };
124
124
  overflow: {
@@ -135,19 +135,19 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
135
135
  type: BooleanConstructor;
136
136
  };
137
137
  }>>, {
138
- tag: string;
139
- direction: ContainerDirection;
140
138
  padding: boolean;
139
+ tag: string;
141
140
  wrap: ContainerWrap;
142
141
  fit: boolean;
143
142
  flex: boolean;
144
143
  inline: boolean;
144
+ direction: ContainerDirection;
145
145
  justify: ContainerJustifyContent;
146
146
  align: ContainerAlignItems;
147
147
  alignContent: ContainerAlignContent;
148
148
  grow: boolean;
149
149
  shrink: boolean;
150
- alignSelf: "auto" | ContainerAlignItems;
150
+ alignSelf: ContainerAlignItems | "auto";
151
151
  gap: boolean;
152
152
  autoPointer: boolean;
153
153
  }, {}>, {
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue';
2
- import { ComponentPropsType } from '../shared';
1
+ import type { PropType } from 'vue';
2
+ import type { ComponentPropsType } from '../shared';
3
3
  import type Container from "./Container";
4
4
  export type ContainerDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
5
5
  export type ContainerWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
@@ -99,7 +99,7 @@ export declare const containerProps: {
99
99
  * 单个项目有与其他项目不一样的对齐方式。可覆盖容器的align-items属性
100
100
  */
101
101
  alignSelf: {
102
- type: PropType<"auto" | ContainerAlignItems>;
102
+ type: PropType<ContainerAlignItems | "auto">;
103
103
  default: string;
104
104
  };
105
105
  /**
@@ -1,8 +1,9 @@
1
1
  import { BaseSize, BaseType } from '../shared';
2
- import { EpPropFinalized, Arrayable, EpPropMergeType } from 'element-plus/es/utils';
3
- import { ElTooltipProps, BadgeProps, TooltipTriggerType, Placement, Options, ButtonProps } from 'element-plus';
4
- import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
5
- import { IconParam, ActionBarItems, ActionMode, ActionBarProps, ActionMenuItem } from '../';
2
+ import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
3
+ import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
4
+ import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
5
+ import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
6
+ import { IconParam, ActionBarItems, ActionMode, type ActionBarProps, type ActionMenuItem } from '../';
6
7
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
7
8
  direction: {
8
9
  type: PropType<"row" | "column">;
@@ -70,7 +71,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
70
71
  };
71
72
  dropdown: {
72
73
  type: PropType<Partial<ExtractPropTypes<{
73
- readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
74
+ 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>;
74
75
  readonly effect: {
75
76
  readonly default: "light";
76
77
  readonly type: PropType<string>;
@@ -84,8 +85,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
84
85
  readonly validator: ((val: unknown) => boolean) | undefined;
85
86
  __epPropKey: true;
86
87
  };
87
- readonly placement: EpPropFinalized<(new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
88
- readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
88
+ readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
89
+ readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
89
90
  readonly id: StringConstructor;
90
91
  readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
91
92
  readonly splitButton: BooleanConstructor;
@@ -122,7 +123,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
122
123
  default: string;
123
124
  };
124
125
  background: {
125
- type: PropType<"hover" | "always">;
126
+ type: PropType<"hover" | "always" | "none">;
126
127
  default: string;
127
128
  };
128
129
  circle: {
@@ -157,7 +158,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
157
158
  };
158
159
  dropdown: {
159
160
  type: PropType<Partial<ExtractPropTypes<{
160
- readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
161
+ 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>;
161
162
  readonly effect: {
162
163
  readonly default: "light";
163
164
  readonly type: PropType<string>;
@@ -171,8 +172,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
171
172
  readonly validator: ((val: unknown) => boolean) | undefined;
172
173
  __epPropKey: true;
173
174
  };
174
- readonly placement: EpPropFinalized<(new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
175
- readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
175
+ readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
176
+ readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
176
177
  readonly id: StringConstructor;
177
178
  readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
178
179
  readonly splitButton: BooleanConstructor;
@@ -209,7 +210,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
209
210
  default: string;
210
211
  };
211
212
  background: {
212
- type: PropType<"hover" | "always">;
213
+ type: PropType<"hover" | "always" | "none">;
213
214
  default: string;
214
215
  };
215
216
  circle: {
@@ -218,7 +219,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
218
219
  }>>>, menu: ActionMenuItem) => void;
219
220
  imageClick: () => void;
220
221
  titleClick: () => void;
221
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
222
+ }, string, PublicProps, Readonly<ExtractPropTypes<{
222
223
  direction: {
223
224
  type: PropType<"row" | "column">;
224
225
  default: string;
@@ -285,7 +286,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
285
286
  };
286
287
  dropdown: {
287
288
  type: PropType<Partial<ExtractPropTypes<{
288
- readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
289
+ 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>;
289
290
  readonly effect: {
290
291
  readonly default: "light";
291
292
  readonly type: PropType<string>;
@@ -299,8 +300,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
299
300
  readonly validator: ((val: unknown) => boolean) | undefined;
300
301
  __epPropKey: true;
301
302
  };
302
- readonly placement: EpPropFinalized<(new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
303
- readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
303
+ readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
304
+ readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
304
305
  readonly id: StringConstructor;
305
306
  readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
306
307
  readonly splitButton: BooleanConstructor;
@@ -337,7 +338,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
337
338
  default: string;
338
339
  };
339
340
  background: {
340
- type: PropType<"hover" | "always">;
341
+ type: PropType<"hover" | "always" | "none">;
341
342
  default: string;
342
343
  };
343
344
  circle: {
@@ -372,7 +373,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
372
373
  };
373
374
  dropdown: {
374
375
  type: PropType<Partial<ExtractPropTypes<{
375
- readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "hover" | "focus" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
376
+ 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>;
376
377
  readonly effect: {
377
378
  readonly default: "light";
378
379
  readonly type: PropType<string>;
@@ -386,8 +387,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
386
387
  readonly validator: ((val: unknown) => boolean) | undefined;
387
388
  __epPropKey: true;
388
389
  };
389
- readonly placement: EpPropFinalized<(new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "right" | "left" | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
390
- readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
390
+ readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
391
+ readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
391
392
  readonly id: StringConstructor;
392
393
  readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
393
394
  readonly splitButton: BooleanConstructor;
@@ -424,7 +425,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
424
425
  default: string;
425
426
  };
426
427
  background: {
427
- type: PropType<"hover" | "always">;
428
+ type: PropType<"hover" | "always" | "none">;
428
429
  default: string;
429
430
  };
430
431
  circle: {
@@ -434,8 +435,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
434
435
  onImageClick?: (() => any) | undefined;
435
436
  onTitleClick?: (() => any) | undefined;
436
437
  }, {
437
- direction: "row" | "column";
438
438
  split: boolean;
439
+ direction: "row" | "column";
439
440
  }, {}>, {
440
441
  image?(_: {}): any;
441
442
  title?(_: {}): any;
@@ -1,6 +1,6 @@
1
- import { PropType } from 'vue';
2
- import { ComponentPropsType } from '../shared';
3
- import { IconParam, ActionBarItems, ActionBarProps, ActionProps, ActionMenuItem } from '../';
1
+ import type { PropType } from 'vue';
2
+ import type { ComponentPropsType } from '../shared';
3
+ import type { IconParam, ActionBarItems, ActionBarProps, ActionProps, ActionMenuItem } from '../';
4
4
  export declare const dataItemProps: {
5
5
  direction: {
6
6
  type: PropType<"row" | "column">;
@@ -3,7 +3,7 @@ import { DialogMode } from './types';
3
3
  import { DraggableOptions, ResizableOptions } from '../../directives';
4
4
  import { BaseSize } from '../shared';
5
5
  import { IconParam } from '../';
6
- import { DefineComponent, PropType, VNode, RendererNode, RendererElement, ComputedRef, Ref, ComponentOptionsMixin, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
6
+ import { DefineComponent, PropType, VNode, RendererNode, RendererElement, ComputedRef, Ref, ComponentOptionsMixin, ComponentInternalInstance, PublicProps, ExtractPropTypes } from 'vue';
7
7
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
8
8
  modelValue: {
9
9
  type: BooleanConstructor;
@@ -116,8 +116,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
116
116
  componentInstance: Record<string, any>;
117
117
  } | undefined;
118
118
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
119
- submit: () => void;
120
119
  open: (instance: ComponentInternalInstance) => void;
120
+ submit: () => void;
121
121
  cancel: () => void;
122
122
  close: () => void;
123
123
  resizing: (dir: string, mie: {
@@ -168,7 +168,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
168
168
  isOutside: Ref<boolean>;
169
169
  stop: () => void;
170
170
  }) => void;
171
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
171
+ }, string, PublicProps, Readonly<ExtractPropTypes<{
172
172
  modelValue: {
173
173
  type: BooleanConstructor;
174
174
  default: boolean;
@@ -256,6 +256,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
256
256
  };
257
257
  }>> & {
258
258
  onSubmit?: (() => any) | undefined;
259
+ onCancel?: (() => any) | undefined;
260
+ onClose?: (() => any) | undefined;
259
261
  onResizing?: ((dir: string, mie: {
260
262
  x: Ref<number>;
261
263
  y: Ref<number>;
@@ -270,8 +272,6 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
270
272
  stop: () => void;
271
273
  }) => any) | undefined;
272
274
  onOpen?: ((instance: ComponentInternalInstance) => any) | undefined;
273
- onCancel?: (() => any) | undefined;
274
- onClose?: (() => any) | undefined;
275
275
  onNormal?: (() => any) | undefined;
276
276
  onMaximized?: (() => any) | undefined;
277
277
  onMinimized?: (() => any) | undefined;
@@ -308,18 +308,18 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
308
308
  stop: () => void;
309
309
  }) => any) | undefined;
310
310
  }, {
311
- primary: boolean;
312
311
  size: BaseSize;
313
- height: string | number;
314
- width: string | number;
312
+ primary: boolean;
315
313
  mode: DialogMode;
316
- bodyPadding: boolean;
314
+ width: string | number;
315
+ height: string | number;
317
316
  modelValue: boolean;
318
317
  modal: boolean;
319
318
  draggable: boolean | DraggableOptions;
320
319
  closable: boolean;
321
320
  maximizable: boolean;
322
321
  minimizable: boolean;
322
+ bodyPadding: boolean;
323
323
  }, {}>, {
324
324
  actions?(_: {}): any;
325
325
  default?(_: {}): any;
@@ -1,5 +1,5 @@
1
- import { VNode, RendererNode, RendererElement, AppContext } from 'vue';
2
- import { DialogProps } from './types';
1
+ import { VNode, RendererNode, RendererElement, type AppContext } from 'vue';
2
+ import { type DialogProps } from './types';
3
3
  export type CreateDialogProps = DialogProps & {
4
4
  [index: string]: any;
5
5
  };
@@ -1,7 +1,7 @@
1
- import { ComputedRef, MaybeRef } from 'vue';
2
- import { DialogProps, DialogState, DialogMode, DialogEmits } from './types';
3
- import { Emits } from '../';
4
- import { DraggableOptions, ResizableOptions } from '../../directives';
1
+ import { ComputedRef, type MaybeRef } from 'vue';
2
+ import type { DialogProps, DialogState, DialogMode, DialogEmits } from './types';
3
+ import type { Emits } from '../';
4
+ import type { DraggableOptions, ResizableOptions } from '../../directives';
5
5
  export declare function useState(props: DialogProps, wrapper: MaybeRef<HTMLElement>): {
6
6
  state: {
7
7
  mode: DialogMode;
@@ -47,7 +47,7 @@ export declare function useMethods(props: DialogProps, state: DialogState, emit:
47
47
  changeMode: (mode: DialogMode) => void;
48
48
  show: () => void;
49
49
  hide: () => void;
50
- active: () => void;
50
+ active: (e: any) => void;
51
51
  submit: () => void;
52
52
  cancel: () => void;
53
53
  };
@@ -1,8 +1,8 @@
1
1
  import { RendererNode, RendererElement, PropType, VNode, DefineComponent, ComponentInternalInstance } from 'vue';
2
- import { Position } from '@vueuse/core';
3
- import { ComponentPropsType, BaseSize } from '../shared';
4
- import { IconParam } from '../';
5
- import { DraggableOptions, ResizableOptions, UseMouseInElementReturn } from '../../directives';
2
+ import type { Position } from '@vueuse/core';
3
+ import type { ComponentPropsType, BaseSize } from '../shared';
4
+ import type { IconParam } from '../';
5
+ import type { DraggableOptions, ResizableOptions, UseMouseInElementReturn } from '../../directives';
6
6
  export type DialogMode = 'normal' | 'maximized' | 'minimized';
7
7
  export declare const dialogProps: {
8
8
  modelValue: {
@@ -1,7 +1,7 @@
1
1
  import { FormItemRule } from 'element-plus';
2
- import { Arrayable } from 'element-plus/es/utils';
2
+ import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
3
3
  import { BaseSize } from '../shared';
4
- import { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
5
5
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
6
6
  modelValue: {
7
7
  type: BooleanConstructor;
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
39
39
  submit: (model: Record<string, any>) => void;
40
40
  close: () => void;
41
41
  "update:modelValue": (value: boolean) => void;
42
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
42
+ }, string, PublicProps, Readonly<ExtractPropTypes<{
43
43
  modelValue: {
44
44
  type: BooleanConstructor;
45
45
  default: boolean;
@@ -1,7 +1,7 @@
1
1
  import { FormItemRule } from 'element-plus';
2
- import { Arrayable } from 'element-plus/es/utils';
3
- import { PropType } from 'vue';
4
- import { ComponentPropsType, BaseSize } from '../shared';
2
+ import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
3
+ import type { PropType } from 'vue';
4
+ import type { ComponentPropsType, BaseSize } from '../shared';
5
5
  export declare const dialogFormProps: {
6
6
  modelValue: {
7
7
  type: BooleanConstructor;
@@ -1,8 +1,8 @@
1
1
  import { ElTooltipProps } from 'element-plus';
2
2
  import { BaseSize } from '../shared';
3
3
  import { BuiltinFieldEditorType } from './builtin';
4
- import { DefineComponent, PropType, VNode, RendererNode, RendererElement, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
- import { FieldOption, FieldOptionsLoader, FieldEditorProps } from './types';
4
+ import { DefineComponent, PropType, VNode, RendererNode, RendererElement, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
5
+ import { FieldOption, FieldOptionsLoader, type FieldEditorProps } from './types';
6
6
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
7
7
  name: {
8
8
  type: StringConstructor;
@@ -56,8 +56,14 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
56
56
  cascader: {
57
57
  type: PropType<string | string[]>;
58
58
  };
59
+ error: {
60
+ type: StringConstructor;
61
+ };
62
+ tip: {
63
+ type: StringConstructor;
64
+ };
59
65
  }, {
60
- fieldValue: any;
66
+ fieldValue: Ref<any>;
61
67
  itemRef: Ref<any>;
62
68
  editorRef: Ref<any>;
63
69
  focus: () => void;
@@ -67,7 +73,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
67
73
  blur: () => void;
68
74
  change: (value: any) => void;
69
75
  "update:modelValue": (value: any) => void;
70
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
76
+ }, string, PublicProps, Readonly<ExtractPropTypes<{
71
77
  name: {
72
78
  type: StringConstructor;
73
79
  };
@@ -120,6 +126,12 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
120
126
  cascader: {
121
127
  type: PropType<string | string[]>;
122
128
  };
129
+ error: {
130
+ type: StringConstructor;
131
+ };
132
+ tip: {
133
+ type: StringConstructor;
134
+ };
123
135
  }>> & {
124
136
  onFocus?: (() => any) | undefined;
125
137
  onBlur?: (() => any) | undefined;
@@ -144,6 +156,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
144
156
  option?(_: {
145
157
  option: any;
146
158
  }): any;
159
+ tip?(_: {}): any;
147
160
  default?(_: {}): any;
148
161
  }>;
149
162
  export default _default;
@@ -1,5 +1,5 @@
1
- import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
- import { FieldOption } from '../types';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import type { FieldOption } from '../types';
3
3
  export interface Props {
4
4
  options?: FieldOption[];
5
5
  button?: boolean;
@@ -7,7 +7,7 @@ export interface Props {
7
7
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
8
  options: () => FieldOption[];
9
9
  button: boolean;
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
11
  options: () => FieldOption[];
12
12
  button: boolean;
13
13
  }>>>, {
@@ -29,3 +29,6 @@ type __VLS_WithDefaults<P, D> = {
29
29
  default: D[K];
30
30
  }> : P[K];
31
31
  };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -1,5 +1,5 @@
1
- import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
- import { FieldOption } from '../types';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import type { FieldOption } from '../types';
3
3
  export interface Props {
4
4
  options?: FieldOption[];
5
5
  button?: boolean;
@@ -7,7 +7,7 @@ export interface Props {
7
7
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
8
  options: () => FieldOption[];
9
9
  button: boolean;
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
11
  options: () => FieldOption[];
12
12
  button: boolean;
13
13
  }>>>, {
@@ -29,3 +29,6 @@ type __VLS_WithDefaults<P, D> = {
29
29
  default: D[K];
30
30
  }> : P[K];
31
31
  };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -1,11 +1,11 @@
1
- import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
- import { FieldOption } from '../types';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import type { FieldOption } from '../types';
3
3
  export interface Props {
4
4
  options?: FieldOption[];
5
5
  }
6
6
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
7
  options: () => FieldOption[];
8
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
9
  options: () => FieldOption[];
10
10
  }>>>, {
11
11
  options: FieldOption[];
@@ -29,6 +29,9 @@ type __VLS_WithDefaults<P, D> = {
29
29
  default: D[K];
30
30
  }> : P[K];
31
31
  };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
32
35
  type __VLS_WithTemplateSlots<T, S> = T & {
33
36
  new (): {
34
37
  $slots: S;
@@ -1,6 +1,6 @@
1
- import { ComponentInternalInstance, ComputedRef } from 'vue';
2
- import { BuiltinFieldEditor, FieldProps, FieldOption, FieldEmits } from '../types';
3
- import { Emits, FormModel } from '../../';
1
+ import { type ComponentInternalInstance, type ComputedRef } from 'vue';
2
+ import { type BuiltinFieldEditor, type FieldProps, type FieldOption, type FieldEmits } from '../types';
3
+ import type { Emits, FormModel } from '../../';
4
4
  export declare function useOptions(props: FieldProps, cascader: Record<string, any>): Promise<FieldOption[]>;
5
5
  export declare function useEditor(props: FieldProps, emit: Emits<FieldEmits>, fieldVisible: ComputedRef<boolean>, instance: ComponentInternalInstance | null, model: FormModel | null): {
6
6
  editor: ComputedRef<BuiltinFieldEditor>;
@@ -1,8 +1,8 @@
1
1
  import { RendererNode, RendererElement, PropType, VNode } from 'vue';
2
- import { ComponentPropsType, BaseSize } from '../shared';
3
- import { ElTooltipProps } from 'element-plus';
4
- import { BuiltinFieldEditor, BuiltinFieldEditorType, builtinFieldEditors } from './builtin';
5
- import { FormModel } from '../../';
2
+ import type { ComponentPropsType, BaseSize } from '../shared';
3
+ import type { ElTooltipProps } from 'element-plus';
4
+ import { type BuiltinFieldEditor, type BuiltinFieldEditorType, builtinFieldEditors } from './builtin';
5
+ import type { FormModel } from '../../';
6
6
  export { type BuiltinFieldEditor, type BuiltinFieldEditorType, builtinFieldEditors };
7
7
  export interface FieldEditorProps {
8
8
  placeholder?: string;
@@ -119,6 +119,18 @@ export declare const fieldProps: {
119
119
  cascader: {
120
120
  type: PropType<string | string[]>;
121
121
  };
122
+ /**
123
+ * 校验错误信息
124
+ */
125
+ error: {
126
+ type: StringConstructor;
127
+ };
128
+ /**
129
+ * 提示文本
130
+ */
131
+ tip: {
132
+ type: StringConstructor;
133
+ };
122
134
  };
123
135
  export type FieldProps = ComponentPropsType<typeof fieldProps>;
124
136
  export type FieldEmits = {
@@ -1,5 +1,6 @@
1
- import { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
- import { FormModel } from './types';
1
+ import { ElTooltipProps } from 'element-plus';
2
+ import { DefineComponent, PropType, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
+ import { type FormModel } from './types';
3
4
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
4
5
  model: {
5
6
  type: PropType<Record<string, any>>;
@@ -26,6 +27,10 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
26
27
  submitMethod: {
27
28
  type: PropType<(model: FormModel) => Promise<any>>;
28
29
  };
30
+ tooltipMessage: {
31
+ type: PropType<boolean | Partial<ElTooltipProps>>;
32
+ default: undefined;
33
+ };
29
34
  }, {
30
35
  formRef: Ref<any>;
31
36
  model: FormModel;
@@ -35,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
35
40
  reset: () => void;
36
41
  submit: (model: Record<string, any>) => void;
37
42
  change: (model: Record<string, any>) => void;
38
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
43
+ }, string, PublicProps, Readonly<ExtractPropTypes<{
39
44
  model: {
40
45
  type: PropType<Record<string, any>>;
41
46
  default(): any;
@@ -61,6 +66,10 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
61
66
  submitMethod: {
62
67
  type: PropType<(model: FormModel) => Promise<any>>;
63
68
  };
69
+ tooltipMessage: {
70
+ type: PropType<boolean | Partial<ElTooltipProps>>;
71
+ default: undefined;
72
+ };
64
73
  }>> & {
65
74
  onChange?: ((model: Record<string, any>) => any) | undefined;
66
75
  onReset?: (() => any) | undefined;
@@ -69,6 +78,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
69
78
  footer: boolean;
70
79
  inline: boolean;
71
80
  model: Record<string, any>;
81
+ tooltipMessage: boolean | Partial<ElTooltipProps>;
72
82
  submitText: string;
73
83
  resetText: string;
74
84
  }, {}>, {
@@ -1,5 +1,6 @@
1
- import { PropType, InjectionKey, ComponentInternalInstance } from 'vue';
2
- import { ComponentPropsType } from '../shared';
1
+ import type { PropType, InjectionKey, ComponentInternalInstance } from 'vue';
2
+ import type { ElTooltipProps } from 'element-plus';
3
+ import type { ComponentPropsType } from '../shared';
3
4
  import type Form from "./Form";
4
5
  export declare const formProps: {
5
6
  /**
@@ -48,6 +49,13 @@ export declare const formProps: {
48
49
  submitMethod: {
49
50
  type: PropType<(model: FormModel) => Promise<any>>;
50
51
  };
52
+ /**
53
+ * 是否在tooltip显示校验信息
54
+ */
55
+ tooltipMessage: {
56
+ type: PropType<boolean | Partial<ElTooltipProps>>;
57
+ default: undefined;
58
+ };
51
59
  };
52
60
  export type FormProps = ComponentPropsType<typeof formProps>;
53
61
  export type FormEmits = {