@robot-admin/naive-ui-components 0.17.6 → 0.19.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 (204) hide show
  1. package/CHANGELOG.md +18 -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_Form.cjs +1 -1
  22. package/dist/C_FormModal.d.cts +1 -1
  23. package/dist/C_FormModal.d.ts +1 -1
  24. package/dist/C_FormSearch.cjs +1 -1
  25. package/dist/C_FormSearch.css +52 -52
  26. package/dist/C_FormSearch.d.cts +18 -2
  27. package/dist/C_FormSearch.d.ts +18 -2
  28. package/dist/C_FormSearch.js +1 -1
  29. package/dist/C_FormSearch2.cjs +1 -1
  30. package/dist/C_FormSearch2.js +1 -1
  31. package/dist/C_Guide.d.cts +1 -1
  32. package/dist/C_Guide.d.ts +1 -1
  33. package/dist/C_Icon.d.cts +1 -1
  34. package/dist/C_Icon.d.ts +1 -1
  35. package/dist/C_Language.d.cts +1 -1
  36. package/dist/C_Language.d.ts +1 -1
  37. package/dist/C_Loading.d.cts +1 -1
  38. package/dist/C_Loading.d.ts +1 -1
  39. package/dist/C_Login.d.cts +1 -1
  40. package/dist/C_Login.d.ts +1 -1
  41. package/dist/C_Markdown.d.cts +1 -1
  42. package/dist/C_Markdown.d.ts +1 -1
  43. package/dist/C_Menu.d.ts +1 -1
  44. package/dist/C_OrgChart.d.cts +1 -1
  45. package/dist/C_OrgChart.d.ts +1 -1
  46. package/dist/C_Progress.d.cts +1 -1
  47. package/dist/C_Progress.d.ts +1 -1
  48. package/dist/C_Skeleton.d.cts +1 -1
  49. package/dist/C_Skeleton.d.ts +1 -1
  50. package/dist/C_Steps.d.cts +1 -1
  51. package/dist/C_Steps.d.ts +1 -1
  52. package/dist/C_Table.base.css +144 -155
  53. package/dist/C_Table.css +144 -155
  54. package/dist/C_Table.d.cts +2 -2
  55. package/dist/C_Table.d.ts +6 -6
  56. package/dist/C_TagsView.d.cts +1 -1
  57. package/dist/C_TagsView.d.ts +1 -1
  58. package/dist/C_Theme.d.cts +1 -1
  59. package/dist/C_Theme.d.ts +1 -1
  60. package/dist/C_Time.cjs +1 -1
  61. package/dist/C_Time.css +4 -4
  62. package/dist/C_Time.d.cts +18 -2
  63. package/dist/C_Time.d.ts +18 -2
  64. package/dist/C_Time.js +1 -1
  65. package/dist/C_Time2.cjs +1 -1
  66. package/dist/C_Time2.js +1 -1
  67. package/dist/C_Timeline.d.cts +1 -1
  68. package/dist/C_Timeline.d.ts +1 -1
  69. package/dist/C_Transfer.css +26 -26
  70. package/dist/C_Transfer.d.cts +2 -2
  71. package/dist/C_Transfer.d.ts +2 -2
  72. package/dist/C_Transfer2.cjs +1 -1
  73. package/dist/C_Transfer2.js +1 -1
  74. package/dist/C_Tree.css +23 -23
  75. package/dist/C_Tree.d.ts +4 -4
  76. package/dist/C_Tree2.cjs +1 -1
  77. package/dist/C_Tree2.js +1 -1
  78. package/dist/C_VtableGantt.cjs +1 -1
  79. package/dist/C_VtableGantt.css +31 -31
  80. package/dist/C_VtableGantt.d.cts +18 -2
  81. package/dist/C_VtableGantt.d.ts +18 -2
  82. package/dist/C_VtableGantt.js +1 -1
  83. package/dist/C_WorkFlow.css +150 -150
  84. package/dist/C_WorkFlow.d.cts +2 -2
  85. package/dist/C_WorkFlow.d.ts +2 -2
  86. package/dist/C_WorkFlow2.cjs +1 -1
  87. package/dist/C_WorkFlow2.js +1 -1
  88. package/dist/constants3.d.cts +6 -6
  89. package/dist/constants3.d.ts +6 -6
  90. package/dist/constants4.d.cts +7 -7
  91. package/dist/constants4.d.ts +7 -7
  92. package/dist/constants5.d.cts +2 -2
  93. package/dist/constants5.d.ts +2 -2
  94. package/dist/data.d.cts +7 -7
  95. package/dist/data.d.ts +7 -7
  96. package/dist/dateRange.d.cts +197 -0
  97. package/dist/dateRange.d.ts +197 -0
  98. package/dist/formValidation.cjs +1 -1
  99. package/dist/formValidation.js +1 -1
  100. package/dist/graphics.cjs +1 -0
  101. package/dist/graphics.d.cts +837 -0
  102. package/dist/graphics.d.ts +837 -0
  103. package/dist/graphics.js +1 -0
  104. package/dist/helpers.cjs +1 -1
  105. package/dist/index.cjs +1 -1
  106. package/dist/index.d.cts +47 -43
  107. package/dist/index.d.ts +47 -44
  108. package/dist/index.js +1 -1
  109. package/dist/index.vue.d.cts +4 -4
  110. package/dist/index.vue.d.ts +4 -4
  111. package/dist/index10.vue.d.cts +3 -3
  112. package/dist/index10.vue.d.ts +53 -68
  113. package/dist/index11.vue.d.cts +53 -68
  114. package/dist/index11.vue.d.ts +52 -58
  115. package/dist/index12.vue.d.cts +52 -58
  116. package/dist/index12.vue.d.ts +124 -50
  117. package/dist/index13.vue.d.cts +124 -50
  118. package/dist/index13.vue.d.ts +51 -123
  119. package/dist/index14.vue.d.cts +51 -123
  120. package/dist/index14.vue.d.ts +26 -52
  121. package/dist/index15.vue.d.cts +26 -52
  122. package/dist/index15.vue.d.ts +12 -26
  123. package/dist/index16.vue.d.cts +12 -26
  124. package/dist/index16.vue.d.ts +129 -13
  125. package/dist/index17.vue.d.cts +129 -13
  126. package/dist/index17.vue.d.ts +76 -129
  127. package/dist/index18.vue.d.cts +76 -129
  128. package/dist/index18.vue.d.ts +65 -75
  129. package/dist/index19.vue.d.cts +97 -75
  130. package/dist/index19.vue.d.ts +94 -62
  131. package/dist/index2.vue.d.cts +2 -2
  132. package/dist/index2.vue.d.ts +2 -2
  133. package/dist/index20.vue.d.cts +40 -91
  134. package/dist/index20.vue.d.ts +40 -91
  135. package/dist/index21.vue.d.cts +89 -40
  136. package/dist/index21.vue.d.ts +89 -40
  137. package/dist/index22.vue.d.cts +37 -95
  138. package/dist/index22.vue.d.ts +37 -95
  139. package/dist/index23.vue.d.cts +8 -34
  140. package/dist/index23.vue.d.ts +8 -34
  141. package/dist/index24.vue.d.cts +86 -9
  142. package/dist/index24.vue.d.ts +86 -9
  143. package/dist/index25.vue.d.cts +99 -654
  144. package/dist/index25.vue.d.ts +99 -654
  145. package/dist/index26.vue.d.cts +66 -87
  146. package/dist/index26.vue.d.ts +66 -87
  147. package/dist/index3.vue.d.cts +2 -2
  148. package/dist/index3.vue.d.ts +2 -2
  149. package/dist/index4.vue.d.cts +3 -3
  150. package/dist/index6.vue.d.ts +3 -3
  151. package/dist/index7.vue.d.cts +3 -3
  152. package/dist/index8.vue.d.ts +4 -4
  153. package/dist/index9.vue.d.cts +4 -4
  154. package/dist/index9.vue.d.ts +3 -3
  155. package/dist/mapUtils.d.cts +3 -3
  156. package/dist/mapUtils.d.ts +3 -3
  157. package/dist/presets.d.cts +5 -3
  158. package/dist/presets.d.ts +5 -3
  159. package/dist/style.css +499 -510
  160. package/dist/types.d.ts +51 -0
  161. package/dist/types2.d.cts +51 -0
  162. package/dist/useCalendarEvents.d.cts +2 -2
  163. package/dist/useCalendarEvents.d.ts +2 -2
  164. package/dist/useCollapsePanel.d.cts +4 -4
  165. package/dist/useCollapsePanel.d.ts +4 -4
  166. package/dist/useCropperCore.d.cts +9 -9
  167. package/dist/useCropperCore.d.ts +9 -9
  168. package/dist/useDraggableLayout.d.cts +94 -125
  169. package/dist/useDraggableLayout.d.ts +94 -125
  170. package/dist/useDynamicFormState.d.cts +23 -15
  171. package/dist/useDynamicFormState.d.ts +23 -15
  172. package/dist/useEdgeInteraction.d.cts +10 -5
  173. package/dist/useEdgeInteraction.d.ts +10 -5
  174. package/dist/useFullscreen.d.cts +3 -3
  175. package/dist/useFullscreen.d.ts +3 -3
  176. package/dist/useInfiniteScroll.d.cts +2 -2
  177. package/dist/useInfiniteScroll.d.ts +2 -2
  178. package/dist/useQRCode.d.cts +4 -4
  179. package/dist/useQRCode.d.ts +4 -4
  180. package/dist/useSignatureHistory.d.cts +3 -3
  181. package/dist/useSignatureHistory.d.ts +3 -3
  182. package/dist/useSplitResize.d.cts +6 -6
  183. package/dist/useSplitResize.d.ts +6 -6
  184. package/dist/useTableQuery.cjs +2 -2
  185. package/dist/useTableQuery.d.cts +490 -519
  186. package/dist/useTableQuery.d.ts +490 -519
  187. package/dist/useTableQuery.js +2 -2
  188. package/dist/useTimeSelection.d.cts +19 -52
  189. package/dist/useTimeSelection.d.ts +19 -52
  190. package/dist/useWorkflowValidation.d.cts +495 -116
  191. package/dist/useWorkflowValidation.d.ts +495 -116
  192. package/dist/verification.d.cts +4 -4
  193. package/dist/verification.d.ts +4 -4
  194. package/docs/guides/usage.en.md +18 -1
  195. package/docs/guides/usage.md +18 -1
  196. package/package.json +2 -2
  197. package/dist/C_VtableGantt2.cjs +0 -1
  198. package/dist/C_VtableGantt2.js +0 -1
  199. package/dist/index27.vue.d.cts +0 -111
  200. package/dist/index27.vue.d.ts +0 -111
  201. package/dist/index28.vue.d.cts +0 -84
  202. package/dist/index28.vue.d.ts +0 -84
  203. package/dist/useSearchState.d.cts +0 -163
  204. 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: "left" | "right", 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: "left" | "right", 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
- persistKey: string;
89
- homePath: string;
90
- homeTitle: string;
91
- homeIcon: 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: "left" | "right", 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: "left" | "right", 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
- persistKey: string;
89
- homePath: string;
90
- homeTitle: string;
91
- homeIcon: 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,16 +20,16 @@ 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;
23
24
  height: number;
24
25
  label: string;
25
26
  fontSize: number;
26
27
  lineColor: string;
27
- width: number;
28
- showBorder: boolean;
29
28
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
30
29
  showText: boolean;
31
30
  textPosition: "bottom" | "top";
32
31
  background: string;
32
+ showBorder: boolean;
33
33
  showLabel: boolean;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
@@ -20,16 +20,16 @@ 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;
23
24
  height: number;
24
25
  label: string;
25
26
  fontSize: number;
26
27
  lineColor: string;
27
- width: number;
28
- showBorder: boolean;
29
28
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
30
29
  showText: boolean;
31
30
  textPosition: "bottom" | "top";
32
31
  background: string;
32
+ showBorder: boolean;
33
33
  showLabel: boolean;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
@@ -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>;
@@ -88,27 +88,27 @@ type __VLS_Slots = {} & {
88
88
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
89
89
  scrollToBottom: () => void;
90
90
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
91
+ "load-more": () => any;
91
92
  send: (content: string) => any;
92
93
  "select-contact": (id: string) => any;
93
- "load-more": () => any;
94
94
  "image-preview": (url: string) => any;
95
95
  "file-click": (msg: ChatMessage) => any;
96
96
  "file-upload": () => any;
97
97
  "emoji-click": () => any;
98
98
  resend: (msg: ChatMessage) => any;
99
99
  }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
100
+ "onLoad-more"?: (() => any) | undefined;
100
101
  onSend?: ((content: string) => any) | undefined;
101
102
  "onSelect-contact"?: ((id: string) => any) | undefined;
102
- "onLoad-more"?: (() => any) | undefined;
103
103
  "onImage-preview"?: ((url: string) => any) | undefined;
104
104
  "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
105
105
  "onFile-upload"?: (() => any) | undefined;
106
106
  "onEmoji-click"?: (() => any) | undefined;
107
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
108
108
  }>, {
109
- placeholder: string;
110
109
  virtualScroll: boolean;
111
110
  title: string;
111
+ placeholder: string;
112
112
  showContacts: boolean;
113
113
  showTimestamp: boolean;
114
114
  showSendBtn: boolean;
@@ -88,27 +88,27 @@ type __VLS_Slots = {} & {
88
88
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
89
89
  scrollToBottom: () => void;
90
90
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
91
+ "load-more": () => any;
91
92
  send: (content: string) => any;
92
93
  "select-contact": (id: string) => any;
93
- "load-more": () => any;
94
94
  "image-preview": (url: string) => any;
95
95
  "file-click": (msg: ChatMessage) => any;
96
96
  "file-upload": () => any;
97
97
  "emoji-click": () => any;
98
98
  resend: (msg: ChatMessage) => any;
99
99
  }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
100
+ "onLoad-more"?: (() => any) | undefined;
100
101
  onSend?: ((content: string) => any) | undefined;
101
102
  "onSelect-contact"?: ((id: string) => any) | undefined;
102
- "onLoad-more"?: (() => any) | undefined;
103
103
  "onImage-preview"?: ((url: string) => any) | undefined;
104
104
  "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
105
105
  "onFile-upload"?: (() => any) | undefined;
106
106
  "onEmoji-click"?: (() => any) | undefined;
107
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
108
108
  }>, {
109
- placeholder: string;
110
109
  virtualScroll: boolean;
111
110
  title: string;
111
+ placeholder: string;
112
112
  showContacts: boolean;
113
113
  showTimestamp: boolean;
114
114
  showSendBtn: boolean;
@@ -23,18 +23,18 @@ declare const __VLS_export: vue.DefineComponent<Props, {
23
23
  copyCode: typeof copyCode;
24
24
  toggleFullscreen: typeof toggleFullscreen;
25
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
26
+ fullscreen: (isFullscreen: boolean) => any;
26
27
  click: (event: MouseEvent) => any;
27
28
  copy: (code: string) => any;
28
- fullscreen: (isFullscreen: boolean) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
+ onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
30
31
  onClick?: ((event: MouseEvent) => any) | undefined;
31
32
  onCopy?: ((code: string) => any) | undefined;
32
- onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
33
33
  }>, {
34
- trim: boolean;
35
- code: string;
36
34
  language: string;
37
35
  showHeader: boolean;
36
+ trim: boolean;
37
+ code: string;
38
38
  showLineNumbers: boolean;
39
39
  wordWrap: boolean;
40
40
  showFullscreen: boolean;
@@ -23,18 +23,18 @@ declare const __VLS_export: vue.DefineComponent<Props, {
23
23
  copyCode: typeof copyCode;
24
24
  toggleFullscreen: typeof toggleFullscreen;
25
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
26
+ fullscreen: (isFullscreen: boolean) => any;
26
27
  click: (event: MouseEvent) => any;
27
28
  copy: (code: string) => any;
28
- fullscreen: (isFullscreen: boolean) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
+ onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
30
31
  onClick?: ((event: MouseEvent) => any) | undefined;
31
32
  onCopy?: ((code: string) => any) | undefined;
32
- onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
33
33
  }>, {
34
- trim: boolean;
35
- code: string;
36
34
  language: string;
37
35
  showHeader: boolean;
36
+ trim: boolean;
37
+ code: string;
38
38
  showLineNumbers: boolean;
39
39
  wordWrap: boolean;
40
40
  showFullscreen: boolean;
@@ -62,26 +62,26 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
64
  select: (item: ContextMenuItem) => any;
65
- close: () => 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
71
  onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
- onClose?: (() => 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
  minWidth: number;
81
80
  maxWidth: number;
82
81
  items: ContextMenuItem[];
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
@@ -83,17 +83,17 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
- error: (error: Error) => any;
87
86
  ready: (map: MapInstance) => any;
87
+ error: (error: Error) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onError?: ((error: Error) => any) | undefined;
91
90
  onReady?: ((map: MapInstance) => any) | undefined;
91
+ onError?: ((error: Error) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
95
- ariaLabel: string;
96
95
  center: MapCoordinate;
96
+ ariaLabel: string;
97
97
  zoom: number;
98
98
  mapType: MapType;
99
99
  markers: MapMarker[];
@@ -83,17 +83,17 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
- error: (error: Error) => any;
87
86
  ready: (map: MapInstance) => any;
87
+ error: (error: Error) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onError?: ((error: Error) => any) | undefined;
91
90
  onReady?: ((map: MapInstance) => any) | undefined;
91
+ onError?: ((error: Error) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
95
- ariaLabel: string;
96
95
  center: MapCoordinate;
96
+ ariaLabel: string;
97
97
  zoom: number;
98
98
  mapType: MapType;
99
99
  markers: MapMarker[];
@@ -13,7 +13,8 @@ interface ActionDropdownItem {
13
13
  icon?: string;
14
14
  disabled?: ActionState;
15
15
  show?: ActionState;
16
- onClick?: () => void | Promise<void>;
16
+ /** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
17
+ onClick?: () => unknown;
17
18
  }
18
19
  interface ActionItem {
19
20
  /** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
@@ -31,7 +32,8 @@ interface ActionItem {
31
32
  dropdown?: ActionDropdownItem[];
32
33
  /** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
33
34
  autoLoading?: boolean;
34
- onClick?: () => void | Promise<void>;
35
+ /** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
36
+ onClick?: () => unknown;
35
37
  /** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
36
38
  buttonProps?: Partial<ButtonProps>;
37
39
  directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
@@ -77,9 +79,9 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
77
79
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
78
80
  }>, {
79
81
  actions: ActionItem[];
80
- config: ActionBarConfig;
81
82
  leftActions: ActionItem[];
82
83
  rightActions: ActionItem[];
84
+ config: ActionBarConfig;
83
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
84
86
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
85
87
  declare const _default: typeof __VLS_export;
package/dist/presets.d.ts CHANGED
@@ -13,7 +13,8 @@ interface ActionDropdownItem {
13
13
  icon?: string;
14
14
  disabled?: ActionState;
15
15
  show?: ActionState;
16
- onClick?: () => void | Promise<void>;
16
+ /** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
17
+ onClick?: () => unknown;
17
18
  }
18
19
  interface ActionItem {
19
20
  /** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
@@ -31,7 +32,8 @@ interface ActionItem {
31
32
  dropdown?: ActionDropdownItem[];
32
33
  /** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
33
34
  autoLoading?: boolean;
34
- onClick?: () => void | Promise<void>;
35
+ /** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
36
+ onClick?: () => unknown;
35
37
  /** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
36
38
  buttonProps?: Partial<ButtonProps>;
37
39
  directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
@@ -77,9 +79,9 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
77
79
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
78
80
  }>, {
79
81
  actions: ActionItem[];
80
- config: ActionBarConfig;
81
82
  leftActions: ActionItem[];
82
83
  rightActions: ActionItem[];
84
+ config: ActionBarConfig;
83
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
84
86
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
85
87
  declare const _default: typeof __VLS_export;