@vtj/ui 0.8.136 → 0.8.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/index.mjs +2258 -2258
  2. package/dist/index.umd.js +12 -12
  3. package/package.json +5 -5
  4. package/types/adapter.d.ts +0 -1
  5. package/types/components/action/Action.d.ts +12 -12
  6. package/types/components/action/Trigger.d.ts +7 -7
  7. package/types/components/action/hooks.d.ts +0 -1
  8. package/types/components/action/index.d.ts +0 -1
  9. package/types/components/action/types.d.ts +0 -1
  10. package/types/components/action-bar/ActionBar.d.ts +12 -11
  11. package/types/components/action-bar/index.d.ts +0 -1
  12. package/types/components/action-bar/types.d.ts +0 -1
  13. package/types/components/attachment/Attachment.d.ts +536 -23
  14. package/types/components/attachment/index.d.ts +0 -1
  15. package/types/components/attachment/props.d.ts +0 -1
  16. package/types/components/attachment/types.d.ts +0 -1
  17. package/types/components/attachment/util.d.ts +0 -1
  18. package/types/components/captcha/Captcha.d.ts +13 -36
  19. package/types/components/captcha/index.d.ts +0 -1
  20. package/types/components/captcha/types.d.ts +0 -1
  21. package/types/components/container/Container.d.ts +15 -8
  22. package/types/components/container/index.d.ts +0 -1
  23. package/types/components/container/types.d.ts +0 -1
  24. package/types/components/data-item/DataItem.d.ts +25 -18
  25. package/types/components/data-item/index.d.ts +0 -1
  26. package/types/components/data-item/types.d.ts +0 -1
  27. package/types/components/dialog/Dialog.d.ts +387 -33
  28. package/types/components/dialog/create.d.ts +0 -1
  29. package/types/components/dialog/hooks.d.ts +0 -1
  30. package/types/components/dialog/index.d.ts +0 -1
  31. package/types/components/dialog/types.d.ts +0 -1
  32. package/types/components/dialog-form/DialogForm.d.ts +946 -19
  33. package/types/components/dialog-form/index.d.ts +0 -1
  34. package/types/components/dialog-form/types.d.ts +0 -1
  35. package/types/components/dialog-grid/DialogGrid.d.ts +2117 -92
  36. package/types/components/dialog-grid/index.d.ts +0 -1
  37. package/types/components/dialog-grid/types.d.ts +0 -1
  38. package/types/components/field/Field.d.ts +235 -32
  39. package/types/components/field/editors/CheckboxEditor.d.ts +3 -27
  40. package/types/components/field/editors/RadioEditor.d.ts +3 -27
  41. package/types/components/field/editors/SelectEditor.d.ts +14 -31
  42. package/types/components/field/editors/index.d.ts +0 -1
  43. package/types/components/field/hooks/useEditor.d.ts +0 -1
  44. package/types/components/field/index.d.ts +0 -1
  45. package/types/components/field/types.d.ts +1 -2
  46. package/types/components/form/Form.d.ts +244 -18
  47. package/types/components/form/index.d.ts +0 -1
  48. package/types/components/form/types.d.ts +0 -1
  49. package/types/components/grid/Grid.d.ts +157 -140
  50. package/types/components/grid/hooks/useColumnSortable.d.ts +1 -2
  51. package/types/components/grid/hooks/useCustom.d.ts +0 -1
  52. package/types/components/grid/hooks/useEditRender.d.ts +3 -4
  53. package/types/components/grid/hooks/useFilterRender.d.ts +0 -1
  54. package/types/components/grid/hooks/useLoader.d.ts +103 -104
  55. package/types/components/grid/hooks/useProps.d.ts +0 -1
  56. package/types/components/grid/hooks/useRowSortable.d.ts +1 -2
  57. package/types/components/grid/hooks/useState.d.ts +103 -104
  58. package/types/components/grid/hooks/useVxe.d.ts +0 -1
  59. package/types/components/grid/index.d.ts +0 -1
  60. package/types/components/grid/props.d.ts +0 -1
  61. package/types/components/grid/renderers/actions.d.ts +0 -1
  62. package/types/components/grid/renderers/components/DateEdit.d.ts +2 -12
  63. package/types/components/grid/renderers/components/DateFilter.d.ts +2 -12
  64. package/types/components/grid/renderers/components/GridEdit.d.ts +2 -12
  65. package/types/components/grid/renderers/components/InputEdit.d.ts +2 -12
  66. package/types/components/grid/renderers/components/InputFilter.d.ts +2 -12
  67. package/types/components/grid/renderers/components/NumberEdit.d.ts +2 -12
  68. package/types/components/grid/renderers/components/NumberFilter.d.ts +2 -12
  69. package/types/components/grid/renderers/components/PickerEdit.d.ts +2 -12
  70. package/types/components/grid/renderers/components/SelectEdit.d.ts +2 -12
  71. package/types/components/grid/renderers/components/SelectFilter.d.ts +2 -12
  72. package/types/components/grid/renderers/date.d.ts +0 -1
  73. package/types/components/grid/renderers/grid.d.ts +0 -1
  74. package/types/components/grid/renderers/image.d.ts +0 -1
  75. package/types/components/grid/renderers/index.d.ts +0 -1
  76. package/types/components/grid/renderers/input.d.ts +0 -1
  77. package/types/components/grid/renderers/interceptors.d.ts +0 -1
  78. package/types/components/grid/renderers/link.d.ts +0 -1
  79. package/types/components/grid/renderers/number.d.ts +0 -1
  80. package/types/components/grid/renderers/picker.d.ts +0 -1
  81. package/types/components/grid/renderers/select.d.ts +0 -1
  82. package/types/components/grid/renderers/shared.d.ts +0 -1
  83. package/types/components/grid/renderers/tag.d.ts +0 -1
  84. package/types/components/grid/renderers/text.d.ts +0 -1
  85. package/types/components/grid/types.d.ts +0 -1
  86. package/types/components/grid/utils.d.ts +0 -1
  87. package/types/components/grid-editor/GridEditor.d.ts +9 -33
  88. package/types/components/grid-editor/index.d.ts +0 -1
  89. package/types/components/grid-editor/types.d.ts +0 -1
  90. package/types/components/header/Header.d.ts +15 -10
  91. package/types/components/header/index.d.ts +0 -1
  92. package/types/components/header/types.d.ts +0 -1
  93. package/types/components/icon/Icon.d.ts +12 -7
  94. package/types/components/icon/index.d.ts +0 -1
  95. package/types/components/icon/types.d.ts +0 -1
  96. package/types/components/import-button/ImportButton.d.ts +15 -10
  97. package/types/components/import-button/index.d.ts +0 -1
  98. package/types/components/import-button/props.d.ts +0 -1
  99. package/types/components/import-button/types.d.ts +0 -1
  100. package/types/components/input-unit/InputUnit.d.ts +11 -11
  101. package/types/components/input-unit/index.d.ts +0 -1
  102. package/types/components/input-unit/types.d.ts +0 -1
  103. package/types/components/list/List.d.ts +33 -21
  104. package/types/components/list/index.d.ts +0 -1
  105. package/types/components/list/types.d.ts +0 -1
  106. package/types/components/mask/Mask.d.ts +57 -14
  107. package/types/components/mask/components/Avatar.d.ts +9 -13
  108. package/types/components/mask/components/Brand.d.ts +11 -27
  109. package/types/components/mask/components/Content.d.ts +9 -14
  110. package/types/components/mask/components/Menu.d.ts +6 -28
  111. package/types/components/mask/components/Sidebar.d.ts +10 -14
  112. package/types/components/mask/components/SwitchBar.d.ts +5 -28
  113. package/types/components/mask/components/Tabs.d.ts +10 -20
  114. package/types/components/mask/components/ThemeSwitch.d.ts +2 -2
  115. package/types/components/mask/components/Toolbar.d.ts +12 -29
  116. package/types/components/mask/defineTab.d.ts +0 -1
  117. package/types/components/mask/hooks/useContent.d.ts +1 -2
  118. package/types/components/mask/hooks/useHome.d.ts +0 -1
  119. package/types/components/mask/hooks/useMenus.d.ts +1 -2
  120. package/types/components/mask/hooks/useSidebar.d.ts +3 -3
  121. package/types/components/mask/hooks/useTabs.d.ts +3 -4
  122. package/types/components/mask/index.d.ts +0 -1
  123. package/types/components/mask/types.d.ts +0 -1
  124. package/types/components/menu/Menu.d.ts +6 -30
  125. package/types/components/menu/MenuItem.d.ts +2 -12
  126. package/types/components/menu/components.d.ts +0 -1
  127. package/types/components/menu/index.d.ts +0 -1
  128. package/types/components/menu/types.d.ts +0 -1
  129. package/types/components/panel/Panel.d.ts +337 -14
  130. package/types/components/panel/index.d.ts +0 -1
  131. package/types/components/panel/types.d.ts +0 -1
  132. package/types/components/picker/Dialog.d.ts +4 -14
  133. package/types/components/picker/Picker.d.ts +20 -18
  134. package/types/components/picker/hooks.d.ts +6 -4
  135. package/types/components/picker/index.d.ts +0 -1
  136. package/types/components/picker/props.d.ts +1 -2
  137. package/types/components/picker/types.d.ts +0 -1
  138. package/types/components/qr-code/QrCode.d.ts +15 -34
  139. package/types/components/qr-code/index.d.ts +0 -1
  140. package/types/components/qr-code/types.d.ts +0 -1
  141. package/types/components/query-form/QueryForm.d.ts +442 -32
  142. package/types/components/query-form/hooks.d.ts +1 -2
  143. package/types/components/query-form/index.d.ts +0 -1
  144. package/types/components/query-form/props.d.ts +0 -1
  145. package/types/components/query-form/types.d.ts +0 -1
  146. package/types/components/shared.d.ts +0 -1
  147. package/types/components/startup/Startup.d.ts +5 -5
  148. package/types/components/startup/index.d.ts +0 -1
  149. package/types/components/startup/types.d.ts +0 -1
  150. package/types/components/tabs/Tabs.d.ts +48 -42
  151. package/types/components/tabs/index.d.ts +0 -1
  152. package/types/components/tabs/types.d.ts +0 -1
  153. package/types/components/test/Test.d.ts +51 -46
  154. package/types/components/test/index.d.ts +0 -1
  155. package/types/components/test/types.d.ts +0 -1
  156. package/types/components/verify/Verify.d.ts +14 -38
  157. package/types/components/verify/index.d.ts +0 -1
  158. package/types/directives/vDraggable.d.ts +0 -1
  159. package/types/directives/vResizable.d.ts +0 -1
  160. package/types/hooks/useDisabled.d.ts +0 -1
  161. package/types/hooks/useIcon.d.ts +0 -1
  162. package/types/hooks/useLoader.d.ts +0 -1
  163. package/types/index.d.ts +0 -1
  164. package/types/install.d.ts +1 -1
  165. package/types/list.d.ts +0 -1
  166. package/types/utils/install.d.ts +0 -1
  167. package/types/version.d.ts +2 -2
@@ -1,3 +1,2 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
-
3
2
  export declare const XImage: RendererOptions;
@@ -1,5 +1,4 @@
1
1
  import { VXETableCore } from 'vxe-table';
2
-
3
2
  export declare const RenderPlugin: {
4
3
  install(vxetable: VXETableCore): void;
5
4
  };
@@ -1,4 +1,3 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
-
3
2
  export declare const baseRendererOptions: RendererOptions;
4
3
  export declare const XInput: RendererOptions;
@@ -1,4 +1,3 @@
1
1
  import { VxeGlobalInterceptorHandles } from 'vxe-table';
2
-
3
2
  export declare const handleClerEdit: VxeGlobalInterceptorHandles.InterceptorCallback;
4
3
  export declare const handleClearFilter: VxeGlobalInterceptorHandles.InterceptorCallback;
@@ -1,3 +1,2 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
-
3
2
  export declare const XLink: RendererOptions;
@@ -1,4 +1,3 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
-
3
2
  export declare const baseRendererOptions: RendererOptions;
4
3
  export declare const XNumber: RendererOptions;
@@ -1,3 +1,2 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
-
3
2
  export declare const XPicker: RendererOptions;
@@ -1,3 +1,2 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
-
3
2
  export declare const XSelect: RendererOptions;
@@ -1,3 +1,2 @@
1
1
  import { DefineRendererOption, VxeGlobalRendererHandles } from 'vxe-table';
2
-
3
2
  export declare const sharedFilterOptions: DefineRendererOption<VxeGlobalRendererHandles.RenderResult>;
@@ -1,3 +1,2 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
-
3
2
  export declare const XTag: RendererOptions;
@@ -1,3 +1,2 @@
1
1
  import { RendererOptions } from 'vxe-table';
2
-
3
2
  export declare const XText: RendererOptions;
@@ -3,7 +3,6 @@ import { gridProps } from './props';
3
3
  import { default as Sortable } from 'sortablejs';
4
4
  import { default as Grid } from './Grid';
5
5
  import { VxeGridInstance, VxeTableDefines, VxeGridPropTypes, VxeTablePropTypes, VxeGridDefines, VxeColumnPropTypes, VxeGridEvents, VxeGridProps, VxeGlobalRendererHandles, VxeColumnSlotTypes, DefineRendererOption, VxeGlobalInterceptorHandles, RendererOptions } from 'vxe-table';
6
-
7
6
  export type GridSortableOptions = Sortable.Options;
8
7
  export type GridSortableRowInfo = {
9
8
  rowid: string;
@@ -2,7 +2,6 @@ import { default as Sortable } from 'sortablejs';
2
2
  import { GridSortableOptions, VxeGridInstance, GridEmits, GridSortableEvent, VxeTableDefines, GridColumns, GridCustomInfo, VxeGlobalRendererHandles } from './types';
3
3
  import { Emits } from '../shared';
4
4
  import { VxeTableDataRow } from 'vxe-table';
5
-
6
5
  export declare function createSortable(el: HTMLElement, options?: GridSortableOptions): Sortable;
7
6
  export declare function createRowSortHandler(grid: VxeGridInstance, emit: Emits<GridEmits>): (e: Sortable.SortableEvent) => void;
8
7
  export declare function createColumnMoveHandler(grid: VxeGridInstance): (e: Sortable.MoveEvent) => boolean | void | 1 | -1;
@@ -1,42 +1,18 @@
1
1
  import { GridEditorProps } from './types';
2
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
-
4
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<GridEditorProps>, {
5
- plus: boolean;
6
- minus: boolean;
7
- }>, {
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<GridEditorProps, {
8
4
  open: () => void;
9
- dialogVisible: Ref<boolean>;
5
+ dialogVisible: Ref<boolean, boolean>;
10
6
  focus: () => void;
11
7
  blur: () => void;
12
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
- change: (model: any) => void;
14
- "update:modelValue": (model: any) => void;
15
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<GridEditorProps>, {
16
- plus: boolean;
17
- minus: boolean;
18
- }>>> & {
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
+ change: (model: any) => any;
10
+ "update:modelValue": (model: any) => any;
11
+ }, string, PublicProps, Readonly<GridEditorProps> & Readonly<{
19
12
  onChange?: ((model: any) => any) | undefined;
20
13
  "onUpdate:modelValue"?: ((model: any) => any) | undefined;
21
- }, {
14
+ }>, {
22
15
  plus: boolean;
23
16
  minus: boolean;
24
- }, {}>;
17
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
25
18
  export default _default;
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToRuntimeProps<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: PropType<T[K]>;
32
- required: true;
33
- };
34
- };
35
- type __VLS_WithDefaults<P, D> = {
36
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
- default: D[K];
38
- }> : P[K];
39
- };
40
- type __VLS_Prettify<T> = {
41
- [K in keyof T]: T[K];
42
- } & {};
@@ -1,4 +1,3 @@
1
1
  import { default as XGridEditor } from './GridEditor';
2
-
3
2
  export { XGridEditor };
4
3
  export * from './types';
@@ -1,6 +1,5 @@
1
1
  import { GridColumns } from '../grid';
2
2
  import { VxeTablePropTypes } from 'vxe-table';
3
-
4
3
  export interface GridEditorProps {
5
4
  title?: string;
6
5
  /**
@@ -1,12 +1,17 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { BaseSize } from '../shared';
3
- import { IconParam } from '../';
3
+ import { IconParam } from '../icon';
4
4
  declare function __VLS_template(): {
5
- default?(_: {}): any;
6
- subtitle?(_: {}): any;
7
- actions?(_: {}): any;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ subtitle?(_: {}): any;
8
+ actions?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ attrs: Partial<{}>;
8
12
  };
9
- declare const __VLS_component: DefineComponent<{
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
10
15
  size: {
11
16
  type: PropType<BaseSize>;
12
17
  default: string;
@@ -27,7 +32,7 @@ declare const __VLS_component: DefineComponent<{
27
32
  more: {
28
33
  type: BooleanConstructor;
29
34
  };
30
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
35
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
31
36
  size: {
32
37
  type: PropType<BaseSize>;
33
38
  default: string;
@@ -48,13 +53,13 @@ declare const __VLS_component: DefineComponent<{
48
53
  more: {
49
54
  type: BooleanConstructor;
50
55
  };
51
- }>>, {
56
+ }>> & Readonly<{}>, {
52
57
  size: BaseSize;
53
58
  content: string;
54
59
  border: boolean;
55
60
  more: boolean;
56
- }, {}>;
57
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
61
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
62
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
58
63
  export default _default;
59
64
  type __VLS_WithTemplateSlots<T, S> = T & {
60
65
  new (): {
@@ -1,4 +1,3 @@
1
1
  import { default as XHeader } from './Header';
2
-
3
2
  export { XHeader };
4
3
  export * from './types';
@@ -1,7 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { IconParam } from '../icon';
3
3
  import { ComponentPropsType, BaseSize } from '../shared';
4
-
5
4
  export declare const headerProps: {
6
5
  size: {
7
6
  type: PropType<BaseSize>;
@@ -1,9 +1,14 @@
1
- import { DefineComponent, PropType, VNode, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
1
+ import { DefineComponent, ExtractPropTypes, PropType, VNode, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { IconSize } from './types';
3
3
  declare function __VLS_template(): {
4
- default?(_: {}): any;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ attrs: Partial<{}>;
5
9
  };
6
- declare const __VLS_component: DefineComponent<{
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
7
12
  icon: {
8
13
  type: PropType<string | object | VNode>;
9
14
  };
@@ -26,7 +31,7 @@ declare const __VLS_component: DefineComponent<{
26
31
  radius: {
27
32
  type: NumberConstructor;
28
33
  };
29
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
34
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
30
35
  icon: {
31
36
  type: PropType<string | object | VNode>;
32
37
  };
@@ -49,10 +54,10 @@ declare const __VLS_component: DefineComponent<{
49
54
  radius: {
50
55
  type: NumberConstructor;
51
56
  };
52
- }>>, {
57
+ }>> & Readonly<{}>, {
53
58
  size: IconSize;
54
- }, {}>;
55
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
59
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
60
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
61
  export default _default;
57
62
  type __VLS_WithTemplateSlots<T, S> = T & {
58
63
  new (): {
@@ -1,4 +1,3 @@
1
1
  import { default as XIcon } from './Icon';
2
-
3
2
  export { XIcon };
4
3
  export * from './types';
@@ -1,5 +1,4 @@
1
1
  import { ExtractPropTypes, PropType, VNode } from 'vue';
2
-
3
2
  export type IconParam = string | VNode | IconProps | Record<string, any>;
4
3
  export type IconSize = number | 'inherit' | 'large' | 'default' | 'small';
5
4
  export declare const iconSizeMap: {
@@ -1,9 +1,14 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { ImportButtonParserType, ImportButtonParser } from './types';
3
3
  declare function __VLS_template(): {
4
- default?(_: {}): any;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ attrs: Partial<{}>;
5
9
  };
6
- declare const __VLS_component: DefineComponent<{
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
7
12
  uploader: {
8
13
  type: FunctionConstructor;
9
14
  };
@@ -16,9 +21,9 @@ declare const __VLS_component: DefineComponent<{
16
21
  parser: {
17
22
  type: PropType< ImportButtonParserType | ImportButtonParser>;
18
23
  };
19
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
- success: (content: any) => void;
21
- fail: (e: any) => void;
24
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
25
+ success: (content: any) => any;
26
+ fail: (e: any) => any;
22
27
  }, string, PublicProps, Readonly< ExtractPropTypes<{
23
28
  uploader: {
24
29
  type: FunctionConstructor;
@@ -32,13 +37,13 @@ declare const __VLS_component: DefineComponent<{
32
37
  parser: {
33
38
  type: PropType< ImportButtonParserType | ImportButtonParser>;
34
39
  };
35
- }>> & {
40
+ }>> & Readonly<{
36
41
  onSuccess?: ((content: any) => any) | undefined;
37
42
  onFail?: ((e: any) => any) | undefined;
38
- }, {
43
+ }>, {
39
44
  multiple: boolean;
40
- }, {}>;
41
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
45
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
46
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
47
  export default _default;
43
48
  type __VLS_WithTemplateSlots<T, S> = T & {
44
49
  new (): {
@@ -1,4 +1,3 @@
1
1
  import { default as XImportButton } from './ImportButton';
2
-
3
2
  export { XImportButton };
4
3
  export * from './types';
@@ -1,6 +1,5 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ImportButtonParserType, ImportButtonParser } from './types';
3
-
4
3
  export declare const importButtonProps: {
5
4
  /**
6
5
  * 文件上传函数
@@ -1,6 +1,5 @@
1
1
  import { ComponentPropsType } from '../shared';
2
2
  import { importButtonProps } from './props';
3
-
4
3
  export type ImportButtonProps = ComponentPropsType<typeof importButtonProps>;
5
4
  export type ImportButtonEmits = {
6
5
  success: [content: any];
@@ -1,6 +1,6 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { InputUnitOption } from './types';
3
- declare const _default: DefineComponent<{
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
4
  units: {
5
5
  type: PropType<Array<string | InputUnitOption>>;
6
6
  };
@@ -24,17 +24,17 @@ declare const _default: DefineComponent<{
24
24
  selectProps: {
25
25
  type: PropType<Record<string, any>>;
26
26
  };
27
- }, {
27
+ }>, {
28
28
  parser: (value?: string | number) => {
29
29
  value: string | number | undefined;
30
30
  unit: string | undefined;
31
31
  };
32
32
  formatValue: (value?: string | number) => string | number | undefined;
33
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
34
- change: (args_0: string | number | undefined) => void;
35
- "update:modelValue": (args_0: string | number | undefined) => void;
36
- "update:unit": (args_0: string | number | undefined) => void;
37
- "unit-change": (args_0: string | undefined) => void;
33
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
34
+ change: (args_0: string | number | undefined) => any;
35
+ "update:modelValue": (args_0: string | number | undefined) => any;
36
+ "update:unit": (args_0: string | number | undefined) => any;
37
+ "unit-change": (args_0: string | undefined) => any;
38
38
  }, string, PublicProps, Readonly< ExtractPropTypes<{
39
39
  units: {
40
40
  type: PropType<Array<string | InputUnitOption>>;
@@ -59,13 +59,13 @@ declare const _default: DefineComponent<{
59
59
  selectProps: {
60
60
  type: PropType<Record<string, any>>;
61
61
  };
62
- }>> & {
62
+ }>> & Readonly<{
63
63
  onChange?: ((args_0: string | number | undefined) => any) | undefined;
64
64
  "onUpdate:modelValue"?: ((args_0: string | number | undefined) => any) | undefined;
65
65
  "onUpdate:unit"?: ((args_0: string | number | undefined) => any) | undefined;
66
66
  "onUnit-change"?: ((args_0: string | undefined) => any) | undefined;
67
- }, {
67
+ }>, {
68
68
  appendWidth: number;
69
69
  withUnit: boolean;
70
- }, {}>;
70
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
71
71
  export default _default;
@@ -1,4 +1,3 @@
1
1
  import { default as XInputUnit } from './InputUnit';
2
-
3
2
  export { XInputUnit };
4
3
  export * from './types';
@@ -1,6 +1,5 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ComponentPropsType } from '../shared';
3
-
4
3
  export interface InputUnitOption {
5
4
  label: string;
6
5
  value: string;
@@ -1,19 +1,31 @@
1
1
  import { ListData, ListState, ListInfiniteScroll } from './types';
2
- import { DefineComponent, PropType, Ref, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { DefineComponent, ExtractPropTypes, PropType, Ref, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { DataLoader } from '..';
4
4
  import { PaginationProps } from 'element-plus';
5
5
  import { UseVirtualListItem } from '@vueuse/core';
6
-
7
6
  declare function __VLS_template(): {
8
- empty?(_: {}): any;
9
- default?(_: {
10
- item: any;
11
- index: number;
12
- }): any;
13
- loading?(_: {}): any;
14
- nomore?(_: {}): any;
7
+ slots: {
8
+ empty?(_: {}): any;
9
+ default?(_: {
10
+ item: any;
11
+ index: number;
12
+ }): any;
13
+ default?(_: {
14
+ item: any;
15
+ index: number;
16
+ }): any;
17
+ loading?(_: {}): any;
18
+ loading?(_: {}): any;
19
+ nomore?(_: {}): any;
20
+ nomore?(_: {}): any;
21
+ };
22
+ refs: {
23
+ wrapperRef: HTMLDivElement;
24
+ };
25
+ attrs: Partial<{}>;
15
26
  };
16
- declare const __VLS_component: DefineComponent<{
27
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
17
29
  data: {
18
30
  type: PropType<DataLoader<ListData, ListState>>;
19
31
  default(): never[];
@@ -46,21 +58,21 @@ declare const __VLS_component: DefineComponent<{
46
58
  infiniteScroll: {
47
59
  type: PropType<boolean | ListInfiniteScroll>;
48
60
  };
49
- }, {
50
- list: Ref< UseVirtualListItem<any>[]>;
61
+ }>, {
62
+ list: Ref< UseVirtualListItem<any>[], UseVirtualListItem<any>[]>;
51
63
  scrollTo: (index: number) => void;
52
- wrapperRef: Ref<any>;
53
- loading: Ref<boolean>;
64
+ wrapperRef: Ref<any, any>;
65
+ loading: Ref<boolean, boolean>;
54
66
  state: {
55
67
  page: number;
56
68
  pageSize: number;
57
69
  };
58
70
  pageCount: ComputedRef<number>;
59
- nomore: Ref<boolean>;
71
+ nomore: Ref<boolean, boolean>;
60
72
  data: ShallowRef<ListData>;
61
73
  getKey: (item: any) => any;
62
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
63
- load: (state: ListState) => void;
74
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
75
+ load: (state: ListState) => any;
64
76
  }, string, PublicProps, Readonly< ExtractPropTypes<{
65
77
  data: {
66
78
  type: PropType<DataLoader<ListData, ListState>>;
@@ -94,16 +106,16 @@ declare const __VLS_component: DefineComponent<{
94
106
  infiniteScroll: {
95
107
  type: PropType<boolean | ListInfiniteScroll>;
96
108
  };
97
- }>> & {
109
+ }>> & Readonly<{
98
110
  onLoad?: ((state: ListState) => any) | undefined;
99
- }, {
111
+ }>, {
100
112
  data: DataLoader<ListData, ListState>;
101
113
  width: string | number;
102
114
  height: string | number;
103
115
  page: number;
104
116
  pageSize: number;
105
- }, {}>;
106
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
117
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
118
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
107
119
  export default _default;
108
120
  type __VLS_WithTemplateSlots<T, S> = T & {
109
121
  new (): {
@@ -1,4 +1,3 @@
1
1
  import { default as XList } from './List';
2
-
3
2
  export { XList };
4
3
  export * from './types';
@@ -1,7 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ComponentPropsType, DataLoader } from '../shared';
3
3
  import { PaginationProps } from 'element-plus';
4
-
5
4
  export interface ListData {
6
5
  list: any[];
7
6
  total?: number;
@@ -1,16 +1,59 @@
1
- import { ActionMenuItem, MenuDataItem, ActionBarItems, IconParam, ActionMode } from '../';
1
+ import { ActionMenuItem } from '../';
2
2
  import { MaskTab } from './types';
3
- import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
3
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ExtractPropTypes, PropType, PublicProps } from 'vue';
4
+ import { Props } from './components/Tabs';
5
+ import { MenuDataItem } from '../menu';
6
+ import { ActionBarItems } from '../action-bar';
7
+ import { IconParam } from '../icon';
8
+ import { ActionMode } from '../action';
4
9
  import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
5
10
  import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
6
11
  import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
7
12
  import { BaseSize, BaseType } from '../shared';
8
-
9
13
  declare function __VLS_template(): {
10
- user?(_: {}): any;
11
- default?(_: {}): any;
14
+ slots: {
15
+ user?(_: {}): any;
16
+ default?(_: {}): any;
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {
20
+ tabRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
21
+ onDialog?: ((tab: MaskTab) => any) | undefined;
22
+ onClick?: ((tab: MaskTab) => any) | undefined;
23
+ onRemove?: ((tab: MaskTab) => any) | undefined;
24
+ onRefresh?: ((tab: MaskTab) => any) | undefined;
25
+ onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
26
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
27
+ dialog: (tab: MaskTab) => any;
28
+ click: (tab: MaskTab) => any;
29
+ remove: (tab: MaskTab) => any;
30
+ refresh: (tab: MaskTab) => any;
31
+ toggleFavorite: (item: MenuDataItem) => any;
32
+ }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< Props> & Readonly<{
33
+ onDialog?: ((tab: MaskTab) => any) | undefined;
34
+ onClick?: ((tab: MaskTab) => any) | undefined;
35
+ onRemove?: ((tab: MaskTab) => any) | undefined;
36
+ onRefresh?: ((tab: MaskTab) => any) | undefined;
37
+ onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
38
+ }>, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
39
+ P: {};
40
+ B: {};
41
+ D: {};
42
+ C: {};
43
+ M: {};
44
+ Defaults: {};
45
+ }, Readonly< Props> & Readonly<{
46
+ onDialog?: ((tab: MaskTab) => any) | undefined;
47
+ onClick?: ((tab: MaskTab) => any) | undefined;
48
+ onRemove?: ((tab: MaskTab) => any) | undefined;
49
+ onRefresh?: ((tab: MaskTab) => any) | undefined;
50
+ onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
51
+ }>, {}, {}, {}, {}, {}> | null;
52
+ };
53
+ attrs: Partial<{}>;
12
54
  };
13
- declare const __VLS_component: DefineComponent<{
55
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
56
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
14
57
  logo: {
15
58
  type: StringConstructor;
16
59
  default: string;
@@ -56,8 +99,8 @@ declare const __VLS_component: DefineComponent<{
56
99
  removeFavorite: {
57
100
  type: PropType<(menu: MenuDataItem) => void>;
58
101
  };
59
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
60
- select: (menu: MenuDataItem) => void;
102
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
103
+ select: (menu: MenuDataItem) => any;
61
104
  actionClick: (action: Readonly<Partial< ExtractPropTypes<{
62
105
  name: {
63
106
  type: StringConstructor;
@@ -146,7 +189,7 @@ declare const __VLS_component: DefineComponent<{
146
189
  draggable: {
147
190
  type: BooleanConstructor;
148
191
  };
149
- }>>>) => void;
192
+ }>>>) => any;
150
193
  actionCommand: (action: Readonly<Partial< ExtractPropTypes<{
151
194
  name: {
152
195
  type: StringConstructor;
@@ -235,7 +278,7 @@ declare const __VLS_component: DefineComponent<{
235
278
  draggable: {
236
279
  type: BooleanConstructor;
237
280
  };
238
- }>>>, item: ActionMenuItem) => void;
281
+ }>>>, item: ActionMenuItem) => any;
239
282
  }, string, PublicProps, Readonly< ExtractPropTypes<{
240
283
  logo: {
241
284
  type: StringConstructor;
@@ -282,7 +325,7 @@ declare const __VLS_component: DefineComponent<{
282
325
  removeFavorite: {
283
326
  type: PropType<(menu: MenuDataItem) => void>;
284
327
  };
285
- }>> & {
328
+ }>> & Readonly<{
286
329
  onSelect?: ((menu: MenuDataItem) => any) | undefined;
287
330
  onActionClick?: ((action: Readonly<Partial< ExtractPropTypes<{
288
331
  name: {
@@ -462,7 +505,7 @@ declare const __VLS_component: DefineComponent<{
462
505
  type: BooleanConstructor;
463
506
  };
464
507
  }>>>, item: ActionMenuItem) => any) | undefined;
465
- }, {
508
+ }>, {
466
509
  disabled: boolean;
467
510
  title: string;
468
511
  menus: MenuDataItem[] | (() => Promise< MenuDataItem[]> | MenuDataItem[]);
@@ -471,8 +514,8 @@ declare const __VLS_component: DefineComponent<{
471
514
  home: string | MaskTab;
472
515
  tabs: number;
473
516
  theme: boolean;
474
- }, {}>;
475
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
517
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
518
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
476
519
  export default _default;
477
520
  type __VLS_WithTemplateSlots<T, S> = T & {
478
521
  new (): {