@robot-admin/naive-ui-components 0.13.5 → 0.13.7

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 (158) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +61 -6
  3. package/README_EN.md +53 -6
  4. package/dist/C_Form.base.css +174 -169
  5. package/dist/C_Form.cjs +1 -1
  6. package/dist/C_Form.css +174 -169
  7. package/dist/C_Form.d.cts +2 -2
  8. package/dist/C_Form.d.ts +2 -2
  9. package/dist/C_Form.js +1 -1
  10. package/dist/C_Form2.cjs +1 -1
  11. package/dist/C_Form2.js +1 -1
  12. package/dist/C_FormModal.css +15 -15
  13. package/dist/C_FormModal2.cjs +1 -1
  14. package/dist/C_FormModal2.js +1 -1
  15. package/dist/C_Loading.cjs +1 -0
  16. package/dist/C_Loading.css +119 -0
  17. package/dist/C_Loading.d.cts +2 -0
  18. package/dist/C_Loading.d.ts +2 -0
  19. package/dist/C_Loading.js +1 -0
  20. package/dist/C_Loading2.cjs +1 -0
  21. package/dist/C_Loading2.js +1 -0
  22. package/dist/C_Login.d.cts +1 -1
  23. package/dist/C_Login.d.ts +1 -1
  24. package/dist/C_Markdown.d.cts +1 -1
  25. package/dist/C_Markdown.d.ts +1 -1
  26. package/dist/C_Menu.d.ts +1 -1
  27. package/dist/C_OrgChart.d.cts +1 -1
  28. package/dist/C_OrgChart.d.ts +1 -1
  29. package/dist/C_Progress.d.cts +1 -1
  30. package/dist/C_Progress.d.ts +1 -1
  31. package/dist/C_Skeleton.d.cts +1 -1
  32. package/dist/C_Skeleton.d.ts +1 -1
  33. package/dist/C_Steps.d.cts +1 -1
  34. package/dist/C_Steps.d.ts +1 -1
  35. package/dist/C_Table.base.css +407 -282
  36. package/dist/C_Table.cjs +1 -1
  37. package/dist/C_Table.css +407 -282
  38. package/dist/C_Table.d.ts +2 -2
  39. package/dist/C_Table.js +1 -1
  40. package/dist/C_TagsView.d.cts +1 -1
  41. package/dist/C_TagsView.d.ts +1 -1
  42. package/dist/C_Theme.d.cts +1 -1
  43. package/dist/C_Theme.d.ts +1 -1
  44. package/dist/C_Timeline.d.cts +1 -1
  45. package/dist/C_Timeline.d.ts +1 -1
  46. package/dist/C_Transfer.d.cts +1 -1
  47. package/dist/C_Transfer.d.ts +1 -1
  48. package/dist/C_VtableGantt.d.cts +1 -1
  49. package/dist/C_VtableGantt.d.ts +1 -1
  50. package/dist/config.cjs +1 -1
  51. package/dist/config.js +1 -1
  52. package/dist/constants.d.cts +1 -1
  53. package/dist/constants.d.ts +1 -1
  54. package/dist/constants2.d.cts +4 -4
  55. package/dist/constants2.d.ts +4 -4
  56. package/dist/constants3.d.cts +3 -3
  57. package/dist/constants3.d.ts +3 -3
  58. package/dist/constants4.d.cts +5 -5
  59. package/dist/constants4.d.ts +5 -5
  60. package/dist/constants5.d.cts +2 -2
  61. package/dist/constants5.d.ts +2 -2
  62. package/dist/data.d.cts +6 -6
  63. package/dist/data.d.ts +6 -6
  64. package/dist/index.cjs +1 -1
  65. package/dist/index.d.cts +29 -28
  66. package/dist/index.d.ts +29 -28
  67. package/dist/index.js +1 -1
  68. package/dist/index.vue.d.cts +6 -6
  69. package/dist/index.vue.d.ts +6 -6
  70. package/dist/index10.vue.d.cts +2 -2
  71. package/dist/index10.vue.d.ts +1 -1
  72. package/dist/index11.vue.d.cts +1 -1
  73. package/dist/index11.vue.d.ts +3 -3
  74. package/dist/index12.vue.d.cts +3 -3
  75. package/dist/index12.vue.d.ts +1 -1
  76. package/dist/index13.vue.d.cts +1 -1
  77. package/dist/index13.vue.d.ts +5 -5
  78. package/dist/index14.vue.d.cts +5 -5
  79. package/dist/index14.vue.d.ts +5 -5
  80. package/dist/index15.vue.d.cts +5 -5
  81. package/dist/index15.vue.d.ts +1 -1
  82. package/dist/index16.vue.d.cts +1 -1
  83. package/dist/index16.vue.d.ts +13 -129
  84. package/dist/index17.vue.d.cts +13 -129
  85. package/dist/index17.vue.d.ts +129 -76
  86. package/dist/index18.vue.d.cts +129 -76
  87. package/dist/index18.vue.d.ts +75 -71
  88. package/dist/index19.vue.d.cts +75 -93
  89. package/dist/index19.vue.d.ts +68 -90
  90. package/dist/index2.vue.d.cts +2 -2
  91. package/dist/index2.vue.d.ts +2 -2
  92. package/dist/index20.vue.d.cts +87 -40
  93. package/dist/index20.vue.d.ts +87 -40
  94. package/dist/index21.vue.d.cts +40 -89
  95. package/dist/index21.vue.d.ts +40 -89
  96. package/dist/index22.vue.d.cts +95 -37
  97. package/dist/index22.vue.d.ts +95 -37
  98. package/dist/index23.vue.d.cts +34 -8
  99. package/dist/index23.vue.d.ts +34 -8
  100. package/dist/index24.vue.d.cts +12 -654
  101. package/dist/index24.vue.d.ts +12 -654
  102. package/dist/index25.vue.d.cts +650 -85
  103. package/dist/index25.vue.d.ts +650 -85
  104. package/dist/index26.vue.d.cts +85 -100
  105. package/dist/index26.vue.d.ts +85 -100
  106. package/dist/index27.vue.d.cts +92 -61
  107. package/dist/index27.vue.d.ts +92 -61
  108. package/dist/index28.vue.d.cts +80 -0
  109. package/dist/index28.vue.d.ts +80 -0
  110. package/dist/index3.vue.d.cts +5 -5
  111. package/dist/index3.vue.d.ts +5 -5
  112. package/dist/index6.vue.d.ts +1 -1
  113. package/dist/index7.vue.d.cts +1 -1
  114. package/dist/index8.vue.d.ts +2 -2
  115. package/dist/index9.vue.d.cts +2 -2
  116. package/dist/index9.vue.d.ts +2 -2
  117. package/dist/mapUtils.d.cts +2 -2
  118. package/dist/mapUtils.d.ts +2 -2
  119. package/dist/presets.d.cts +1 -1
  120. package/dist/presets.d.ts +1 -1
  121. package/dist/resolver.cjs +1 -1
  122. package/dist/resolver.d.cts +1 -1
  123. package/dist/resolver.d.ts +1 -1
  124. package/dist/resolver.js +1 -1
  125. package/dist/style.css +424 -297
  126. package/dist/useCollapsePanel.d.cts +2 -2
  127. package/dist/useCollapsePanel.d.ts +2 -2
  128. package/dist/useCropperCore.d.cts +9 -9
  129. package/dist/useCropperCore.d.ts +9 -9
  130. package/dist/useDraggableLayout.d.cts +5 -5
  131. package/dist/useDraggableLayout.d.ts +5 -5
  132. package/dist/useDynamicFormState.d.cts +27 -7
  133. package/dist/useDynamicFormState.d.ts +27 -7
  134. package/dist/useEdgeInteraction.d.cts +2 -2
  135. package/dist/useEdgeInteraction.d.ts +2 -2
  136. package/dist/useInfiniteScroll.d.cts +1 -1
  137. package/dist/useInfiniteScroll.d.ts +1 -1
  138. package/dist/useQRCode.d.cts +4 -4
  139. package/dist/useQRCode.d.ts +4 -4
  140. package/dist/useSearchState.d.cts +3 -3
  141. package/dist/useSearchState.d.ts +3 -3
  142. package/dist/useSignatureHistory.d.cts +3 -3
  143. package/dist/useSignatureHistory.d.ts +3 -3
  144. package/dist/useSplitResize.d.cts +3 -3
  145. package/dist/useSplitResize.d.ts +3 -3
  146. package/dist/useTableQuery.cjs +3 -3
  147. package/dist/useTableQuery.d.cts +2 -0
  148. package/dist/useTableQuery.d.ts +2 -0
  149. package/dist/useTableQuery.js +3 -3
  150. package/dist/useTimeSelection.d.cts +2 -2
  151. package/dist/useTimeSelection.d.ts +2 -2
  152. package/dist/useTreeOperations.d.cts +6 -6
  153. package/dist/useTreeOperations.d.ts +6 -6
  154. package/dist/useWorkflowValidation.d.cts +3 -3
  155. package/dist/useWorkflowValidation.d.ts +3 -3
  156. package/dist/verification.d.cts +1 -1
  157. package/dist/verification.d.ts +1 -1
  158. package/package.json +4 -3
@@ -1,80 +1,111 @@
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 {
7
+ /** 单条时间线节点 */
8
+ interface TimelineItem {
9
9
  /** 唯一标识 */
10
- key: string | number;
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 {
26
- /** 数据源 */
27
- data: TransferItem[];
28
- /** 右侧已选 key 列表 (v-model) */
29
- modelValue: Array<string | number>;
30
- /** 左右栏标题 */
31
- titles?: [string, string];
32
- /** 是否可搜索 */
33
- filterable?: boolean;
34
- /** 搜索占位符 */
35
- filterPlaceholder?: string;
36
- /** 自定义筛选函数 */
37
- filterMethod?: (query: string, item: TransferItem) => 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';
51
+ /** 连接线样式 */
52
+ lineType?: 'solid' | 'dashed' | 'dotted';
53
+ /** 是否显示时间标签 */
54
+ showTime?: boolean;
46
55
  }
47
56
  /** 默认 Props */
48
- 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>;
49
69
  //#endregion
50
- //#region src/components/C_Transfer/index.vue.d.ts
51
- type __VLS_Props = {
52
- data: TransferProps['data'];
53
- modelValue: TransferProps['modelValue'];
54
- titles?: TransferProps['titles'];
55
- filterable?: boolean;
56
- filterPlaceholder?: string;
57
- filterMethod?: TransferProps['filterMethod'];
58
- showSelectAll?: boolean;
59
- sourceEmptyText?: string;
60
- targetEmptyText?: string;
61
- size?: TransferProps['size'];
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;
62
82
  };
63
- declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
- "update:modelValue": (value: (string | number)[]) => any;
65
- change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
66
- }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
- "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
- onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
83
+ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
+ /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
+ collapseAll: () => void;
86
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
+ "item-click": (item: TimelineItem, index: number) => any;
88
+ expand: (item: TimelineItem, expanded: boolean) => any;
89
+ }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
+ "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
+ onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
69
92
  }>, {
70
- titles: [string, string];
71
- filterable: boolean;
72
- filterPlaceholder: string;
73
- showSelectAll: boolean;
74
- sourceEmptyText: string;
75
- targetEmptyText: string;
93
+ reverse: boolean;
76
94
  size: "small" | "medium" | "large";
95
+ items: TimelineItem[];
96
+ mode: "vertical" | "horizontal";
97
+ labelPlacement: "left" | "right" | "alternate";
98
+ pending: boolean;
99
+ pendingText: string;
100
+ lineType: "solid" | "dashed" | "dotted";
101
+ showTime: boolean;
77
102
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
103
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
78
104
  declare const _default: typeof __VLS_export;
105
+ type __VLS_WithSlots<T, S> = T & {
106
+ new (): {
107
+ $slots: S;
108
+ };
109
+ };
79
110
  //#endregion
80
- export { TransferProps as i, DEFAULT_TRANSFER_PROPS as n, TransferItem as r, _default as t };
111
+ export { TimelineProps as a, TimelineItem as i, DEFAULT_TIMELINE_PROPS as n, STATUS_COLOR_MAP as r, _default as t };
@@ -0,0 +1,80 @@
1
+ import * as vue from "vue";
2
+
3
+ //#region src/components/C_Transfer/types.d.ts
4
+ /**
5
+ * @Description: 穿梭框组件类型定义
6
+ */
7
+ /** 穿梭框数据项 */
8
+ interface TransferItem {
9
+ /** 唯一标识 */
10
+ key: string | number;
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 {
26
+ /** 数据源 */
27
+ data: TransferItem[];
28
+ /** 右侧已选 key 列表 (v-model) */
29
+ modelValue: Array<string | number>;
30
+ /** 左右栏标题 */
31
+ titles?: [string, string];
32
+ /** 是否可搜索 */
33
+ filterable?: boolean;
34
+ /** 搜索占位符 */
35
+ filterPlaceholder?: string;
36
+ /** 自定义筛选函数 */
37
+ filterMethod?: (query: string, item: TransferItem) => boolean;
38
+ /** 是否显示全选复选框 */
39
+ showSelectAll?: boolean;
40
+ /** 左侧空状态描述 */
41
+ sourceEmptyText?: string;
42
+ /** 右侧空状态描述 */
43
+ targetEmptyText?: string;
44
+ /** 尺寸 */
45
+ size?: 'small' | 'medium' | 'large';
46
+ }
47
+ /** 默认 Props */
48
+ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
49
+ //#endregion
50
+ //#region src/components/C_Transfer/index.vue.d.ts
51
+ type __VLS_Props = {
52
+ data: TransferProps['data'];
53
+ modelValue: TransferProps['modelValue'];
54
+ titles?: TransferProps['titles'];
55
+ filterable?: boolean;
56
+ filterPlaceholder?: string;
57
+ filterMethod?: TransferProps['filterMethod'];
58
+ showSelectAll?: boolean;
59
+ sourceEmptyText?: string;
60
+ targetEmptyText?: string;
61
+ size?: TransferProps['size'];
62
+ };
63
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
+ "update:modelValue": (value: (string | number)[]) => any;
65
+ change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
66
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
+ "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
+ onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
69
+ }>, {
70
+ titles: [string, string];
71
+ filterable: boolean;
72
+ filterPlaceholder: string;
73
+ showSelectAll: boolean;
74
+ sourceEmptyText: string;
75
+ targetEmptyText: string;
76
+ size: "small" | "medium" | "large";
77
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
78
+ declare const _default: typeof __VLS_export;
79
+ //#endregion
80
+ export { TransferProps as i, DEFAULT_TRANSFER_PROPS as n, TransferItem as r, _default as t };
@@ -0,0 +1,80 @@
1
+ import * as vue from "vue";
2
+
3
+ //#region src/components/C_Transfer/types.d.ts
4
+ /**
5
+ * @Description: 穿梭框组件类型定义
6
+ */
7
+ /** 穿梭框数据项 */
8
+ interface TransferItem {
9
+ /** 唯一标识 */
10
+ key: string | number;
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 {
26
+ /** 数据源 */
27
+ data: TransferItem[];
28
+ /** 右侧已选 key 列表 (v-model) */
29
+ modelValue: Array<string | number>;
30
+ /** 左右栏标题 */
31
+ titles?: [string, string];
32
+ /** 是否可搜索 */
33
+ filterable?: boolean;
34
+ /** 搜索占位符 */
35
+ filterPlaceholder?: string;
36
+ /** 自定义筛选函数 */
37
+ filterMethod?: (query: string, item: TransferItem) => boolean;
38
+ /** 是否显示全选复选框 */
39
+ showSelectAll?: boolean;
40
+ /** 左侧空状态描述 */
41
+ sourceEmptyText?: string;
42
+ /** 右侧空状态描述 */
43
+ targetEmptyText?: string;
44
+ /** 尺寸 */
45
+ size?: 'small' | 'medium' | 'large';
46
+ }
47
+ /** 默认 Props */
48
+ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
49
+ //#endregion
50
+ //#region src/components/C_Transfer/index.vue.d.ts
51
+ type __VLS_Props = {
52
+ data: TransferProps['data'];
53
+ modelValue: TransferProps['modelValue'];
54
+ titles?: TransferProps['titles'];
55
+ filterable?: boolean;
56
+ filterPlaceholder?: string;
57
+ filterMethod?: TransferProps['filterMethod'];
58
+ showSelectAll?: boolean;
59
+ sourceEmptyText?: string;
60
+ targetEmptyText?: string;
61
+ size?: TransferProps['size'];
62
+ };
63
+ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
+ "update:modelValue": (value: (string | number)[]) => any;
65
+ change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
66
+ }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
+ "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
+ onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
69
+ }>, {
70
+ titles: [string, string];
71
+ filterable: boolean;
72
+ filterPlaceholder: string;
73
+ showSelectAll: boolean;
74
+ sourceEmptyText: string;
75
+ targetEmptyText: string;
76
+ size: "small" | "medium" | "large";
77
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
78
+ declare const _default: typeof __VLS_export;
79
+ //#endregion
80
+ export { TransferProps as i, DEFAULT_TRANSFER_PROPS as n, TransferItem 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
- label: string;
24
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
25
23
  height: number;
24
+ label: string;
26
25
  width: number;
26
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
27
27
  lineColor: string;
28
- showText: boolean;
28
+ showBorder: boolean;
29
+ showLabel: boolean;
29
30
  fontSize: number;
31
+ showText: boolean;
30
32
  textPosition: "bottom" | "top";
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
- label: string;
24
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
25
23
  height: number;
24
+ label: string;
26
25
  width: number;
26
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
27
27
  lineColor: string;
28
- showText: boolean;
28
+ showBorder: boolean;
29
+ showLabel: boolean;
29
30
  fontSize: number;
31
+ showText: boolean;
30
32
  textPosition: "bottom" | "top";
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
@@ -104,9 +104,9 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
+ title: string;
107
108
  placeholder: string;
108
109
  messages: ChatMessage[];
109
- title: string;
110
110
  showContacts: boolean;
111
111
  showTimestamp: boolean;
112
112
  showSendBtn: boolean;
@@ -104,9 +104,9 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
+ title: string;
107
108
  placeholder: string;
108
109
  messages: ChatMessage[];
109
- title: string;
110
110
  showContacts: boolean;
111
111
  showTimestamp: boolean;
112
112
  showSendBtn: boolean;
@@ -25,12 +25,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
25
25
  copyCode: typeof copyCode;
26
26
  toggleFullscreen: typeof toggleFullscreen;
27
27
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
- copy: (code: string) => any;
29
28
  click: (event: MouseEvent) => any;
29
+ copy: (code: string) => any;
30
30
  fullscreen: (isFullscreen: boolean) => any;
31
31
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
32
- onCopy?: ((code: string) => any) | undefined;
33
32
  onClick?: ((event: MouseEvent) => any) | undefined;
33
+ onCopy?: ((code: string) => any) | undefined;
34
34
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
35
35
  }>, {
36
36
  trim: boolean;
@@ -25,12 +25,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
25
25
  copyCode: typeof copyCode;
26
26
  toggleFullscreen: typeof toggleFullscreen;
27
27
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
- copy: (code: string) => any;
29
28
  click: (event: MouseEvent) => any;
29
+ copy: (code: string) => any;
30
30
  fullscreen: (isFullscreen: boolean) => any;
31
31
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
32
- onCopy?: ((code: string) => any) | undefined;
33
32
  onClick?: ((event: MouseEvent) => any) | undefined;
33
+ onCopy?: ((code: string) => any) | undefined;
34
34
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
35
35
  }>, {
36
36
  trim: boolean;
@@ -61,19 +61,19 @@ 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;
64
65
  select: (item: ContextMenuItem) => any;
65
66
  open: (position: {
66
67
  x: number;
67
68
  y: number;
68
69
  }) => any;
69
- close: () => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
+ onClose?: (() => any) | undefined;
71
72
  onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
73
  onOpen?: ((position: {
73
74
  x: number;
74
75
  y: number;
75
76
  }) => any) | undefined;
76
- onClose?: (() => any) | undefined;
77
77
  }>, {
78
78
  disabled: boolean;
79
79
  items: ContextMenuItem[];
@@ -92,10 +92,10 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
95
- zoom: number;
96
95
  center: MapCoordinate;
97
- mapType: MapType;
98
96
  ariaLabel: string;
97
+ zoom: number;
98
+ mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
@@ -92,10 +92,10 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
95
- zoom: number;
96
95
  center: MapCoordinate;
97
- mapType: MapType;
98
96
  ariaLabel: string;
97
+ zoom: number;
98
+ mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
@@ -67,10 +67,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
67
67
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
68
68
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
69
69
  }>, {
70
- config: ActionBarConfig;
71
70
  actions: ActionItem[];
72
71
  leftActions: ActionItem[];
73
72
  rightActions: ActionItem[];
73
+ config: ActionBarConfig;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
75
75
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
76
76
  declare const _default: typeof __VLS_export;
package/dist/presets.d.ts CHANGED
@@ -67,10 +67,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
67
67
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
68
68
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
69
69
  }>, {
70
- config: ActionBarConfig;
71
70
  actions: ActionItem[];
72
71
  leftActions: ActionItem[];
73
72
  rightActions: ActionItem[];
73
+ config: ActionBarConfig;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
75
75
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
76
76
  declare const _default: typeof __VLS_export;
package/dist/resolver.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_AudioPlayer.C_AvatarGroup.C_Barcode.C_Breadcrumb.C_Captcha.C_Cascade.C_Chat.C_City.C_Code.C_CollapsePanel.C_ContextMenu.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormModal.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Login.C_Map.C_Markdown.C_Menu.C_NotificationCenter.C_OrgChart.C_Progress.C_QRCode.C_Signature.C_Skeleton.C_SplitPane.C_Steps.C_Table.C_Tabs.C_TagsView.C_Theme.C_Time.C_Timeline.C_Transfer.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!0,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t)){let n=r?`${e}/${t}`:e,a=i===!0?`full`:i;return{name:t,from:n,sideEffects:r&&a?`${e}/${t}/${a===`base`&&(t===`C_Form`||t===`C_Table`)?`base.css`:`style.css`}`:void 0}}}}}exports.RobotNaiveUiResolver=r,exports.componentNames=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_AudioPlayer.C_AvatarGroup.C_Barcode.C_Breadcrumb.C_Captcha.C_Cascade.C_Chat.C_City.C_Code.C_CollapsePanel.C_ContextMenu.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormModal.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Login.C_Loading.C_Map.C_Markdown.C_Menu.C_NotificationCenter.C_OrgChart.C_Progress.C_QRCode.C_Signature.C_Skeleton.C_SplitPane.C_Steps.C_Table.C_Tabs.C_TagsView.C_Theme.C_Time.C_Timeline.C_Transfer.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!0,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t)){let n=r?`${e}/${t}`:e,a=i===!0?`full`:i;return{name:t,from:n,sideEffects:r&&a?`${e}/${t}/${a===`base`&&(t===`C_Form`||t===`C_Table`)?`base.css`:`style.css`}`:void 0}}}}}exports.RobotNaiveUiResolver=r,exports.componentNames=t;
@@ -1,6 +1,6 @@
1
1
  //#region src/resolver.d.ts
2
2
  /** 组件库包含的所有组件名称 */
3
- declare const componentNames: readonly ["C_ActionBar", "C_AntV", "C_AudioPlayer", "C_AvatarGroup", "C_Barcode", "C_Breadcrumb", "C_Captcha", "C_Cascade", "C_Chat", "C_City", "C_Code", "C_CollapsePanel", "C_ContextMenu", "C_Cron", "C_Date", "C_Draggable", "C_Editor", "C_FilePreview", "C_Form", "C_FormModal", "C_FormSearch", "C_FormulaEditor", "C_FullCalendar", "C_GlobalSearch", "C_Guide", "C_Icon", "C_ImageCropper", "C_Language", "C_Login", "C_Map", "C_Markdown", "C_Menu", "C_NotificationCenter", "C_OrgChart", "C_Progress", "C_QRCode", "C_Signature", "C_Skeleton", "C_SplitPane", "C_Steps", "C_Table", "C_Tabs", "C_TagsView", "C_Theme", "C_Time", "C_Timeline", "C_Transfer", "C_Tree", "C_Upload", "C_VideoPlayer", "C_VtableGantt", "C_WaterFall", "C_WorkFlow"];
3
+ declare const componentNames: readonly ["C_ActionBar", "C_AntV", "C_AudioPlayer", "C_AvatarGroup", "C_Barcode", "C_Breadcrumb", "C_Captcha", "C_Cascade", "C_Chat", "C_City", "C_Code", "C_CollapsePanel", "C_ContextMenu", "C_Cron", "C_Date", "C_Draggable", "C_Editor", "C_FilePreview", "C_Form", "C_FormModal", "C_FormSearch", "C_FormulaEditor", "C_FullCalendar", "C_GlobalSearch", "C_Guide", "C_Icon", "C_ImageCropper", "C_Language", "C_Login", "C_Loading", "C_Map", "C_Markdown", "C_Menu", "C_NotificationCenter", "C_OrgChart", "C_Progress", "C_QRCode", "C_Signature", "C_Skeleton", "C_SplitPane", "C_Steps", "C_Table", "C_Tabs", "C_TagsView", "C_Theme", "C_Time", "C_Timeline", "C_Transfer", "C_Tree", "C_Upload", "C_VideoPlayer", "C_VtableGantt", "C_WaterFall", "C_WorkFlow"];
4
4
  /** 组件名称类型 */
5
5
  type ComponentName = (typeof componentNames)[number];
6
6
  /** Component style loading strategy. `true` is kept as an alias of `full`. */
@@ -1,6 +1,6 @@
1
1
  //#region src/resolver.d.ts
2
2
  /** 组件库包含的所有组件名称 */
3
- declare const componentNames: readonly ["C_ActionBar", "C_AntV", "C_AudioPlayer", "C_AvatarGroup", "C_Barcode", "C_Breadcrumb", "C_Captcha", "C_Cascade", "C_Chat", "C_City", "C_Code", "C_CollapsePanel", "C_ContextMenu", "C_Cron", "C_Date", "C_Draggable", "C_Editor", "C_FilePreview", "C_Form", "C_FormModal", "C_FormSearch", "C_FormulaEditor", "C_FullCalendar", "C_GlobalSearch", "C_Guide", "C_Icon", "C_ImageCropper", "C_Language", "C_Login", "C_Map", "C_Markdown", "C_Menu", "C_NotificationCenter", "C_OrgChart", "C_Progress", "C_QRCode", "C_Signature", "C_Skeleton", "C_SplitPane", "C_Steps", "C_Table", "C_Tabs", "C_TagsView", "C_Theme", "C_Time", "C_Timeline", "C_Transfer", "C_Tree", "C_Upload", "C_VideoPlayer", "C_VtableGantt", "C_WaterFall", "C_WorkFlow"];
3
+ declare const componentNames: readonly ["C_ActionBar", "C_AntV", "C_AudioPlayer", "C_AvatarGroup", "C_Barcode", "C_Breadcrumb", "C_Captcha", "C_Cascade", "C_Chat", "C_City", "C_Code", "C_CollapsePanel", "C_ContextMenu", "C_Cron", "C_Date", "C_Draggable", "C_Editor", "C_FilePreview", "C_Form", "C_FormModal", "C_FormSearch", "C_FormulaEditor", "C_FullCalendar", "C_GlobalSearch", "C_Guide", "C_Icon", "C_ImageCropper", "C_Language", "C_Login", "C_Loading", "C_Map", "C_Markdown", "C_Menu", "C_NotificationCenter", "C_OrgChart", "C_Progress", "C_QRCode", "C_Signature", "C_Skeleton", "C_SplitPane", "C_Steps", "C_Table", "C_Tabs", "C_TagsView", "C_Theme", "C_Time", "C_Timeline", "C_Transfer", "C_Tree", "C_Upload", "C_VideoPlayer", "C_VtableGantt", "C_WaterFall", "C_WorkFlow"];
4
4
  /** 组件名称类型 */
5
5
  type ComponentName = (typeof componentNames)[number];
6
6
  /** Component style loading strategy. `true` is kept as an alias of `full`. */
package/dist/resolver.js CHANGED
@@ -1 +1 @@
1
- const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_AudioPlayer.C_AvatarGroup.C_Barcode.C_Breadcrumb.C_Captcha.C_Cascade.C_Chat.C_City.C_Code.C_CollapsePanel.C_ContextMenu.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormModal.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Login.C_Map.C_Markdown.C_Menu.C_NotificationCenter.C_OrgChart.C_Progress.C_QRCode.C_Signature.C_Skeleton.C_SplitPane.C_Steps.C_Table.C_Tabs.C_TagsView.C_Theme.C_Time.C_Timeline.C_Transfer.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!0,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t)){let n=r?`${e}/${t}`:e,a=i===!0?`full`:i;return{name:t,from:n,sideEffects:r&&a?`${e}/${t}/${a===`base`&&(t===`C_Form`||t===`C_Table`)?`base.css`:`style.css`}`:void 0}}}}}export{r as RobotNaiveUiResolver,t as componentNames};
1
+ const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_AudioPlayer.C_AvatarGroup.C_Barcode.C_Breadcrumb.C_Captcha.C_Cascade.C_Chat.C_City.C_Code.C_CollapsePanel.C_ContextMenu.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormModal.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Login.C_Loading.C_Map.C_Markdown.C_Menu.C_NotificationCenter.C_OrgChart.C_Progress.C_QRCode.C_Signature.C_Skeleton.C_SplitPane.C_Steps.C_Table.C_Tabs.C_TagsView.C_Theme.C_Time.C_Timeline.C_Transfer.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!0,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t)){let n=r?`${e}/${t}`:e,a=i===!0?`full`:i;return{name:t,from:n,sideEffects:r&&a?`${e}/${t}/${a===`base`&&(t===`C_Form`||t===`C_Table`)?`base.css`:`style.css`}`:void 0}}}}}export{r as RobotNaiveUiResolver,t as componentNames};