@robot-admin/naive-ui-components 0.19.0 → 0.20.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 (96) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/C_Breadcrumb.css +308 -20
  3. package/dist/C_Breadcrumb.d.cts +2 -2
  4. package/dist/C_Breadcrumb.d.ts +2 -2
  5. package/dist/C_Breadcrumb2.cjs +1 -1
  6. package/dist/C_Breadcrumb2.js +1 -1
  7. package/dist/constants3.d.cts +4 -4
  8. package/dist/constants3.d.ts +4 -4
  9. package/dist/constants4.d.cts +9 -9
  10. package/dist/constants4.d.ts +9 -9
  11. package/dist/constants5.d.cts +2 -2
  12. package/dist/constants5.d.ts +2 -2
  13. package/dist/data.d.cts +8 -8
  14. package/dist/data.d.ts +8 -8
  15. package/dist/index.d.cts +2 -2
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.vue.d.cts +6 -6
  18. package/dist/index.vue.d.ts +6 -6
  19. package/dist/index10.vue.d.cts +4 -4
  20. package/dist/index10.vue.d.ts +5 -5
  21. package/dist/index11.vue.d.cts +5 -5
  22. package/dist/index11.vue.d.ts +2 -2
  23. package/dist/index12.vue.d.cts +2 -2
  24. package/dist/index12.vue.d.ts +3 -3
  25. package/dist/index13.vue.d.cts +3 -3
  26. package/dist/index13.vue.d.ts +6 -6
  27. package/dist/index14.vue.d.cts +6 -6
  28. package/dist/index15.vue.d.ts +1 -1
  29. package/dist/index16.vue.d.cts +1 -1
  30. package/dist/index16.vue.d.ts +2 -2
  31. package/dist/index17.vue.d.cts +2 -2
  32. package/dist/index17.vue.d.ts +2 -2
  33. package/dist/index18.vue.d.cts +2 -2
  34. package/dist/index18.vue.d.ts +5 -5
  35. package/dist/index19.vue.d.cts +2 -2
  36. package/dist/index19.vue.d.ts +2 -2
  37. package/dist/index2.vue.d.cts +3 -3
  38. package/dist/index2.vue.d.ts +3 -3
  39. package/dist/index20.vue.d.cts +1 -1
  40. package/dist/index20.vue.d.ts +1 -1
  41. package/dist/index21.vue.d.cts +2 -2
  42. package/dist/index21.vue.d.ts +2 -2
  43. package/dist/index22.vue.d.cts +2 -2
  44. package/dist/index22.vue.d.ts +2 -2
  45. package/dist/index25.vue.d.cts +5 -5
  46. package/dist/index25.vue.d.ts +5 -5
  47. package/dist/index3.vue.d.cts +4 -4
  48. package/dist/index3.vue.d.ts +4 -4
  49. package/dist/index4.vue.d.cts +5 -5
  50. package/dist/index4.vue.d.ts +26 -12
  51. package/dist/index5.vue.d.cts +26 -12
  52. package/dist/index6.vue.d.ts +4 -4
  53. package/dist/index7.vue.d.cts +4 -4
  54. package/dist/index8.vue.d.ts +4 -4
  55. package/dist/index9.vue.d.cts +4 -4
  56. package/dist/index9.vue.d.ts +4 -4
  57. package/dist/mapUtils.d.cts +2 -2
  58. package/dist/mapUtils.d.ts +2 -2
  59. package/dist/presets.d.cts +1 -1
  60. package/dist/presets.d.ts +1 -1
  61. package/dist/public.d.ts +3 -1
  62. package/dist/style.css +308 -20
  63. package/dist/types.d.cts +3 -1
  64. package/dist/useCalendarEvents.d.cts +2 -2
  65. package/dist/useCalendarEvents.d.ts +2 -2
  66. package/dist/useCollapsePanel.d.cts +4 -4
  67. package/dist/useCollapsePanel.d.ts +4 -4
  68. package/dist/useComponentLocale.cjs +1 -1
  69. package/dist/useComponentLocale.js +1 -1
  70. package/dist/useCropperCore.d.cts +10 -10
  71. package/dist/useCropperCore.d.ts +10 -10
  72. package/dist/useDynamicFormState.d.cts +2 -2
  73. package/dist/useDynamicFormState.d.ts +2 -2
  74. package/dist/useEdgeInteraction.d.cts +2 -2
  75. package/dist/useEdgeInteraction.d.ts +2 -2
  76. package/dist/useFullscreen.d.cts +2 -2
  77. package/dist/useFullscreen.d.ts +2 -2
  78. package/dist/useGlobalSearch.d.cts +1 -1
  79. package/dist/useGlobalSearch.d.ts +1 -1
  80. package/dist/useInfiniteScroll.d.cts +2 -2
  81. package/dist/useInfiniteScroll.d.ts +2 -2
  82. package/dist/useQRCode.d.cts +5 -5
  83. package/dist/useQRCode.d.ts +5 -5
  84. package/dist/useSignatureHistory.d.cts +6 -6
  85. package/dist/useSignatureHistory.d.ts +6 -6
  86. package/dist/useSplitResize.d.cts +9 -9
  87. package/dist/useSplitResize.d.ts +9 -9
  88. package/dist/useTableQuery.d.cts +11 -11
  89. package/dist/useTableQuery.d.ts +11 -11
  90. package/dist/useWorkflowValidation.d.cts +81 -81
  91. package/dist/useWorkflowValidation.d.ts +81 -81
  92. package/dist/verification.d.cts +5 -5
  93. package/dist/verification.d.ts +5 -5
  94. package/docs/guides/usage.en.md +6 -0
  95. package/docs/guides/usage.md +17 -0
  96. package/package.json +1 -1
@@ -46,25 +46,25 @@ declare const __VLS_export: vue.DefineComponent<MenuProps, {
46
46
  showOption: (key: string) => void | undefined;
47
47
  menuRef: Ref<MenuInst | null, MenuInst | null>;
48
48
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
49
- "update:modelValue": (key: MenuValue) => any;
50
49
  select: (key: string) => any;
50
+ "update:modelValue": (key: MenuValue) => any;
51
+ "update:expandedKeys": (keys: string[]) => any;
51
52
  intent: (key: string) => any;
52
53
  "update:value": (key: MenuValue) => any;
53
- "update:expandedKeys": (keys: string[]) => any;
54
54
  }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
55
- "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
56
55
  onSelect?: ((key: string) => any) | undefined;
56
+ "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
57
+ "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
57
58
  onIntent?: ((key: string) => any) | undefined;
58
59
  "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
59
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
60
60
  }>, {
61
61
  mode: "vertical" | "horizontal";
62
62
  defaultExpandedKeys: string[];
63
+ indent: number;
63
64
  collapsed: boolean;
64
65
  collapsedWidth: number;
65
66
  collapsedIconSize: number;
66
67
  inverted: boolean;
67
- indent: number;
68
68
  rootIndent: number;
69
69
  dropdownProps: naive_ui0.DropdownProps;
70
70
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -80,11 +80,11 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
80
80
  "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
81
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
82
82
  }>, {
83
- direction: OrgChartDirection;
84
83
  lineColor: string;
85
- lineWidth: number;
84
+ direction: OrgChartDirection;
86
85
  collapsible: boolean;
87
86
  lineStyle: OrgChartLineStyle;
87
+ lineWidth: number;
88
88
  nodeSpacing: number;
89
89
  levelSpacing: number;
90
90
  zoomable: boolean;
@@ -80,11 +80,11 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
80
80
  "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
81
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
82
82
  }>, {
83
- direction: OrgChartDirection;
84
83
  lineColor: string;
85
- lineWidth: number;
84
+ direction: OrgChartDirection;
86
85
  collapsible: boolean;
87
86
  lineStyle: OrgChartLineStyle;
87
+ lineWidth: number;
88
88
  nodeSpacing: number;
89
89
  levelSpacing: number;
90
90
  zoomable: boolean;
@@ -72,15 +72,15 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
72
72
  onItemClick?: ((item: AvatarItem) => any) | undefined;
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
- size: number;
76
- direction: "ltr" | "rtl";
77
- clickable: boolean;
78
75
  max: number;
76
+ size: number;
79
77
  overlap: number;
80
78
  shape: "circle" | "square";
81
79
  showStatus: boolean;
82
80
  showTooltip: boolean;
81
+ clickable: boolean;
83
82
  overflowClickable: boolean;
83
+ direction: "ltr" | "rtl";
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
86
86
  //#endregion
@@ -72,15 +72,15 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
72
72
  onItemClick?: ((item: AvatarItem) => any) | undefined;
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
- size: number;
76
- direction: "ltr" | "rtl";
77
- clickable: boolean;
78
75
  max: number;
76
+ size: number;
79
77
  overlap: number;
80
78
  shape: "circle" | "square";
81
79
  showStatus: boolean;
82
80
  showTooltip: boolean;
81
+ clickable: boolean;
83
82
  overflowClickable: boolean;
83
+ direction: "ltr" | "rtl";
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
86
86
  //#endregion
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ strokeWidth: number;
37
38
  time: number;
38
39
  status: "default" | "success" | "error" | "warning" | "info";
39
- strokeWidth: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ strokeWidth: number;
37
38
  time: number;
38
39
  status: "default" | "success" | "error" | "warning" | "info";
39
- strokeWidth: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -86,10 +86,10 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
89
+ animation: SkeletonAnimation;
90
90
  repeat: number;
91
+ loading: boolean;
91
92
  preset: SkeletonPreset;
92
- animation: SkeletonAnimation;
93
93
  borderRadius: string;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -86,10 +86,10 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
89
+ animation: SkeletonAnimation;
90
90
  repeat: number;
91
+ loading: boolean;
91
92
  preset: SkeletonPreset;
92
- animation: SkeletonAnimation;
93
93
  borderRadius: string;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
+ clickable: boolean;
39
+ direction: "horizontal" | "vertical";
38
40
  connected: boolean;
39
41
  current: number;
40
- direction: "horizontal" | "vertical";
41
- clickable: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
+ clickable: boolean;
39
+ direction: "horizontal" | "vertical";
38
40
  connected: boolean;
39
41
  current: number;
40
- direction: "horizontal" | "vertical";
41
- clickable: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -84,18 +84,18 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- "item-click": (item: TimelineItem, index: number) => any;
88
87
  expand: (item: TimelineItem, expanded: boolean) => any;
88
+ "item-click": (item: TimelineItem, index: number) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
+ "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
93
  reverse: boolean;
94
- size: "small" | "medium" | "large";
95
- pending: boolean;
96
- mode: "vertical" | "horizontal";
97
94
  items: TimelineItem[];
95
+ size: "small" | "medium" | "large";
98
96
  labelPlacement: "left" | "right" | "alternate";
97
+ mode: "vertical" | "horizontal";
98
+ pending: boolean;
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
101
101
  showTime: boolean;
@@ -84,18 +84,18 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- "item-click": (item: TimelineItem, index: number) => any;
88
87
  expand: (item: TimelineItem, expanded: boolean) => any;
88
+ "item-click": (item: TimelineItem, index: number) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
+ "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
93
  reverse: boolean;
94
- size: "small" | "medium" | "large";
95
- pending: boolean;
96
- mode: "vertical" | "horizontal";
97
94
  items: TimelineItem[];
95
+ size: "small" | "medium" | "large";
98
96
  labelPlacement: "left" | "right" | "alternate";
97
+ mode: "vertical" | "horizontal";
98
+ pending: boolean;
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
101
101
  showTime: boolean;
@@ -20,14 +20,14 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- width: number;
24
- height: number;
25
23
  label: string;
26
- fontSize: number;
27
- lineColor: string;
28
24
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
25
+ width: number;
26
+ height: number;
29
27
  showText: boolean;
28
+ fontSize: number;
30
29
  textPosition: "bottom" | "top";
30
+ lineColor: string;
31
31
  background: string;
32
32
  showBorder: boolean;
33
33
  showLabel: boolean;
@@ -20,14 +20,14 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- width: number;
24
- height: number;
25
23
  label: string;
26
- fontSize: number;
27
- lineColor: string;
28
24
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
25
+ width: number;
26
+ height: number;
29
27
  showText: boolean;
28
+ fontSize: number;
30
29
  textPosition: "bottom" | "top";
30
+ lineColor: string;
31
31
  background: string;
32
32
  showBorder: boolean;
33
33
  showLabel: boolean;
@@ -104,25 +104,25 @@ declare const __VLS_export: vue.DefineComponent<MenuProps, {
104
104
  showOption: (key: string) => void | undefined;
105
105
  menuRef: Ref<MenuInst | null, MenuInst | null>;
106
106
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
107
- "update:modelValue": (key: MenuValue) => any;
108
107
  select: (key: string) => any;
108
+ "update:modelValue": (key: MenuValue) => any;
109
+ "update:expandedKeys": (keys: string[]) => any;
109
110
  intent: (key: string) => any;
110
111
  "update:value": (key: MenuValue) => any;
111
- "update:expandedKeys": (keys: string[]) => any;
112
112
  }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
113
- "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
114
113
  onSelect?: ((key: string) => any) | undefined;
114
+ "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
115
+ "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
115
116
  onIntent?: ((key: string) => any) | undefined;
116
117
  "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;
121
122
  collapsed: boolean;
122
123
  collapsedWidth: number;
123
124
  collapsedIconSize: number;
124
125
  inverted: boolean;
125
- indent: number;
126
126
  rootIndent: number;
127
127
  dropdownProps: naive_ui0.DropdownProps;
128
128
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -1,19 +1,33 @@
1
1
  import { i as BreadcrumbItem } from "./public.js";
2
2
  import * as vue from "vue";
3
3
 
4
+ //#region src/components/C_Breadcrumb/types.d.ts
5
+ interface BreadcrumbRouteMeta {
6
+ [key: string]: unknown;
7
+ title?: unknown;
8
+ icon?: unknown;
9
+ hidden?: unknown;
10
+ breadcrumb?: unknown;
11
+ }
12
+ /** 可直接接收应用提供的授权菜单,非字符串图标由组件安全忽略。 */
13
+ interface BreadcrumbMenuItem {
14
+ path?: string;
15
+ key?: string | number;
16
+ name?: string | symbol | null;
17
+ label?: string;
18
+ icon?: unknown;
19
+ meta?: BreadcrumbRouteMeta;
20
+ children?: readonly BreadcrumbMenuItem[];
21
+ disabled?: boolean;
22
+ type?: string;
23
+ }
24
+ //#endregion
4
25
  //#region src/components/C_Breadcrumb/index.vue.d.ts
5
26
  type __VLS_Props = {
6
- /**
7
- * 手动传入面包屑数据
8
- * 不传时自动从 `route.matched` 生成(零配置)
9
- */
10
- items?: BreadcrumbItem[]; /** 是否显示图标 */
11
- showIcon?: boolean; /** 图标大小 (px),默认 16 */
12
- iconSize?: number;
13
- /**
14
- * 标签文本格式化函数(用于 i18n)
15
- * 仅在自动模式下生效
16
- */
27
+ /** 手动路径,标签沿用传入值。 */items?: readonly BreadcrumbItem[]; /** 授权后的菜单树;提供时(含空数组)作为目录的唯一数据来源。 */
28
+ menus?: readonly BreadcrumbMenuItem[];
29
+ showIcon?: boolean;
30
+ iconSize?: number; /** 自动路径和菜单标签的翻译函数。 */
17
31
  labelFormatter?: (label: string) => string;
18
32
  };
19
33
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -26,4 +40,4 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
26
40
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
27
41
  declare const _default: typeof __VLS_export;
28
42
  //#endregion
29
- export { _default as t };
43
+ export { BreadcrumbMenuItem as n, _default as t };
@@ -1,19 +1,33 @@
1
1
  import { t as BreadcrumbItem } from "./types.cjs";
2
2
  import * as vue from "vue";
3
3
 
4
+ //#region src/components/C_Breadcrumb/types.d.ts
5
+ interface BreadcrumbRouteMeta {
6
+ [key: string]: unknown;
7
+ title?: unknown;
8
+ icon?: unknown;
9
+ hidden?: unknown;
10
+ breadcrumb?: unknown;
11
+ }
12
+ /** 可直接接收应用提供的授权菜单,非字符串图标由组件安全忽略。 */
13
+ interface BreadcrumbMenuItem {
14
+ path?: string;
15
+ key?: string | number;
16
+ name?: string | symbol | null;
17
+ label?: string;
18
+ icon?: unknown;
19
+ meta?: BreadcrumbRouteMeta;
20
+ children?: readonly BreadcrumbMenuItem[];
21
+ disabled?: boolean;
22
+ type?: string;
23
+ }
24
+ //#endregion
4
25
  //#region src/components/C_Breadcrumb/index.vue.d.ts
5
26
  type __VLS_Props = {
6
- /**
7
- * 手动传入面包屑数据
8
- * 不传时自动从 `route.matched` 生成(零配置)
9
- */
10
- items?: BreadcrumbItem[]; /** 是否显示图标 */
11
- showIcon?: boolean; /** 图标大小 (px),默认 16 */
12
- iconSize?: number;
13
- /**
14
- * 标签文本格式化函数(用于 i18n)
15
- * 仅在自动模式下生效
16
- */
27
+ /** 手动路径,标签沿用传入值。 */items?: readonly BreadcrumbItem[]; /** 授权后的菜单树;提供时(含空数组)作为目录的唯一数据来源。 */
28
+ menus?: readonly BreadcrumbMenuItem[];
29
+ showIcon?: boolean;
30
+ iconSize?: number; /** 自动路径和菜单标签的翻译函数。 */
17
31
  labelFormatter?: (label: string) => string;
18
32
  };
19
33
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -26,4 +40,4 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
26
40
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
27
41
  declare const _default: typeof __VLS_export;
28
42
  //#endregion
29
- export { _default as t };
43
+ export { BreadcrumbMenuItem as n, _default as t };
@@ -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;
92
91
  send: (content: string) => any;
93
92
  "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;
101
100
  onSend?: ((content: string) => any) | undefined;
102
101
  "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;
110
- title: string;
111
109
  placeholder: string;
110
+ title: string;
111
+ virtualScroll: boolean;
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;
92
91
  send: (content: string) => any;
93
92
  "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;
101
100
  onSend?: ((content: string) => any) | undefined;
102
101
  "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;
110
- title: string;
111
109
  placeholder: string;
110
+ title: string;
111
+ virtualScroll: boolean;
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;
27
26
  click: (event: MouseEvent) => any;
28
27
  copy: (code: string) => any;
28
+ fullscreen: (isFullscreen: boolean) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
- onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
31
30
  onClick?: ((event: MouseEvent) => any) | undefined;
32
31
  onCopy?: ((code: string) => any) | undefined;
32
+ onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
33
33
  }>, {
34
- language: string;
35
- showHeader: boolean;
36
34
  trim: boolean;
37
35
  code: string;
36
+ language: string;
37
+ showHeader: boolean;
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;
27
26
  click: (event: MouseEvent) => any;
28
27
  copy: (code: string) => any;
28
+ fullscreen: (isFullscreen: boolean) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
- onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
31
30
  onClick?: ((event: MouseEvent) => any) | undefined;
32
31
  onCopy?: ((code: string) => any) | undefined;
32
+ onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
33
33
  }>, {
34
- language: string;
35
- showHeader: boolean;
36
34
  trim: boolean;
37
35
  code: string;
36
+ language: string;
37
+ showHeader: boolean;
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;
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
71
  onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
+ onClose?: (() => 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
+ items: ContextMenuItem[];
78
79
  disabled: boolean;
80
+ zIndex: number;
79
81
  minWidth: number;
80
82
  maxWidth: number;
81
- items: ContextMenuItem[];
82
83
  subMenuPlacement: "right" | "left";
83
84
  autoClose: boolean;
84
- zIndex: number;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
86
86
  declare const _default: typeof __VLS_export;
87
87
  //#endregion
@@ -83,12 +83,12 @@ 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
- ready: (map: MapInstance) => any;
87
86
  error: (error: Error) => any;
87
+ ready: (map: MapInstance) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onReady?: ((map: MapInstance) => any) | undefined;
91
90
  onError?: ((error: Error) => any) | undefined;
91
+ onReady?: ((map: MapInstance) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
@@ -83,12 +83,12 @@ 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
- ready: (map: MapInstance) => any;
87
86
  error: (error: Error) => any;
87
+ ready: (map: MapInstance) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onReady?: ((map: MapInstance) => any) | undefined;
91
90
  onError?: ((error: Error) => any) | undefined;
91
+ onReady?: ((map: MapInstance) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
@@ -78,10 +78,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
78
78
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
79
79
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
80
80
  }>, {
81
+ config: ActionBarConfig;
81
82
  actions: ActionItem[];
82
83
  leftActions: ActionItem[];
83
84
  rightActions: ActionItem[];
84
- config: ActionBarConfig;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
86
86
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
87
87
  declare const _default: typeof __VLS_export;
package/dist/presets.d.ts CHANGED
@@ -78,10 +78,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
78
78
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
79
79
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
80
80
  }>, {
81
+ config: ActionBarConfig;
81
82
  actions: ActionItem[];
82
83
  leftActions: ActionItem[];
83
84
  rightActions: ActionItem[];
84
- config: ActionBarConfig;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
86
86
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
87
87
  declare const _default: typeof __VLS_export;
package/dist/public.d.ts CHANGED
@@ -101,8 +101,10 @@ interface BreadcrumbItem {
101
101
  label: string;
102
102
  /** 图标名称 */
103
103
  icon?: string;
104
+ /** 禁用导航;目录禁用时同时禁用其子项。 */
105
+ disabled?: boolean;
104
106
  /** 子级列表(用于下拉) */
105
- children?: BreadcrumbItem[];
107
+ children?: readonly BreadcrumbItem[];
106
108
  }
107
109
  //#endregion
108
110
  //#region src/components/_shared/menuAdapter.d.ts