@robot-admin/naive-ui-components 0.30.1 → 0.31.1

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 (195) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +7 -5
  3. package/README_EN.md +7 -5
  4. package/dist/C_ActionBar2.cjs +1 -1
  5. package/dist/C_ActionBar2.js +1 -1
  6. package/dist/C_Cascade.css +7 -5
  7. package/dist/C_Cascade2.cjs +1 -1
  8. package/dist/C_Cascade2.js +1 -1
  9. package/dist/C_City.css +48 -37
  10. package/dist/C_City2.cjs +1 -1
  11. package/dist/C_City2.js +1 -1
  12. package/dist/C_CollapsePanel.css +41 -41
  13. package/dist/C_CollapsePanel2.cjs +1 -1
  14. package/dist/C_CollapsePanel2.js +1 -1
  15. package/dist/C_Date.css +5 -5
  16. package/dist/C_Date2.cjs +1 -1
  17. package/dist/C_Date2.js +1 -1
  18. package/dist/C_Editor.css +18 -18
  19. package/dist/C_Editor2.cjs +1 -1
  20. package/dist/C_Editor2.js +1 -1
  21. package/dist/C_FilePreview.css +72 -41
  22. package/dist/C_FilePreview2.cjs +1 -1
  23. package/dist/C_FilePreview2.js +1 -1
  24. package/dist/C_Form.base.css +46 -16
  25. package/dist/C_Form.css +46 -16
  26. package/dist/C_FormSearch.css +134 -80
  27. package/dist/C_FullCalendar2.cjs +1 -1
  28. package/dist/C_FullCalendar2.js +1 -1
  29. package/dist/C_GlobalSearch2.cjs +1 -1
  30. package/dist/C_GlobalSearch2.js +1 -1
  31. package/dist/C_Select.cjs +1 -0
  32. package/dist/C_Select.css +30 -0
  33. package/dist/C_Select.d.cts +2 -0
  34. package/dist/C_Select.d.ts +2 -0
  35. package/dist/C_Select.js +1 -0
  36. package/dist/C_Select2.cjs +1 -0
  37. package/dist/C_Select2.js +1 -0
  38. package/dist/C_Skeleton.d.cts +1 -1
  39. package/dist/C_Skeleton.d.ts +1 -1
  40. package/dist/C_Steps.d.cts +1 -1
  41. package/dist/C_Steps.d.ts +1 -1
  42. package/dist/C_Table.base.css +46 -16
  43. package/dist/C_Table.d.ts +2 -1
  44. package/dist/C_Table2.cjs +3 -3
  45. package/dist/C_Table2.js +3 -3
  46. package/dist/C_TagsView.d.cts +1 -1
  47. package/dist/C_TagsView.d.ts +1 -1
  48. package/dist/C_Theme.d.cts +1 -1
  49. package/dist/C_Theme.d.ts +1 -1
  50. package/dist/C_Time.css +4 -4
  51. package/dist/C_Time.d.cts +5 -5
  52. package/dist/C_Time.d.ts +5 -5
  53. package/dist/C_Time2.cjs +1 -1
  54. package/dist/C_Time2.js +1 -1
  55. package/dist/C_Timeline.d.cts +1 -1
  56. package/dist/C_Timeline.d.ts +1 -1
  57. package/dist/C_Transfer.css +43 -41
  58. package/dist/C_Transfer.d.cts +1 -1
  59. package/dist/C_Transfer.d.ts +1 -1
  60. package/dist/C_Transfer2.cjs +1 -1
  61. package/dist/C_Transfer2.js +1 -1
  62. package/dist/C_Tree.d.ts +2 -1
  63. package/dist/C_Upload.css +58 -58
  64. package/dist/C_Upload2.cjs +1 -1
  65. package/dist/C_Upload2.js +1 -1
  66. package/dist/actionIcon.cjs +1 -0
  67. package/dist/actionIcon.js +1 -0
  68. package/dist/constants.d.cts +2 -2
  69. package/dist/constants.d.ts +2 -2
  70. package/dist/constants2.d.cts +2 -2
  71. package/dist/constants2.d.ts +2 -2
  72. package/dist/constants3.d.cts +2 -2
  73. package/dist/constants3.d.ts +2 -2
  74. package/dist/constants4.d.cts +10 -7
  75. package/dist/constants4.d.ts +10 -7
  76. package/dist/constants5.d.cts +2 -2
  77. package/dist/constants5.d.ts +2 -2
  78. package/dist/data2.d.cts +9 -9
  79. package/dist/data2.d.ts +9 -9
  80. package/dist/dateRange.d.cts +6 -4
  81. package/dist/dateRange.d.ts +6 -4
  82. package/dist/formField.d.cts +6 -0
  83. package/dist/formField.d.ts +6 -0
  84. package/dist/helpers.cjs +1 -1
  85. package/dist/helpers.js +1 -1
  86. package/dist/index.cjs +1 -1
  87. package/dist/index.d.cts +17 -16
  88. package/dist/index.d.ts +18 -16
  89. package/dist/index.js +1 -1
  90. package/dist/index.vue.d.cts +4 -4
  91. package/dist/index.vue.d.ts +4 -4
  92. package/dist/index10.vue.d.cts +4 -4
  93. package/dist/index10.vue.d.ts +4 -4
  94. package/dist/index11.vue.d.cts +4 -4
  95. package/dist/index12.vue.d.ts +3 -3
  96. package/dist/index13.vue.d.cts +3 -3
  97. package/dist/index15.vue.d.ts +2 -2
  98. package/dist/index16.vue.d.cts +2 -2
  99. package/dist/index16.vue.d.ts +8 -8
  100. package/dist/index17.vue.d.cts +8 -8
  101. package/dist/index17.vue.d.ts +2 -2
  102. package/dist/index18.vue.d.cts +2 -2
  103. package/dist/index18.vue.d.ts +1 -1
  104. package/dist/index19.vue.d.cts +1 -1
  105. package/dist/index19.vue.d.ts +1 -1
  106. package/dist/index2.vue.d.cts +2 -2
  107. package/dist/index2.vue.d.ts +2 -2
  108. package/dist/index20.vue.d.cts +1 -1
  109. package/dist/index20.vue.d.ts +4 -4
  110. package/dist/index21.vue.d.cts +4 -4
  111. package/dist/index22.vue.d.cts +2 -2
  112. package/dist/index22.vue.d.ts +2 -2
  113. package/dist/index23.vue.d.cts +1 -1
  114. package/dist/index23.vue.d.ts +1 -1
  115. package/dist/index25.vue.d.cts +46 -94
  116. package/dist/index25.vue.d.ts +46 -94
  117. package/dist/index26.vue.d.cts +95 -37
  118. package/dist/index26.vue.d.ts +95 -37
  119. package/dist/index27.vue.d.cts +34 -8
  120. package/dist/index27.vue.d.ts +34 -8
  121. package/dist/index28.vue.d.cts +9 -86
  122. package/dist/index28.vue.d.ts +9 -86
  123. package/dist/index29.vue.d.cts +85 -99
  124. package/dist/index29.vue.d.ts +85 -99
  125. package/dist/index3.vue.d.cts +5 -5
  126. package/dist/index3.vue.d.ts +5 -5
  127. package/dist/index30.vue.d.cts +94 -59
  128. package/dist/index30.vue.d.ts +94 -59
  129. package/dist/index31.vue.d.cts +79 -0
  130. package/dist/index31.vue.d.ts +79 -0
  131. package/dist/index6.vue.d.ts +5 -2
  132. package/dist/index7.vue.d.cts +5 -2
  133. package/dist/index7.vue.d.ts +3 -3
  134. package/dist/index8.vue.d.cts +3 -3
  135. package/dist/index8.vue.d.ts +7 -4
  136. package/dist/index9.vue.d.cts +7 -4
  137. package/dist/index9.vue.d.ts +4 -4
  138. package/dist/localTime.cjs +1 -0
  139. package/dist/localTime.js +1 -0
  140. package/dist/mapUtils.d.cts +2 -2
  141. package/dist/mapUtils.d.ts +2 -2
  142. package/dist/resolver.cjs +1 -1
  143. package/dist/resolver.d.cts +1 -1
  144. package/dist/resolver.d.ts +1 -1
  145. package/dist/resolver.js +1 -1
  146. package/dist/{options.cjs → selectPresentation.cjs} +1 -1
  147. package/dist/{options.js → selectPresentation.js} +1 -1
  148. package/dist/serializeSearch.cjs +1 -1
  149. package/dist/serializeSearch.js +1 -1
  150. package/dist/style.css +449 -347
  151. package/dist/temporalField.cjs +1 -0
  152. package/dist/temporalField.js +1 -0
  153. package/dist/tree-select.cjs +1 -0
  154. package/dist/tree-select.js +1 -0
  155. package/dist/types2.d.ts +4 -0
  156. package/dist/types3.d.cts +4 -0
  157. package/dist/useCalendarEvents.d.cts +10 -2
  158. package/dist/useCalendarEvents.d.ts +10 -2
  159. package/dist/useCollapsePanel.d.cts +10 -6
  160. package/dist/useCollapsePanel.d.ts +10 -6
  161. package/dist/useCropperCore.d.cts +4 -4
  162. package/dist/useCropperCore.d.ts +4 -4
  163. package/dist/useDynamicFormState.d.cts +2 -2
  164. package/dist/useDynamicFormState.d.ts +2 -2
  165. package/dist/useEdgeInteraction.d.cts +1 -1
  166. package/dist/useEdgeInteraction.d.ts +1 -1
  167. package/dist/useFormConfig.d.cts +4 -2
  168. package/dist/useFormConfig.d.ts +4 -2
  169. package/dist/useFullscreen.d.cts +9 -3
  170. package/dist/useFullscreen.d.ts +9 -3
  171. package/dist/useGlobalSearch.d.cts +2 -16
  172. package/dist/useGlobalSearch.d.ts +2 -16
  173. package/dist/useInfiniteScroll.d.cts +2 -2
  174. package/dist/useInfiniteScroll.d.ts +2 -2
  175. package/dist/useQRCode.d.cts +4 -4
  176. package/dist/useQRCode.d.ts +4 -4
  177. package/dist/useSignatureHistory.d.cts +3 -3
  178. package/dist/useSignatureHistory.d.ts +3 -3
  179. package/dist/useSplitResize.d.cts +12 -12
  180. package/dist/useSplitResize.d.ts +12 -12
  181. package/dist/useTableQuery.d.cts +8 -8
  182. package/dist/useTableQuery.d.ts +8 -8
  183. package/dist/useTimeSelection.d.cts +36 -17
  184. package/dist/useTimeSelection.d.ts +36 -17
  185. package/dist/useWorkflowValidation.d.cts +36 -36
  186. package/dist/useWorkflowValidation.d.ts +36 -36
  187. package/dist/verification.d.cts +2 -2
  188. package/dist/verification.d.ts +2 -2
  189. package/docs/components.en.md +5 -2
  190. package/docs/components.md +5 -2
  191. package/docs/guides/data-workflows.md +43 -0
  192. package/docs/guides/search-workflows.md +3 -3
  193. package/docs/guides/usage.en.md +8 -0
  194. package/docs/guides/usage.md +14 -0
  195. package/package.json +2 -1
@@ -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
- fontSize: number;
24
- label: string;
25
- lineColor: string;
26
23
  width: number;
27
24
  height: number;
28
- background: string;
25
+ label: string;
26
+ fontSize: number;
27
+ lineColor: string;
29
28
  showBorder: boolean;
29
+ showLabel: boolean;
30
30
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
31
  showText: boolean;
32
32
  textPosition: "bottom" | "top";
33
- showLabel: boolean;
33
+ background: string;
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
- fontSize: number;
24
- label: string;
25
- lineColor: string;
26
23
  width: number;
27
24
  height: number;
28
- background: string;
25
+ label: string;
26
+ fontSize: number;
27
+ lineColor: string;
29
28
  showBorder: boolean;
29
+ showLabel: boolean;
30
30
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
31
  showText: boolean;
32
32
  textPosition: "bottom" | "top";
33
- showLabel: boolean;
33
+ background: string;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -1,75 +1,110 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Transfer/types.d.ts
3
+ //#region src/components/C_Timeline/types.d.ts
4
4
  /**
5
- * @Description: 穿梭框组件类型定义
5
+ * @Description: 时间线组件类型定义
6
6
  */
7
- /** 穿梭框数据项 */
8
- interface TransferItem<K extends string | number = string | number> {
7
+ /** 单条时间线节点 */
8
+ interface TimelineItem {
9
9
  /** 唯一标识 */
10
- key: K;
11
- /** 显示标签 */
12
- label: string;
13
- /** 是否禁用 */
14
- disabled?: boolean;
15
- /** 分组名称 */
16
- group?: string;
17
- /** 描述信息(用于详细模式) */
18
- description?: string;
19
- /** 图标(Iconify) */
10
+ id: string | number;
11
+ /** 标题 */
12
+ title: string;
13
+ /** 描述内容(支持 HTML 字符串) */
14
+ content?: string;
15
+ /** 时间标签 */
16
+ time?: string;
17
+ /** 节点颜色(CSS 颜色值) */
18
+ color?: string;
19
+ /** 节点图标(Iconify 图标名) */
20
20
  icon?: string;
21
- /** 额外数据 */
21
+ /** 节点状态 */
22
+ status?: 'default' | 'success' | 'warning' | 'error' | 'info';
23
+ /** 是否可展开/折叠详情 */
24
+ collapsible?: boolean;
25
+ /** 初始是否展开 */
26
+ defaultExpanded?: boolean;
27
+ /** 附加标签组 */
28
+ tags?: Array<{
29
+ text: string;
30
+ type?: string;
31
+ }>;
32
+ /** 自定义额外数据 */
22
33
  extra?: Record<string, unknown>;
23
34
  }
24
35
  /** 组件 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?: readonly [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
- /** 尺寸 */
36
+ interface TimelineProps {
37
+ /** 时间线数据 */
38
+ items: TimelineItem[];
39
+ /** 布局方向 */
40
+ mode?: 'vertical' | 'horizontal';
41
+ /** 垂直模式下时间标签位置 */
42
+ labelPlacement?: 'left' | 'right' | 'alternate';
43
+ /** 是否显示尾部加载更多指示 */
44
+ pending?: boolean;
45
+ /** 加载更多文案 */
46
+ pendingText?: string;
47
+ /** 是否反转排列(最新在前) */
48
+ reverse?: boolean;
49
+ /** 节点大小 */
45
50
  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']>];
51
+ /** 连接线样式 */
52
+ lineType?: 'solid' | 'dashed' | 'dotted';
53
+ /** 是否显示时间标签 */
54
+ showTime?: boolean;
53
55
  }
54
56
  /** 默认 Props */
55
- declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
57
+ declare const DEFAULT_TIMELINE_PROPS: {
58
+ mode: "vertical";
59
+ labelPlacement: "right";
60
+ pending: boolean;
61
+ pendingText: string;
62
+ reverse: boolean;
63
+ size: "medium";
64
+ lineType: "solid";
65
+ showTime: boolean;
66
+ };
67
+ /** 状态 → 颜色映射 */
68
+ declare const STATUS_COLOR_MAP: Record<string, string>;
56
69
  //#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>>;
70
+ //#region src/components/C_Timeline/index.vue.d.ts
71
+ declare var __VLS_1: {
72
+ item: TimelineItem;
73
+ index: number;
74
+ }, __VLS_8: {
75
+ item: TimelineItem;
76
+ index: number;
77
+ };
78
+ type __VLS_Slots = {} & {
79
+ dot?: (props: typeof __VLS_1) => any;
80
+ } & {
81
+ title?: (props: typeof __VLS_8) => any;
71
82
  };
83
+ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
+ /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
+ collapseAll: () => void;
86
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
+ expand: (item: TimelineItem, expanded: boolean) => any;
88
+ "item-click": (item: TimelineItem, index: number) => any;
89
+ }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
+ onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
+ "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
+ }>, {
93
+ reverse: boolean;
94
+ pending: boolean;
95
+ mode: "vertical" | "horizontal";
96
+ size: "small" | "medium" | "large";
97
+ items: TimelineItem[];
98
+ labelPlacement: "left" | "right" | "alternate";
99
+ lineType: "solid" | "dashed" | "dotted";
100
+ showTime: boolean;
101
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
102
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
72
103
  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] }) & {};
104
+ type __VLS_WithSlots<T, S> = T & {
105
+ new (): {
106
+ $slots: S;
107
+ };
108
+ };
74
109
  //#endregion
75
- export { TransferProps as a, TransferItem as i, DEFAULT_TRANSFER_PROPS as n, TransferEmits as r, _default as t };
110
+ export { TimelineProps as a, TimelineItem as i, DEFAULT_TIMELINE_PROPS as n, STATUS_COLOR_MAP as r, _default as t };
@@ -1,75 +1,110 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Transfer/types.d.ts
3
+ //#region src/components/C_Timeline/types.d.ts
4
4
  /**
5
- * @Description: 穿梭框组件类型定义
5
+ * @Description: 时间线组件类型定义
6
6
  */
7
- /** 穿梭框数据项 */
8
- interface TransferItem<K extends string | number = string | number> {
7
+ /** 单条时间线节点 */
8
+ interface TimelineItem {
9
9
  /** 唯一标识 */
10
- key: K;
11
- /** 显示标签 */
12
- label: string;
13
- /** 是否禁用 */
14
- disabled?: boolean;
15
- /** 分组名称 */
16
- group?: string;
17
- /** 描述信息(用于详细模式) */
18
- description?: string;
19
- /** 图标(Iconify) */
10
+ id: string | number;
11
+ /** 标题 */
12
+ title: string;
13
+ /** 描述内容(支持 HTML 字符串) */
14
+ content?: string;
15
+ /** 时间标签 */
16
+ time?: string;
17
+ /** 节点颜色(CSS 颜色值) */
18
+ color?: string;
19
+ /** 节点图标(Iconify 图标名) */
20
20
  icon?: string;
21
- /** 额外数据 */
21
+ /** 节点状态 */
22
+ status?: 'default' | 'success' | 'warning' | 'error' | 'info';
23
+ /** 是否可展开/折叠详情 */
24
+ collapsible?: boolean;
25
+ /** 初始是否展开 */
26
+ defaultExpanded?: boolean;
27
+ /** 附加标签组 */
28
+ tags?: Array<{
29
+ text: string;
30
+ type?: string;
31
+ }>;
32
+ /** 自定义额外数据 */
22
33
  extra?: Record<string, unknown>;
23
34
  }
24
35
  /** 组件 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?: readonly [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
- /** 尺寸 */
36
+ interface TimelineProps {
37
+ /** 时间线数据 */
38
+ items: TimelineItem[];
39
+ /** 布局方向 */
40
+ mode?: 'vertical' | 'horizontal';
41
+ /** 垂直模式下时间标签位置 */
42
+ labelPlacement?: 'left' | 'right' | 'alternate';
43
+ /** 是否显示尾部加载更多指示 */
44
+ pending?: boolean;
45
+ /** 加载更多文案 */
46
+ pendingText?: string;
47
+ /** 是否反转排列(最新在前) */
48
+ reverse?: boolean;
49
+ /** 节点大小 */
45
50
  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']>];
51
+ /** 连接线样式 */
52
+ lineType?: 'solid' | 'dashed' | 'dotted';
53
+ /** 是否显示时间标签 */
54
+ showTime?: boolean;
53
55
  }
54
56
  /** 默认 Props */
55
- declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
57
+ declare const DEFAULT_TIMELINE_PROPS: {
58
+ mode: "vertical";
59
+ labelPlacement: "right";
60
+ pending: boolean;
61
+ pendingText: string;
62
+ reverse: boolean;
63
+ size: "medium";
64
+ lineType: "solid";
65
+ showTime: boolean;
66
+ };
67
+ /** 状态 → 颜色映射 */
68
+ declare const STATUS_COLOR_MAP: Record<string, string>;
56
69
  //#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>>;
70
+ //#region src/components/C_Timeline/index.vue.d.ts
71
+ declare var __VLS_1: {
72
+ item: TimelineItem;
73
+ index: number;
74
+ }, __VLS_8: {
75
+ item: TimelineItem;
76
+ index: number;
77
+ };
78
+ type __VLS_Slots = {} & {
79
+ dot?: (props: typeof __VLS_1) => any;
80
+ } & {
81
+ title?: (props: typeof __VLS_8) => any;
71
82
  };
83
+ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
+ /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
+ collapseAll: () => void;
86
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
+ expand: (item: TimelineItem, expanded: boolean) => any;
88
+ "item-click": (item: TimelineItem, index: number) => any;
89
+ }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
+ onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
+ "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
+ }>, {
93
+ reverse: boolean;
94
+ pending: boolean;
95
+ mode: "vertical" | "horizontal";
96
+ size: "small" | "medium" | "large";
97
+ items: TimelineItem[];
98
+ labelPlacement: "left" | "right" | "alternate";
99
+ lineType: "solid" | "dashed" | "dotted";
100
+ showTime: boolean;
101
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
102
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
72
103
  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] }) & {};
104
+ type __VLS_WithSlots<T, S> = T & {
105
+ new (): {
106
+ $slots: S;
107
+ };
108
+ };
74
109
  //#endregion
75
- export { TransferProps as a, TransferItem as i, DEFAULT_TRANSFER_PROPS as n, TransferEmits as r, _default as t };
110
+ export { TimelineProps as a, TimelineItem as i, DEFAULT_TIMELINE_PROPS as n, STATUS_COLOR_MAP as r, _default as t };
@@ -0,0 +1,79 @@
1
+ import * as vue from "vue";
2
+
3
+ //#region src/components/C_Transfer/types.d.ts
4
+ /**
5
+ * @Description: 穿梭框组件类型定义
6
+ */
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>;
23
+ }
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?: readonly [string, string];
32
+ /** 是否可搜索 */
33
+ filterable?: boolean;
34
+ /** 禁止操作,搜索输入也随组件禁用。 */
35
+ disabled?: boolean;
36
+ /** 保留列表浏览与筛选,禁止勾选和转移。 */
37
+ readonly?: boolean;
38
+ /** 搜索占位符 */
39
+ filterPlaceholder?: string;
40
+ /** 自定义筛选函数 */
41
+ filterMethod?: (query: string, item: T) => boolean;
42
+ /** 是否显示全选复选框 */
43
+ showSelectAll?: boolean;
44
+ /** 左侧空状态描述 */
45
+ sourceEmptyText?: string;
46
+ /** 右侧空状态描述 */
47
+ targetEmptyText?: string;
48
+ /** 尺寸 */
49
+ size?: 'small' | 'medium' | 'large';
50
+ /** 大列表自动使用虚拟滚动;自定义可变行高或需要完整 DOM 时可关闭。默认 true,100 项起启用。 */
51
+ virtualScroll?: boolean;
52
+ }
53
+ /** 事件保留数据源的键类型,例如纯数字键仍为 number[]。 */
54
+ interface TransferEmits<T extends TransferItem = TransferItem> {
55
+ 'update:modelValue': [value: Array<T['key']>];
56
+ change: [targetKeys: Array<T['key']>, direction: 'left' | 'right', moveKeys: Array<T['key']>];
57
+ }
58
+ /** 默认 Props */
59
+ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
60
+ //#endregion
61
+ //#region src/components/C_Transfer/index.vue.d.ts
62
+ 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<{
63
+ props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
64
+ onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
66
+ }> & (typeof globalThis extends {
67
+ __VLS_PROPS_FALLBACK: infer P;
68
+ } ? P : {});
69
+ expose: (exposed: {}) => void;
70
+ attrs: any;
71
+ slots: {};
72
+ emit: ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void) & ((evt: "update:modelValue", value: T["key"][]) => void);
73
+ }>) => vue.VNode & {
74
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
75
+ };
76
+ declare const _default: typeof __VLS_export;
77
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
78
+ //#endregion
79
+ export { TransferProps as a, TransferItem as i, DEFAULT_TRANSFER_PROPS as n, TransferEmits as r, _default as t };
@@ -0,0 +1,79 @@
1
+ import * as vue from "vue";
2
+
3
+ //#region src/components/C_Transfer/types.d.ts
4
+ /**
5
+ * @Description: 穿梭框组件类型定义
6
+ */
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>;
23
+ }
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?: readonly [string, string];
32
+ /** 是否可搜索 */
33
+ filterable?: boolean;
34
+ /** 禁止操作,搜索输入也随组件禁用。 */
35
+ disabled?: boolean;
36
+ /** 保留列表浏览与筛选,禁止勾选和转移。 */
37
+ readonly?: boolean;
38
+ /** 搜索占位符 */
39
+ filterPlaceholder?: string;
40
+ /** 自定义筛选函数 */
41
+ filterMethod?: (query: string, item: T) => boolean;
42
+ /** 是否显示全选复选框 */
43
+ showSelectAll?: boolean;
44
+ /** 左侧空状态描述 */
45
+ sourceEmptyText?: string;
46
+ /** 右侧空状态描述 */
47
+ targetEmptyText?: string;
48
+ /** 尺寸 */
49
+ size?: 'small' | 'medium' | 'large';
50
+ /** 大列表自动使用虚拟滚动;自定义可变行高或需要完整 DOM 时可关闭。默认 true,100 项起启用。 */
51
+ virtualScroll?: boolean;
52
+ }
53
+ /** 事件保留数据源的键类型,例如纯数字键仍为 number[]。 */
54
+ interface TransferEmits<T extends TransferItem = TransferItem> {
55
+ 'update:modelValue': [value: Array<T['key']>];
56
+ change: [targetKeys: Array<T['key']>, direction: 'left' | 'right', moveKeys: Array<T['key']>];
57
+ }
58
+ /** 默认 Props */
59
+ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
60
+ //#endregion
61
+ //#region src/components/C_Transfer/index.vue.d.ts
62
+ 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<{
63
+ props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
64
+ onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
66
+ }> & (typeof globalThis extends {
67
+ __VLS_PROPS_FALLBACK: infer P;
68
+ } ? P : {});
69
+ expose: (exposed: {}) => void;
70
+ attrs: any;
71
+ slots: {};
72
+ emit: ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void) & ((evt: "update:modelValue", value: T["key"][]) => void);
73
+ }>) => vue.VNode & {
74
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
75
+ };
76
+ declare const _default: typeof __VLS_export;
77
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
78
+ //#endregion
79
+ export { TransferProps as a, TransferItem as i, DEFAULT_TRANSFER_PROPS as n, TransferEmits as r, _default as t };
@@ -17,13 +17,16 @@ type __VLS_Props = {
17
17
  data: CascadeItem[];
18
18
  placeholders?: string[];
19
19
  modelValue?: CascadeValue;
20
+ disabled?: boolean;
21
+ readonly?: boolean;
22
+ size?: 'small' | 'medium' | 'large';
20
23
  };
21
24
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- "update:modelValue": (value: CascadeValue) => any;
23
25
  change: (value: CascadeValue) => any;
26
+ "update:modelValue": (value: CascadeValue) => any;
24
27
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
26
28
  onChange?: ((value: CascadeValue) => any) | undefined;
29
+ "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
27
30
  }>, {
28
31
  placeholders: string[];
29
32
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -17,13 +17,16 @@ type __VLS_Props = {
17
17
  data: CascadeItem[];
18
18
  placeholders?: string[];
19
19
  modelValue?: CascadeValue;
20
+ disabled?: boolean;
21
+ readonly?: boolean;
22
+ size?: 'small' | 'medium' | 'large';
20
23
  };
21
24
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- "update:modelValue": (value: CascadeValue) => any;
23
25
  change: (value: CascadeValue) => any;
26
+ "update:modelValue": (value: CascadeValue) => any;
24
27
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
26
28
  onChange?: ((value: CascadeValue) => any) | undefined;
29
+ "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
27
30
  }>, {
28
31
  placeholders: string[];
29
32
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -88,24 +88,25 @@ 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
+ virtualScroll: boolean;
109
110
  showContacts: boolean;
110
111
  showTimestamp: boolean;
111
112
  showSendBtn: boolean;
@@ -115,7 +116,6 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
115
116
  currentContactId: string;
116
117
  selfAvatar: string;
117
118
  selfName: string;
118
- virtualScroll: boolean;
119
119
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
120
120
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
121
121
  declare const _default: typeof __VLS_export;
@@ -88,24 +88,25 @@ 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
+ virtualScroll: boolean;
109
110
  showContacts: boolean;
110
111
  showTimestamp: boolean;
111
112
  showSendBtn: boolean;
@@ -115,7 +116,6 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
115
116
  currentContactId: string;
116
117
  selfAvatar: string;
117
118
  selfName: string;
118
- virtualScroll: boolean;
119
119
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
120
120
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
121
121
  declare const _default: typeof __VLS_export;