@robot-admin/naive-ui-components 0.17.5 → 0.18.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 (194) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/C_AntV.css +10 -10
  3. package/dist/C_AntV.d.cts +2 -2
  4. package/dist/C_AntV.d.ts +2 -2
  5. package/dist/C_AntV2.cjs +1 -1
  6. package/dist/C_AntV2.js +1 -1
  7. package/dist/C_Date.cjs +1 -1
  8. package/dist/C_Date.css +5 -5
  9. package/dist/C_Date.d.cts +18 -2
  10. package/dist/C_Date.d.ts +18 -2
  11. package/dist/C_Date.js +1 -1
  12. package/dist/C_Date2.cjs +1 -1
  13. package/dist/C_Date2.js +1 -1
  14. package/dist/C_Draggable.css +53 -53
  15. package/dist/C_Draggable.d.cts +2 -2
  16. package/dist/C_Draggable.d.ts +2 -2
  17. package/dist/C_Draggable2.cjs +1 -1
  18. package/dist/C_Draggable2.js +1 -1
  19. package/dist/C_Editor.d.cts +1 -1
  20. package/dist/C_Editor.d.ts +1 -1
  21. package/dist/C_FormModal.d.cts +1 -1
  22. package/dist/C_FormModal.d.ts +1 -1
  23. package/dist/C_FormSearch.cjs +1 -1
  24. package/dist/C_FormSearch.css +52 -52
  25. package/dist/C_FormSearch.d.cts +18 -2
  26. package/dist/C_FormSearch.d.ts +18 -2
  27. package/dist/C_FormSearch.js +1 -1
  28. package/dist/C_FormSearch2.cjs +1 -1
  29. package/dist/C_FormSearch2.js +1 -1
  30. package/dist/C_Guide.d.cts +1 -1
  31. package/dist/C_Guide.d.ts +1 -1
  32. package/dist/C_Icon.d.cts +1 -1
  33. package/dist/C_Icon.d.ts +1 -1
  34. package/dist/C_Language.d.cts +1 -1
  35. package/dist/C_Language.d.ts +1 -1
  36. package/dist/C_Loading.d.cts +1 -1
  37. package/dist/C_Loading.d.ts +1 -1
  38. package/dist/C_Login.d.cts +1 -1
  39. package/dist/C_Login.d.ts +1 -1
  40. package/dist/C_Markdown.d.cts +1 -1
  41. package/dist/C_Markdown.d.ts +1 -1
  42. package/dist/C_Menu.d.ts +1 -1
  43. package/dist/C_OrgChart.d.cts +1 -1
  44. package/dist/C_OrgChart.d.ts +1 -1
  45. package/dist/C_Progress.d.cts +1 -1
  46. package/dist/C_Progress.d.ts +1 -1
  47. package/dist/C_Skeleton.d.cts +1 -1
  48. package/dist/C_Skeleton.d.ts +1 -1
  49. package/dist/C_Steps.d.cts +1 -1
  50. package/dist/C_Steps.d.ts +1 -1
  51. package/dist/C_Table.base.css +144 -155
  52. package/dist/C_Table.css +144 -155
  53. package/dist/C_Table.d.cts +2 -2
  54. package/dist/C_Table.d.ts +6 -6
  55. package/dist/C_TagsView.d.cts +1 -1
  56. package/dist/C_TagsView.d.ts +1 -1
  57. package/dist/C_Theme.d.cts +1 -1
  58. package/dist/C_Theme.d.ts +1 -1
  59. package/dist/C_Time.cjs +1 -1
  60. package/dist/C_Time.css +4 -4
  61. package/dist/C_Time.d.cts +18 -2
  62. package/dist/C_Time.d.ts +18 -2
  63. package/dist/C_Time.js +1 -1
  64. package/dist/C_Time2.cjs +1 -1
  65. package/dist/C_Time2.js +1 -1
  66. package/dist/C_Timeline.d.cts +1 -1
  67. package/dist/C_Timeline.d.ts +1 -1
  68. package/dist/C_Transfer.css +26 -26
  69. package/dist/C_Transfer.d.cts +2 -2
  70. package/dist/C_Transfer.d.ts +2 -2
  71. package/dist/C_Transfer2.cjs +1 -1
  72. package/dist/C_Transfer2.js +1 -1
  73. package/dist/C_Tree.css +23 -23
  74. package/dist/C_Tree.d.ts +4 -4
  75. package/dist/C_Tree2.cjs +1 -1
  76. package/dist/C_Tree2.js +1 -1
  77. package/dist/C_VtableGantt.cjs +1 -1
  78. package/dist/C_VtableGantt.css +31 -31
  79. package/dist/C_VtableGantt.d.cts +18 -2
  80. package/dist/C_VtableGantt.d.ts +18 -2
  81. package/dist/C_VtableGantt.js +1 -1
  82. package/dist/C_WorkFlow.css +150 -150
  83. package/dist/C_WorkFlow.d.cts +2 -2
  84. package/dist/C_WorkFlow.d.ts +2 -2
  85. package/dist/C_WorkFlow2.cjs +1 -1
  86. package/dist/C_WorkFlow2.js +1 -1
  87. package/dist/constants3.d.cts +2 -2
  88. package/dist/constants3.d.ts +2 -2
  89. package/dist/constants4.d.cts +5 -5
  90. package/dist/constants4.d.ts +5 -5
  91. package/dist/constants5.d.cts +2 -2
  92. package/dist/constants5.d.ts +2 -2
  93. package/dist/data.d.cts +9 -9
  94. package/dist/data.d.ts +9 -9
  95. package/dist/dateRange.d.cts +197 -0
  96. package/dist/dateRange.d.ts +197 -0
  97. package/dist/graphics.cjs +1 -0
  98. package/dist/graphics.d.cts +837 -0
  99. package/dist/graphics.d.ts +837 -0
  100. package/dist/graphics.js +1 -0
  101. package/dist/index.cjs +1 -1
  102. package/dist/index.d.cts +47 -43
  103. package/dist/index.d.ts +47 -44
  104. package/dist/index.js +1 -1
  105. package/dist/index.vue.d.cts +4 -4
  106. package/dist/index.vue.d.ts +4 -4
  107. package/dist/index10.vue.d.cts +3 -3
  108. package/dist/index10.vue.d.ts +54 -69
  109. package/dist/index11.vue.d.cts +54 -69
  110. package/dist/index11.vue.d.ts +52 -58
  111. package/dist/index12.vue.d.cts +52 -58
  112. package/dist/index12.vue.d.ts +124 -50
  113. package/dist/index13.vue.d.cts +124 -50
  114. package/dist/index13.vue.d.ts +51 -123
  115. package/dist/index14.vue.d.cts +51 -123
  116. package/dist/index14.vue.d.ts +26 -52
  117. package/dist/index15.vue.d.cts +26 -52
  118. package/dist/index15.vue.d.ts +12 -26
  119. package/dist/index16.vue.d.cts +12 -26
  120. package/dist/index16.vue.d.ts +129 -13
  121. package/dist/index17.vue.d.cts +129 -13
  122. package/dist/index17.vue.d.ts +76 -129
  123. package/dist/index18.vue.d.cts +76 -129
  124. package/dist/index18.vue.d.ts +65 -75
  125. package/dist/index19.vue.d.cts +97 -75
  126. package/dist/index19.vue.d.ts +94 -62
  127. package/dist/index20.vue.d.cts +40 -91
  128. package/dist/index20.vue.d.ts +40 -91
  129. package/dist/index21.vue.d.cts +89 -40
  130. package/dist/index21.vue.d.ts +89 -40
  131. package/dist/index22.vue.d.cts +37 -95
  132. package/dist/index22.vue.d.ts +37 -95
  133. package/dist/index23.vue.d.cts +8 -34
  134. package/dist/index23.vue.d.ts +8 -34
  135. package/dist/index24.vue.d.cts +86 -9
  136. package/dist/index24.vue.d.ts +86 -9
  137. package/dist/index25.vue.d.cts +99 -654
  138. package/dist/index25.vue.d.ts +99 -654
  139. package/dist/index26.vue.d.cts +66 -87
  140. package/dist/index26.vue.d.ts +66 -87
  141. package/dist/index3.vue.d.cts +5 -5
  142. package/dist/index3.vue.d.ts +5 -5
  143. package/dist/index4.vue.d.cts +3 -3
  144. package/dist/index6.vue.d.ts +1 -1
  145. package/dist/index7.vue.d.cts +1 -1
  146. package/dist/index8.vue.d.ts +2 -2
  147. package/dist/index9.vue.d.cts +2 -2
  148. package/dist/index9.vue.d.ts +3 -3
  149. package/dist/mapUtils.d.cts +1 -1
  150. package/dist/mapUtils.d.ts +1 -1
  151. package/dist/presets.d.cts +1 -1
  152. package/dist/presets.d.ts +1 -1
  153. package/dist/style.css +499 -510
  154. package/dist/types.d.ts +51 -0
  155. package/dist/types2.d.cts +51 -0
  156. package/dist/useCalendarEvents.d.cts +3 -3
  157. package/dist/useCalendarEvents.d.ts +3 -3
  158. package/dist/useCollapsePanel.d.cts +7 -7
  159. package/dist/useCollapsePanel.d.ts +7 -7
  160. package/dist/useCropperCore.d.cts +7 -7
  161. package/dist/useCropperCore.d.ts +7 -7
  162. package/dist/useDraggableLayout.d.cts +94 -125
  163. package/dist/useDraggableLayout.d.ts +94 -125
  164. package/dist/useDynamicFormState.d.cts +24 -11
  165. package/dist/useDynamicFormState.d.ts +24 -11
  166. package/dist/useEdgeInteraction.d.cts +10 -5
  167. package/dist/useEdgeInteraction.d.ts +10 -5
  168. package/dist/useFullscreen.d.cts +3 -3
  169. package/dist/useFullscreen.d.ts +3 -3
  170. package/dist/useQRCode.d.cts +5 -5
  171. package/dist/useQRCode.d.ts +5 -5
  172. package/dist/useSignatureHistory.d.cts +5 -5
  173. package/dist/useSignatureHistory.d.ts +5 -5
  174. package/dist/useSplitResize.d.cts +6 -6
  175. package/dist/useSplitResize.d.ts +6 -6
  176. package/dist/useTableQuery.cjs +2 -2
  177. package/dist/useTableQuery.d.cts +475 -463
  178. package/dist/useTableQuery.d.ts +475 -463
  179. package/dist/useTableQuery.js +2 -2
  180. package/dist/useTimeSelection.d.cts +19 -52
  181. package/dist/useTimeSelection.d.ts +19 -52
  182. package/dist/useWorkflowValidation.d.cts +533 -154
  183. package/dist/useWorkflowValidation.d.ts +533 -154
  184. package/docs/guides/usage.en.md +15 -0
  185. package/docs/guides/usage.md +15 -0
  186. package/package.json +1 -1
  187. package/dist/C_VtableGantt2.cjs +0 -1
  188. package/dist/C_VtableGantt2.js +0 -1
  189. package/dist/index27.vue.d.cts +0 -111
  190. package/dist/index27.vue.d.ts +0 -111
  191. package/dist/index28.vue.d.cts +0 -84
  192. package/dist/index28.vue.d.ts +0 -84
  193. package/dist/useSearchState.d.cts +0 -163
  194. package/dist/useSearchState.d.ts +0 -163
@@ -1,96 +1,75 @@
1
- import { i as TagItem } from "./types.cjs";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
4
2
 
5
- //#region src/components/C_TagsView/useTagsView.d.ts
6
- interface UseTagsViewOptions {
7
- /** localStorage 持久化 key,传空字符串则不持久化 */
8
- persistKey?: string;
9
- /** 首页路径,用于 removeAll 后的回退 */
10
- homePath?: string;
11
- }
3
+ //#region src/components/C_Transfer/types.d.ts
12
4
  /**
13
- * 标签页管理 composable
14
- *
15
- * 独立于组件使用 — 可在任何地方管理标签状态
16
- *
17
- * @example 独立使用
18
- * ```ts
19
- * const tags = useTagsView({ persistKey: 'my-tags' })
20
- * tags.addTag({ path: '/home', title: '首页', meta: { affix: true } })
21
- * ```
5
+ * @Description: 穿梭框组件类型定义
22
6
  */
23
- declare function useTagsView(options?: UseTagsViewOptions): {
24
- tagsViewList: Ref<TagItem[], TagItem[]>;
25
- activeTag: Ref<string, string>;
26
- homePath: string;
27
- initTags: (tags?: TagItem[]) => void;
28
- setActiveTag: (path: string) => void;
29
- addTag: (tag: TagItem) => void;
30
- removeTag: (index: number) => string | null;
31
- removeOtherTags: (index: number) => void;
32
- removeLeftTags: (index: number) => void;
33
- removeRightTags: (index: number) => void;
34
- removeAllTags: () => void;
35
- };
36
- //#endregion
37
- //#region src/components/C_TagsView/types.d.ts
38
- interface ContextMenuLabels {
39
- close?: string;
40
- closeOthers?: string;
41
- closeLeft?: string;
42
- closeRight?: string;
43
- closeAll?: string;
7
+ /** 穿梭框数据项 */
8
+ interface TransferItem<K extends string | number = string | number> {
9
+ /** 唯一标识 */
10
+ key: K;
11
+ /** 显示标签 */
12
+ label: string;
13
+ /** 是否禁用 */
14
+ disabled?: boolean;
15
+ /** 分组名称 */
16
+ group?: string;
17
+ /** 描述信息(用于详细模式) */
18
+ description?: string;
19
+ /** 图标(Iconify) */
20
+ icon?: string;
21
+ /** 额外数据 */
22
+ extra?: Record<string, unknown>;
44
23
  }
45
- //#endregion
46
- //#region src/components/C_TagsView/index.vue.d.ts
47
- interface LegacyContextMenuLabels extends ContextMenuLabels {
48
- close?: string;
49
- closeOthers?: string;
50
- closeLeft?: string;
51
- closeRight?: string;
52
- closeAll?: string;
24
+ /** 组件 Props */
25
+ interface TransferProps<T extends TransferItem = TransferItem> {
26
+ /** 数据源 */
27
+ data: readonly T[];
28
+ /** 右侧已选 key 列表 (v-model) */
29
+ modelValue: readonly NoInfer<T['key']>[];
30
+ /** 左右栏标题 */
31
+ titles?: [string, string];
32
+ /** 是否可搜索 */
33
+ filterable?: boolean;
34
+ /** 搜索占位符 */
35
+ filterPlaceholder?: string;
36
+ /** 自定义筛选函数 */
37
+ filterMethod?: (query: string, item: T) => boolean;
38
+ /** 是否显示全选复选框 */
39
+ showSelectAll?: boolean;
40
+ /** 左侧空状态描述 */
41
+ sourceEmptyText?: string;
42
+ /** 右侧空状态描述 */
43
+ targetEmptyText?: string;
44
+ /** 尺寸 */
45
+ size?: 'small' | 'medium' | 'large';
46
+ /** 大列表自动使用虚拟滚动;自定义可变行高或需要完整 DOM 时可关闭。默认 true,100 项起启用。 */
47
+ virtualScroll?: boolean;
48
+ }
49
+ /** 事件保留数据源的键类型,例如纯数字键仍为 number[]。 */
50
+ interface TransferEmits<T extends TransferItem = TransferItem> {
51
+ 'update:modelValue': [value: Array<T['key']>];
52
+ change: [targetKeys: Array<T['key']>, direction: 'left' | 'right', moveKeys: Array<T['key']>];
53
53
  }
54
- type __VLS_Props = {
55
- /**
56
- * 标签文本格式化函数(用于 i18n)
57
- */
58
- labelFormatter?: (label: string) => string; /** 首页路径 */
59
- homePath?: string; /** 首页标题(原始文本) */
60
- homeTitle?: string; /** 首页图标 */
61
- homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
62
- persistKey?: string; /** 右键菜单文案(国际化适配) */
63
- contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
64
- tagsViewOptions?: UseTagsViewOptions;
54
+ /** 默认 Props */
55
+ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
56
+ //#endregion
57
+ //#region src/components/C_Transfer/index.vue.d.ts
58
+ declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
+ props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
60
+ "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
61
+ onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
62
+ }> & (typeof globalThis extends {
63
+ __VLS_PROPS_FALLBACK: infer P;
64
+ } ? P : {});
65
+ expose: (exposed: {}) => void;
66
+ attrs: any;
67
+ slots: {};
68
+ emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
69
+ }>) => vue.VNode & {
70
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
65
71
  };
66
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
67
- /** useTagsView composable 实例 */tags: {
68
- tagsViewList: vue.Ref<TagItem[], TagItem[]>;
69
- activeTag: vue.Ref<string, string>;
70
- homePath: string;
71
- initTags: (tags?: TagItem[]) => void;
72
- setActiveTag: (path: string) => void;
73
- addTag: (tag: TagItem) => void;
74
- removeTag: (index: number) => string | null;
75
- removeOtherTags: (index: number) => void;
76
- removeLeftTags: (index: number) => void;
77
- removeRightTags: (index: number) => void;
78
- removeAllTags: () => void;
79
- }; /** 滚动到指定标签 */
80
- scrollToTag: (path: string) => void;
81
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- close: (fallbackPath: string) => any;
83
- closeAll: () => any;
84
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
85
- onClose?: ((fallbackPath: string) => any) | undefined;
86
- onCloseAll?: (() => any) | undefined;
87
- }>, {
88
- homePath: string;
89
- homeTitle: string;
90
- homeIcon: string;
91
- persistKey: string;
92
- contextMenuLabels: LegacyContextMenuLabels;
93
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
72
  declare const _default: typeof __VLS_export;
73
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
95
74
  //#endregion
96
- export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };
75
+ export { TransferProps as a, TransferItem as i, DEFAULT_TRANSFER_PROPS as n, TransferEmits as r, _default as t };
@@ -1,96 +1,75 @@
1
- import { s as TagItem } from "./public.js";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
4
2
 
5
- //#region src/components/C_TagsView/useTagsView.d.ts
6
- interface UseTagsViewOptions {
7
- /** localStorage 持久化 key,传空字符串则不持久化 */
8
- persistKey?: string;
9
- /** 首页路径,用于 removeAll 后的回退 */
10
- homePath?: string;
11
- }
3
+ //#region src/components/C_Transfer/types.d.ts
12
4
  /**
13
- * 标签页管理 composable
14
- *
15
- * 独立于组件使用 — 可在任何地方管理标签状态
16
- *
17
- * @example 独立使用
18
- * ```ts
19
- * const tags = useTagsView({ persistKey: 'my-tags' })
20
- * tags.addTag({ path: '/home', title: '首页', meta: { affix: true } })
21
- * ```
5
+ * @Description: 穿梭框组件类型定义
22
6
  */
23
- declare function useTagsView(options?: UseTagsViewOptions): {
24
- tagsViewList: Ref<TagItem[], TagItem[]>;
25
- activeTag: Ref<string, string>;
26
- homePath: string;
27
- initTags: (tags?: TagItem[]) => void;
28
- setActiveTag: (path: string) => void;
29
- addTag: (tag: TagItem) => void;
30
- removeTag: (index: number) => string | null;
31
- removeOtherTags: (index: number) => void;
32
- removeLeftTags: (index: number) => void;
33
- removeRightTags: (index: number) => void;
34
- removeAllTags: () => void;
35
- };
36
- //#endregion
37
- //#region src/components/C_TagsView/types.d.ts
38
- interface ContextMenuLabels {
39
- close?: string;
40
- closeOthers?: string;
41
- closeLeft?: string;
42
- closeRight?: string;
43
- closeAll?: string;
7
+ /** 穿梭框数据项 */
8
+ interface TransferItem<K extends string | number = string | number> {
9
+ /** 唯一标识 */
10
+ key: K;
11
+ /** 显示标签 */
12
+ label: string;
13
+ /** 是否禁用 */
14
+ disabled?: boolean;
15
+ /** 分组名称 */
16
+ group?: string;
17
+ /** 描述信息(用于详细模式) */
18
+ description?: string;
19
+ /** 图标(Iconify) */
20
+ icon?: string;
21
+ /** 额外数据 */
22
+ extra?: Record<string, unknown>;
44
23
  }
45
- //#endregion
46
- //#region src/components/C_TagsView/index.vue.d.ts
47
- interface LegacyContextMenuLabels extends ContextMenuLabels {
48
- close?: string;
49
- closeOthers?: string;
50
- closeLeft?: string;
51
- closeRight?: string;
52
- closeAll?: string;
24
+ /** 组件 Props */
25
+ interface TransferProps<T extends TransferItem = TransferItem> {
26
+ /** 数据源 */
27
+ data: readonly T[];
28
+ /** 右侧已选 key 列表 (v-model) */
29
+ modelValue: readonly NoInfer<T['key']>[];
30
+ /** 左右栏标题 */
31
+ titles?: [string, string];
32
+ /** 是否可搜索 */
33
+ filterable?: boolean;
34
+ /** 搜索占位符 */
35
+ filterPlaceholder?: string;
36
+ /** 自定义筛选函数 */
37
+ filterMethod?: (query: string, item: T) => boolean;
38
+ /** 是否显示全选复选框 */
39
+ showSelectAll?: boolean;
40
+ /** 左侧空状态描述 */
41
+ sourceEmptyText?: string;
42
+ /** 右侧空状态描述 */
43
+ targetEmptyText?: string;
44
+ /** 尺寸 */
45
+ size?: 'small' | 'medium' | 'large';
46
+ /** 大列表自动使用虚拟滚动;自定义可变行高或需要完整 DOM 时可关闭。默认 true,100 项起启用。 */
47
+ virtualScroll?: boolean;
48
+ }
49
+ /** 事件保留数据源的键类型,例如纯数字键仍为 number[]。 */
50
+ interface TransferEmits<T extends TransferItem = TransferItem> {
51
+ 'update:modelValue': [value: Array<T['key']>];
52
+ change: [targetKeys: Array<T['key']>, direction: 'left' | 'right', moveKeys: Array<T['key']>];
53
53
  }
54
- type __VLS_Props = {
55
- /**
56
- * 标签文本格式化函数(用于 i18n)
57
- */
58
- labelFormatter?: (label: string) => string; /** 首页路径 */
59
- homePath?: string; /** 首页标题(原始文本) */
60
- homeTitle?: string; /** 首页图标 */
61
- homeIcon?: string; /** 持久化 localStorage key,传空字符串禁用 */
62
- persistKey?: string; /** 右键菜单文案(国际化适配) */
63
- contextMenuLabels?: LegacyContextMenuLabels; /** useTagsView 配置项(优先级最高) */
64
- tagsViewOptions?: UseTagsViewOptions;
54
+ /** 默认 Props */
55
+ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
56
+ //#endregion
57
+ //#region src/components/C_Transfer/index.vue.d.ts
58
+ declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
+ props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
60
+ "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
61
+ onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
62
+ }> & (typeof globalThis extends {
63
+ __VLS_PROPS_FALLBACK: infer P;
64
+ } ? P : {});
65
+ expose: (exposed: {}) => void;
66
+ attrs: any;
67
+ slots: {};
68
+ emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
69
+ }>) => vue.VNode & {
70
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
65
71
  };
66
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
67
- /** useTagsView composable 实例 */tags: {
68
- tagsViewList: vue.Ref<TagItem[], TagItem[]>;
69
- activeTag: vue.Ref<string, string>;
70
- homePath: string;
71
- initTags: (tags?: TagItem[]) => void;
72
- setActiveTag: (path: string) => void;
73
- addTag: (tag: TagItem) => void;
74
- removeTag: (index: number) => string | null;
75
- removeOtherTags: (index: number) => void;
76
- removeLeftTags: (index: number) => void;
77
- removeRightTags: (index: number) => void;
78
- removeAllTags: () => void;
79
- }; /** 滚动到指定标签 */
80
- scrollToTag: (path: string) => void;
81
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- close: (fallbackPath: string) => any;
83
- closeAll: () => any;
84
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
85
- onClose?: ((fallbackPath: string) => any) | undefined;
86
- onCloseAll?: (() => any) | undefined;
87
- }>, {
88
- homePath: string;
89
- homeTitle: string;
90
- homeIcon: string;
91
- persistKey: string;
92
- contextMenuLabels: LegacyContextMenuLabels;
93
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
72
  declare const _default: typeof __VLS_export;
73
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
95
74
  //#endregion
96
- export { useTagsView as i, ContextMenuLabels as n, UseTagsViewOptions as r, _default as t };
75
+ export { TransferProps as a, TransferItem as i, DEFAULT_TRANSFER_PROPS as n, TransferEmits as r, _default as t };
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- width: number;
24
- label: string;
25
23
  height: number;
24
+ label: string;
25
+ width: number;
26
26
  fontSize: number;
27
+ lineColor: string;
27
28
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
29
+ showBorder: boolean;
30
+ showLabel: boolean;
28
31
  showText: boolean;
29
32
  textPosition: "bottom" | "top";
30
- lineColor: string;
31
33
  background: string;
32
- showBorder: boolean;
33
- showLabel: boolean;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- width: number;
24
- label: string;
25
23
  height: number;
24
+ label: string;
25
+ width: number;
26
26
  fontSize: number;
27
+ lineColor: string;
27
28
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
29
+ showBorder: boolean;
30
+ showLabel: boolean;
28
31
  showText: boolean;
29
32
  textPosition: "bottom" | "top";
30
- lineColor: string;
31
33
  background: string;
32
- showBorder: boolean;
33
- showLabel: boolean;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -106,23 +106,23 @@ declare const __VLS_export: vue.DefineComponent<MenuProps, {
106
106
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
107
107
  "update:modelValue": (key: MenuValue) => any;
108
108
  select: (key: string) => any;
109
- "update:expandedKeys": (keys: string[]) => any;
110
109
  intent: (key: string) => any;
111
110
  "update:value": (key: MenuValue) => any;
111
+ "update:expandedKeys": (keys: string[]) => any;
112
112
  }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
113
113
  "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
114
114
  onSelect?: ((key: string) => any) | undefined;
115
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
116
115
  onIntent?: ((key: string) => any) | undefined;
117
116
  "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
117
+ "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
118
118
  }>, {
119
119
  mode: "vertical" | "horizontal";
120
120
  defaultExpandedKeys: string[];
121
- indent: number;
122
121
  collapsed: boolean;
123
122
  collapsedWidth: number;
124
123
  collapsedIconSize: number;
125
124
  inverted: boolean;
125
+ indent: number;
126
126
  rootIndent: number;
127
127
  dropdownProps: naive_ui0.DropdownProps;
128
128
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -106,8 +106,8 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
106
106
  "onEmoji-click"?: (() => any) | undefined;
107
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
108
108
  }>, {
109
- title: string;
110
109
  placeholder: string;
110
+ title: string;
111
111
  virtualScroll: boolean;
112
112
  showContacts: boolean;
113
113
  showTimestamp: boolean;
@@ -106,8 +106,8 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
106
106
  "onEmoji-click"?: (() => any) | undefined;
107
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
108
108
  }>, {
109
- title: string;
110
109
  placeholder: string;
110
+ title: string;
111
111
  virtualScroll: boolean;
112
112
  showContacts: boolean;
113
113
  showTimestamp: boolean;
@@ -23,12 +23,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
23
23
  copyCode: typeof copyCode;
24
24
  toggleFullscreen: typeof toggleFullscreen;
25
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
26
- click: (event: MouseEvent) => any;
27
26
  copy: (code: string) => any;
27
+ click: (event: MouseEvent) => any;
28
28
  fullscreen: (isFullscreen: boolean) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
- onClick?: ((event: MouseEvent) => any) | undefined;
31
30
  onCopy?: ((code: string) => any) | undefined;
31
+ onClick?: ((event: MouseEvent) => any) | undefined;
32
32
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
33
33
  }>, {
34
34
  trim: boolean;
@@ -23,12 +23,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
23
23
  copyCode: typeof copyCode;
24
24
  toggleFullscreen: typeof toggleFullscreen;
25
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
26
- click: (event: MouseEvent) => any;
27
26
  copy: (code: string) => any;
27
+ click: (event: MouseEvent) => any;
28
28
  fullscreen: (isFullscreen: boolean) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
- onClick?: ((event: MouseEvent) => any) | undefined;
31
30
  onCopy?: ((code: string) => any) | undefined;
31
+ onClick?: ((event: MouseEvent) => any) | undefined;
32
32
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
33
33
  }>, {
34
34
  trim: boolean;
@@ -61,27 +61,27 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
61
61
  close: () => void; /** 当前是否可见 */
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
- close: () => any;
65
64
  select: (item: ContextMenuItem) => any;
66
65
  open: (position: {
67
66
  x: number;
68
67
  y: number;
69
68
  }) => any;
69
+ close: () => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
- onClose?: (() => any) | undefined;
72
71
  onSelect?: ((item: ContextMenuItem) => any) | undefined;
73
72
  onOpen?: ((position: {
74
73
  x: number;
75
74
  y: number;
76
75
  }) => any) | undefined;
76
+ onClose?: (() => any) | undefined;
77
77
  }>, {
78
78
  disabled: boolean;
79
- zIndex: number;
80
79
  items: ContextMenuItem[];
81
80
  minWidth: number;
82
81
  maxWidth: number;
83
82
  subMenuPlacement: "right" | "left";
84
83
  autoClose: boolean;
84
+ zIndex: number;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
86
86
  declare const _default: typeof __VLS_export;
87
87
  //#endregion
@@ -93,9 +93,9 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
93
93
  }>, {
94
94
  height: string;
95
95
  center: MapCoordinate;
96
+ ariaLabel: string;
96
97
  zoom: number;
97
98
  mapType: MapType;
98
- ariaLabel: string;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
@@ -93,9 +93,9 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
93
93
  }>, {
94
94
  height: string;
95
95
  center: MapCoordinate;
96
+ ariaLabel: string;
96
97
  zoom: number;
97
98
  mapType: MapType;
98
- ariaLabel: string;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
@@ -76,10 +76,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
76
76
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
77
77
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
78
78
  }>, {
79
- config: ActionBarConfig;
80
79
  actions: ActionItem[];
81
80
  leftActions: ActionItem[];
82
81
  rightActions: ActionItem[];
82
+ config: ActionBarConfig;
83
83
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
84
84
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
85
85
  declare const _default: typeof __VLS_export;
package/dist/presets.d.ts CHANGED
@@ -76,10 +76,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
76
76
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
77
77
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
78
78
  }>, {
79
- config: ActionBarConfig;
80
79
  actions: ActionItem[];
81
80
  leftActions: ActionItem[];
82
81
  rightActions: ActionItem[];
82
+ config: ActionBarConfig;
83
83
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
84
84
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
85
85
  declare const _default: typeof __VLS_export;