@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,6 +1,6 @@
1
1
  import { ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from './types';
2
2
  import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
3
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
4
4
  tag: {
5
5
  type: StringConstructor;
6
6
  default: string;
@@ -51,7 +51,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
51
51
  default: boolean;
52
52
  };
53
53
  alignSelf: {
54
- type: PropType<ContainerAlignItems | "auto">;
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, PublicProps, 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<ContainerAlignItems | "auto">;
121
+ type: PropType< ContainerAlignItems | "auto">;
122
122
  default: string;
123
123
  };
124
124
  overflow: {
@@ -1,3 +1,4 @@
1
- import XContainer from "./Container";
1
+ import { default as XContainer } from "./Container";
2
+
2
3
  export { XContainer };
3
4
  export * from './types';
@@ -1,6 +1,7 @@
1
- import type { PropType } from 'vue';
2
- import type { ComponentPropsType } from '../shared';
3
- import type Container from "./Container";
1
+ import { default as Container } from "./Container";
2
+ import { ComponentPropsType } from '../shared';
3
+ import { PropType } from 'vue';
4
+
4
5
  export type ContainerDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
5
6
  export type ContainerWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
6
7
  export type ContainerJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
@@ -3,8 +3,9 @@ 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, ActionBarItems, ActionMode, type ActionBarProps, type ActionMenuItem } from '../';
7
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
6
+ import { ActionBarProps, ActionMenuItem, IconParam, ActionBarItems, ActionMode } from '../';
7
+
8
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
8
9
  direction: {
9
10
  type: PropType<"row" | "column">;
10
11
  default: string;
@@ -43,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
43
44
  type: FunctionConstructor;
44
45
  };
45
46
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
46
- actionClick: (action: Readonly<Partial<ExtractPropTypes<{
47
+ actionClick: (action: Readonly<Partial< ExtractPropTypes<{
47
48
  name: {
48
49
  type: StringConstructor;
49
50
  };
@@ -64,13 +65,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
64
65
  type: PropType<ActionMenuItem[]>;
65
66
  };
66
67
  tooltip: {
67
- type: PropType<string | Partial<ElTooltipProps>>;
68
+ type: PropType<string | Partial< ElTooltipProps>>;
68
69
  };
69
70
  badge: {
70
- type: PropType<string | number | Partial<BadgeProps>>;
71
+ type: PropType<string | number | Partial< BadgeProps>>;
71
72
  };
72
73
  dropdown: {
73
- type: PropType<Partial<ExtractPropTypes<{
74
+ type: PropType<Partial< ExtractPropTypes<{
74
75
  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>;
75
76
  readonly effect: {
76
77
  readonly default: "light";
@@ -109,7 +110,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
109
110
  }>>>;
110
111
  };
111
112
  button: {
112
- type: PropType<Partial<ButtonProps>>;
113
+ type: PropType<Partial< ButtonProps>>;
113
114
  };
114
115
  disabled: {
115
116
  type: PropType<boolean | (() => boolean)>;
@@ -130,7 +131,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
130
131
  type: BooleanConstructor;
131
132
  };
132
133
  }>>>) => void;
133
- actionCommand: (action: Readonly<Partial<ExtractPropTypes<{
134
+ actionCommand: (action: Readonly<Partial< ExtractPropTypes<{
134
135
  name: {
135
136
  type: StringConstructor;
136
137
  };
@@ -151,13 +152,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
151
152
  type: PropType<ActionMenuItem[]>;
152
153
  };
153
154
  tooltip: {
154
- type: PropType<string | Partial<ElTooltipProps>>;
155
+ type: PropType<string | Partial< ElTooltipProps>>;
155
156
  };
156
157
  badge: {
157
- type: PropType<string | number | Partial<BadgeProps>>;
158
+ type: PropType<string | number | Partial< BadgeProps>>;
158
159
  };
159
160
  dropdown: {
160
- type: PropType<Partial<ExtractPropTypes<{
161
+ type: PropType<Partial< ExtractPropTypes<{
161
162
  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>;
162
163
  readonly effect: {
163
164
  readonly default: "light";
@@ -196,7 +197,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
196
197
  }>>>;
197
198
  };
198
199
  button: {
199
- type: PropType<Partial<ButtonProps>>;
200
+ type: PropType<Partial< ButtonProps>>;
200
201
  };
201
202
  disabled: {
202
203
  type: PropType<boolean | (() => boolean)>;
@@ -219,7 +220,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
219
220
  }>>>, menu: ActionMenuItem) => void;
220
221
  imageClick: () => void;
221
222
  titleClick: () => void;
222
- }, string, PublicProps, Readonly<ExtractPropTypes<{
223
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
223
224
  direction: {
224
225
  type: PropType<"row" | "column">;
225
226
  default: string;
@@ -258,7 +259,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
258
259
  type: FunctionConstructor;
259
260
  };
260
261
  }>> & {
261
- onActionClick?: ((action: Readonly<Partial<ExtractPropTypes<{
262
+ onActionClick?: ((action: Readonly<Partial< ExtractPropTypes<{
262
263
  name: {
263
264
  type: StringConstructor;
264
265
  };
@@ -279,13 +280,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
279
280
  type: PropType<ActionMenuItem[]>;
280
281
  };
281
282
  tooltip: {
282
- type: PropType<string | Partial<ElTooltipProps>>;
283
+ type: PropType<string | Partial< ElTooltipProps>>;
283
284
  };
284
285
  badge: {
285
- type: PropType<string | number | Partial<BadgeProps>>;
286
+ type: PropType<string | number | Partial< BadgeProps>>;
286
287
  };
287
288
  dropdown: {
288
- type: PropType<Partial<ExtractPropTypes<{
289
+ type: PropType<Partial< ExtractPropTypes<{
289
290
  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>;
290
291
  readonly effect: {
291
292
  readonly default: "light";
@@ -324,7 +325,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
324
325
  }>>>;
325
326
  };
326
327
  button: {
327
- type: PropType<Partial<ButtonProps>>;
328
+ type: PropType<Partial< ButtonProps>>;
328
329
  };
329
330
  disabled: {
330
331
  type: PropType<boolean | (() => boolean)>;
@@ -345,7 +346,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
345
346
  type: BooleanConstructor;
346
347
  };
347
348
  }>>>) => any) | undefined;
348
- onActionCommand?: ((action: Readonly<Partial<ExtractPropTypes<{
349
+ onActionCommand?: ((action: Readonly<Partial< ExtractPropTypes<{
349
350
  name: {
350
351
  type: StringConstructor;
351
352
  };
@@ -366,13 +367,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
366
367
  type: PropType<ActionMenuItem[]>;
367
368
  };
368
369
  tooltip: {
369
- type: PropType<string | Partial<ElTooltipProps>>;
370
+ type: PropType<string | Partial< ElTooltipProps>>;
370
371
  };
371
372
  badge: {
372
- type: PropType<string | number | Partial<BadgeProps>>;
373
+ type: PropType<string | number | Partial< BadgeProps>>;
373
374
  };
374
375
  dropdown: {
375
- type: PropType<Partial<ExtractPropTypes<{
376
+ type: PropType<Partial< ExtractPropTypes<{
376
377
  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>;
377
378
  readonly effect: {
378
379
  readonly default: "light";
@@ -411,7 +412,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
411
412
  }>>>;
412
413
  };
413
414
  button: {
414
- type: PropType<Partial<ButtonProps>>;
415
+ type: PropType<Partial< ButtonProps>>;
415
416
  };
416
417
  disabled: {
417
418
  type: PropType<boolean | (() => boolean)>;
@@ -1,3 +1,4 @@
1
- import XDataItem from "./DataItem";
1
+ import { default as XDataItem } from "./DataItem";
2
+
2
3
  export { XDataItem };
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, ActionBarItems, ActionBarProps, ActionProps, ActionMenuItem } from '../';
1
+ import { IconParam, ActionBarItems, ActionBarProps, ActionProps, ActionMenuItem } from '../';
2
+ import { ComponentPropsType } from '../shared';
3
+ import { PropType } from 'vue';
4
+
4
5
  export declare const dataItemProps: {
5
6
  direction: {
6
7
  type: PropType<"row" | "column">;
@@ -4,7 +4,7 @@ import { DraggableOptions, ResizableOptions } from '../../directives';
4
4
  import { BaseSize } from '../shared';
5
5
  import { IconParam } from '../';
6
6
  import { DefineComponent, PropType, VNode, RendererNode, RendererElement, ComputedRef, Ref, ComponentOptionsMixin, ComponentInternalInstance, PublicProps, ExtractPropTypes } from 'vue';
7
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
7
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
8
8
  modelValue: {
9
9
  type: BooleanConstructor;
10
10
  default: boolean;
@@ -168,7 +168,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
168
168
  isOutside: Ref<boolean>;
169
169
  stop: () => void;
170
170
  }) => void;
171
- }, string, PublicProps, Readonly<ExtractPropTypes<{
171
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
172
172
  modelValue: {
173
173
  type: BooleanConstructor;
174
174
  default: boolean;
@@ -1,5 +1,6 @@
1
- import { VNode, RendererNode, RendererElement, type AppContext } from 'vue';
2
- import { type DialogProps } from './types';
1
+ import { DialogProps } from './types';
2
+ import { AppContext, VNode, RendererNode, RendererElement } from 'vue';
3
+
3
4
  export type CreateDialogProps = DialogProps & {
4
5
  [index: string]: any;
5
6
  };
@@ -1,7 +1,8 @@
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';
1
+ import { DraggableOptions, ResizableOptions } from '../../directives';
2
+ import { Emits } from '../';
3
+ import { DialogProps, DialogState, DialogMode, DialogEmits } from './types';
4
+ import { MaybeRef, ComputedRef } from 'vue';
5
+
5
6
  export declare function useState(props: DialogProps, wrapper: MaybeRef<HTMLElement>): {
6
7
  state: {
7
8
  mode: DialogMode;
@@ -1,4 +1,5 @@
1
- import XDialog from "./Dialog";
1
+ import { default as XDialog } from "./Dialog";
2
+
2
3
  export { XDialog };
3
4
  export * from './types';
4
5
  export * from './create';
@@ -1,8 +1,9 @@
1
- import { RendererNode, RendererElement, PropType, VNode, DefineComponent, ComponentInternalInstance } from 'vue';
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';
1
+ import { DraggableOptions, ResizableOptions, UseMouseInElementReturn } from '../../directives';
2
+ import { IconParam } from '../';
3
+ import { ComponentPropsType, BaseSize } from '../shared';
4
+ import { Position } from '@vueuse/core';
5
+ import { PropType, VNode, DefineComponent, ComponentInternalInstance, RendererNode, RendererElement } from 'vue';
6
+
6
7
  export type DialogMode = 'normal' | 'maximized' | 'minimized';
7
8
  export declare const dialogProps: {
8
9
  modelValue: {
@@ -64,7 +65,7 @@ export declare const dialogProps: {
64
65
  default: string;
65
66
  };
66
67
  content: {
67
- type: PropType<Record<string, any> | VNode<RendererNode, RendererElement, {
68
+ type: PropType<Record<string, any> | VNode< RendererNode, RendererElement, {
68
69
  [key: string]: any;
69
70
  }> | DefineComponent<any, any, any, any>>;
70
71
  };
@@ -2,7 +2,7 @@ import { FormItemRule } from 'element-plus';
2
2
  import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
3
3
  import { BaseSize } from '../shared';
4
4
  import { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
5
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
6
6
  modelValue: {
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
@@ -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, PublicProps, Readonly<ExtractPropTypes<{
42
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
43
43
  modelValue: {
44
44
  type: BooleanConstructor;
45
45
  default: boolean;
@@ -1,3 +1,4 @@
1
- import XDialogForm from "./DialogForm";
1
+ import { default as XDialogForm } from "./DialogForm";
2
+
2
3
  export { XDialogForm };
3
4
  export * from './types';
@@ -1,7 +1,8 @@
1
1
  import { FormItemRule } from 'element-plus';
2
2
  import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
3
- import type { PropType } from 'vue';
4
- import type { ComponentPropsType, BaseSize } from '../shared';
3
+ import { ComponentPropsType, BaseSize } from '../shared';
4
+ import { PropType } from 'vue';
5
+
5
6
  export declare const dialogFormProps: {
6
7
  modelValue: {
7
8
  type: BooleanConstructor;
@@ -2,8 +2,9 @@ import { ElTooltipProps } from 'element-plus';
2
2
  import { BaseSize } from '../shared';
3
3
  import { BuiltinFieldEditorType } from './builtin';
4
4
  import { DefineComponent, PropType, VNode, RendererNode, RendererElement, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
5
- import { FieldOption, FieldOptionsLoader, type FieldEditorProps } from './types';
6
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
5
+ import { FieldEditorProps, FieldOption, FieldOptionsLoader } from './types';
6
+
7
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
7
8
  name: {
8
9
  type: StringConstructor;
9
10
  };
@@ -30,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
30
31
  type: PropType<string | number>;
31
32
  };
32
33
  tooltipMessage: {
33
- type: PropType<boolean | Partial<ElTooltipProps>>;
34
+ type: PropType<boolean | Partial< ElTooltipProps>>;
34
35
  default: boolean;
35
36
  };
36
37
  tooltipPosition: {
@@ -47,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
47
48
  type: PropType<boolean>;
48
49
  };
49
50
  options: {
50
- type: PropType<FieldOption[] | FieldOptionsLoader>;
51
+ type: PropType< FieldOption[] | FieldOptionsLoader>;
51
52
  };
52
53
  visible: {
53
54
  type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[];
@@ -76,7 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
76
77
  blur: () => void;
77
78
  change: (value: any) => void;
78
79
  "update:modelValue": (value: any) => void;
79
- }, string, PublicProps, Readonly<ExtractPropTypes<{
80
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
80
81
  name: {
81
82
  type: StringConstructor;
82
83
  };
@@ -103,7 +104,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
103
104
  type: PropType<string | number>;
104
105
  };
105
106
  tooltipMessage: {
106
- type: PropType<boolean | Partial<ElTooltipProps>>;
107
+ type: PropType<boolean | Partial< ElTooltipProps>>;
107
108
  default: boolean;
108
109
  };
109
110
  tooltipPosition: {
@@ -120,7 +121,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
120
121
  type: PropType<boolean>;
121
122
  };
122
123
  options: {
123
- type: PropType<FieldOption[] | FieldOptionsLoader>;
124
+ type: PropType< FieldOption[] | FieldOptionsLoader>;
124
125
  };
125
126
  visible: {
126
127
  type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[];
@@ -150,7 +151,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
150
151
  editor: Record<string, any> | VNode<RendererNode, RendererElement, {
151
152
  [key: string]: any;
152
153
  }> | BuiltinFieldEditorType;
153
- tooltipMessage: boolean | Partial<ElTooltipProps>;
154
+ tooltipMessage: boolean | Partial< ElTooltipProps>;
154
155
  tooltipPosition: number | "inner" | "outer";
155
156
  }, {}>, {
156
157
  label?(_: {}): any;
@@ -1,5 +1,6 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import type { FieldOption } from '../types';
2
+ import { FieldOption } from '../types';
3
+
3
4
  export interface Props {
4
5
  options?: FieldOption[];
5
6
  button?: boolean;
@@ -7,7 +8,7 @@ export interface Props {
7
8
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
9
  options: () => FieldOption[];
9
10
  button: boolean;
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
12
  options: () => FieldOption[];
12
13
  button: boolean;
13
14
  }>>>, {
@@ -1,5 +1,6 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import type { FieldOption } from '../types';
2
+ import { FieldOption } from '../types';
3
+
3
4
  export interface Props {
4
5
  options?: FieldOption[];
5
6
  button?: boolean;
@@ -7,7 +8,7 @@ export interface Props {
7
8
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
9
  options: () => FieldOption[];
9
10
  button: boolean;
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
12
  options: () => FieldOption[];
12
13
  button: boolean;
13
14
  }>>>, {
@@ -1,11 +1,12 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import type { FieldOption } from '../types';
2
+ import { FieldOption } from '../types';
3
+
3
4
  export interface Props {
4
5
  options?: FieldOption[];
5
6
  }
6
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
8
  options: () => FieldOption[];
8
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
10
  options: () => FieldOption[];
10
11
  }>>>, {
11
12
  options: FieldOption[];
@@ -1,4 +1,5 @@
1
- import SelectEditor from "./SelectEditor";
2
- import CheckboxEditor from "./CheckboxEditor";
3
- import RadioEditor from "./RadioEditor";
1
+ import { default as RadioEditor } from "./RadioEditor";
2
+ import { default as CheckboxEditor } from "./CheckboxEditor";
3
+ import { default as SelectEditor } from "./SelectEditor";
4
+
4
5
  export { SelectEditor, CheckboxEditor, RadioEditor };
@@ -1,6 +1,7 @@
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 '../../';
1
+ import { Emits, FormModel } from '../../';
2
+ import { BuiltinFieldEditor, FieldProps, FieldOption, FieldEmits } from '../types';
3
+ import { ComponentInternalInstance, ComputedRef } from 'vue';
4
+
4
5
  export declare function useOptions(props: FieldProps, cascader: Record<string, any>): Promise<FieldOption[]>;
5
6
  export declare function useEditor(props: FieldProps, emit: Emits<FieldEmits>, fieldVisible: ComputedRef<boolean>, instance: ComponentInternalInstance | null, model: FormModel | null): {
6
7
  editor: ComputedRef<BuiltinFieldEditor>;
@@ -1,3 +1,4 @@
1
- import XField from "./Field";
1
+ import { default as XField } from "./Field";
2
+
2
3
  export { XField };
3
4
  export * from './types';
@@ -1,8 +1,9 @@
1
- import { RendererNode, RendererElement, PropType, VNode } from 'vue';
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 '../../';
1
+ import { FormModel } from '../../';
2
+ import { BuiltinFieldEditor, BuiltinFieldEditorType, builtinFieldEditors } from './builtin';
3
+ import { ElTooltipProps } from 'element-plus';
4
+ import { ComponentPropsType, BaseSize } from '../shared';
5
+ import { PropType, VNode, RendererNode, RendererElement } from 'vue';
6
+
6
7
  export { type BuiltinFieldEditor, type BuiltinFieldEditorType, builtinFieldEditors };
7
8
  export interface FieldEditorProps {
8
9
  placeholder?: string;
@@ -41,7 +42,7 @@ export declare const fieldProps: {
41
42
  * 编辑器组件
42
43
  */
43
44
  editor: {
44
- type: PropType<Record<string, any> | VNode<RendererNode, RendererElement, {
45
+ type: PropType<Record<string, any> | VNode< RendererNode, RendererElement, {
45
46
  [key: string]: any;
46
47
  }> | BuiltinFieldEditorType>;
47
48
  default: string;
@@ -1,7 +1,8 @@
1
1
  import { ElTooltipProps } from 'element-plus';
2
2
  import { DefineComponent, PropType, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
- import { type FormModel } from './types';
4
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
3
+ import { FormModel } from './types';
4
+
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
5
6
  model: {
6
7
  type: PropType<Record<string, any>>;
7
8
  default(): any;
@@ -28,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
28
29
  type: PropType<(model: FormModel) => Promise<any>>;
29
30
  };
30
31
  tooltipMessage: {
31
- type: PropType<boolean | Partial<ElTooltipProps>>;
32
+ type: PropType<boolean | Partial< ElTooltipProps>>;
32
33
  default: undefined;
33
34
  };
34
35
  }, {
@@ -40,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
40
41
  reset: () => void;
41
42
  submit: (model: Record<string, any>) => void;
42
43
  change: (model: Record<string, any>) => void;
43
- }, string, PublicProps, Readonly<ExtractPropTypes<{
44
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
44
45
  model: {
45
46
  type: PropType<Record<string, any>>;
46
47
  default(): any;
@@ -67,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
67
68
  type: PropType<(model: FormModel) => Promise<any>>;
68
69
  };
69
70
  tooltipMessage: {
70
- type: PropType<boolean | Partial<ElTooltipProps>>;
71
+ type: PropType<boolean | Partial< ElTooltipProps>>;
71
72
  default: undefined;
72
73
  };
73
74
  }>> & {
@@ -78,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
78
79
  footer: boolean;
79
80
  inline: boolean;
80
81
  model: Record<string, any>;
81
- tooltipMessage: boolean | Partial<ElTooltipProps>;
82
+ tooltipMessage: boolean | Partial< ElTooltipProps>;
82
83
  submitText: string;
83
84
  resetText: string;
84
85
  }, {}>, {
@@ -1,3 +1,4 @@
1
- import XForm from "./Form";
1
+ import { default as XForm } from "./Form";
2
+
2
3
  export { XForm };
3
4
  export * from './types';
@@ -1,7 +1,8 @@
1
- import type { PropType, InjectionKey, ComponentInternalInstance } from 'vue';
2
- import type { ElTooltipProps } from 'element-plus';
3
- import type { ComponentPropsType } from '../shared';
4
- import type Form from "./Form";
1
+ import { default as Form } from "./Form";
2
+ import { ComponentPropsType } from '../shared';
3
+ import { ElTooltipProps } from 'element-plus';
4
+ import { PropType, InjectionKey, ComponentInternalInstance } from 'vue';
5
+
5
6
  export declare const formProps: {
6
7
  /**
7
8
  * 表单模型
@@ -1,7 +1,7 @@
1
1
  import { IconParam } from '../';
2
2
  import { BaseSize } from '../shared';
3
3
  import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
4
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
4
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
5
5
  size: {
6
6
  type: PropType<BaseSize>;
7
7
  default: string;
@@ -22,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
22
22
  more: {
23
23
  type: BooleanConstructor;
24
24
  };
25
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
25
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
26
26
  size: {
27
27
  type: PropType<BaseSize>;
28
28
  default: string;
@@ -1,3 +1,4 @@
1
- import XHeader from "./Header";
1
+ import { default as XHeader } from "./Header";
2
+
2
3
  export { XHeader };
3
4
  export * from './types';
@@ -1,6 +1,7 @@
1
- import type { PropType } from 'vue';
2
- import type { IconParam } from '../icon';
3
- import type { ComponentPropsType, BaseSize } from '../shared';
1
+ import { ComponentPropsType, BaseSize } from '../shared';
2
+ import { IconParam } from '../icon';
3
+ import { PropType } from 'vue';
4
+
4
5
  export declare const headerProps: {
5
6
  size: {
6
7
  type: PropType<BaseSize>;