@robot-admin/naive-ui-components 0.40.0 → 0.40.2

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 (89) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -1
  3. package/README_EN.md +2 -1
  4. package/dist/C_ActionBar.css +52 -52
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_FormModal.css +53 -53
  8. package/dist/C_FormModal2.cjs +1 -1
  9. package/dist/C_FormModal2.js +1 -1
  10. package/dist/C_Menu.css +1 -1
  11. package/dist/C_Menu2.cjs +1 -1
  12. package/dist/C_Menu2.js +1 -1
  13. package/dist/C_Table.base.css +52 -52
  14. package/dist/C_Table.css +52 -52
  15. package/dist/constants3.d.cts +6 -6
  16. package/dist/constants3.d.ts +6 -6
  17. package/dist/constants4.d.cts +2 -2
  18. package/dist/constants4.d.ts +2 -2
  19. package/dist/data2.d.cts +5 -5
  20. package/dist/data2.d.ts +5 -5
  21. package/dist/editors.d.cts +7 -7
  22. package/dist/editors.d.ts +7 -7
  23. package/dist/fieldRenderers.cjs +1 -1
  24. package/dist/fieldRenderers.js +1 -1
  25. package/dist/graphics.d.cts +1 -1
  26. package/dist/graphics.d.ts +1 -1
  27. package/dist/index.vue.d.cts +4 -4
  28. package/dist/index.vue.d.ts +4 -4
  29. package/dist/index10.vue.d.ts +2 -2
  30. package/dist/index11.vue.d.cts +2 -2
  31. package/dist/index11.vue.d.ts +4 -4
  32. package/dist/index12.vue.d.cts +4 -4
  33. package/dist/index13.vue.d.ts +2 -2
  34. package/dist/index14.vue.d.cts +2 -2
  35. package/dist/index16.vue.d.ts +6 -6
  36. package/dist/index17.vue.d.cts +6 -6
  37. package/dist/index17.vue.d.ts +6 -6
  38. package/dist/index18.vue.d.cts +6 -6
  39. package/dist/index20.vue.d.ts +1 -1
  40. package/dist/index21.vue.d.cts +1 -1
  41. package/dist/index21.vue.d.ts +3 -3
  42. package/dist/index22.vue.d.cts +3 -3
  43. package/dist/index22.vue.d.ts +8 -5
  44. package/dist/index27.vue.d.cts +2 -2
  45. package/dist/index27.vue.d.ts +2 -2
  46. package/dist/index28.vue.d.cts +3 -3
  47. package/dist/index28.vue.d.ts +3 -3
  48. package/dist/index3.vue.d.cts +2 -2
  49. package/dist/index3.vue.d.ts +2 -2
  50. package/dist/index31.vue.d.cts +1 -1
  51. package/dist/index31.vue.d.ts +1 -1
  52. package/dist/index32.vue.d.cts +2 -2
  53. package/dist/index32.vue.d.ts +2 -2
  54. package/dist/index4.vue.d.cts +3 -3
  55. package/dist/index4.vue.d.ts +3 -3
  56. package/dist/index6.vue.d.cts +8 -5
  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/style.css +54 -54
  62. package/dist/useCalendarEvents.d.cts +1 -1
  63. package/dist/useCalendarEvents.d.ts +1 -1
  64. package/dist/useCollapsePanel.d.cts +5 -5
  65. package/dist/useCollapsePanel.d.ts +5 -5
  66. package/dist/useComponentLocale.cjs +1 -1
  67. package/dist/useComponentLocale.js +1 -1
  68. package/dist/useCropperCore.d.cts +3 -3
  69. package/dist/useCropperCore.d.ts +3 -3
  70. package/dist/useDynamicFormState.d.cts +2 -2
  71. package/dist/useDynamicFormState.d.ts +2 -2
  72. package/dist/useEdgeInteraction.d.cts +1 -1
  73. package/dist/useEdgeInteraction.d.ts +1 -1
  74. package/dist/useInfiniteScroll.d.cts +4 -4
  75. package/dist/useInfiniteScroll.d.ts +4 -4
  76. package/dist/useQRCode.d.cts +1 -1
  77. package/dist/useQRCode.d.ts +1 -1
  78. package/dist/useSignatureHistory.d.cts +3 -3
  79. package/dist/useSignatureHistory.d.ts +3 -3
  80. package/dist/useSplitResize.d.cts +2 -2
  81. package/dist/useSplitResize.d.ts +2 -2
  82. package/dist/useWorkflowValidation.d.cts +30 -30
  83. package/dist/useWorkflowValidation.d.ts +30 -30
  84. package/dist/verification.d.cts +2 -2
  85. package/dist/verification.d.ts +2 -2
  86. package/docs/engineering.en.md +3 -3
  87. package/docs/engineering.md +3 -3
  88. package/docs/stability-review-20261115.md +42 -0
  89. package/package.json +8 -4
@@ -98,19 +98,21 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
98
98
  isCompleted: () => boolean;
99
99
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
100
100
  start: () => any;
101
- complete: () => any;
101
+ error: (error: unknown) => any;
102
102
  close: (currentStep: number) => any;
103
+ complete: () => any;
103
104
  skip: (currentStep: number) => any;
104
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
105
- error: (error: unknown) => any;
106
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
107
  onStart?: (() => any) | undefined;
108
- onComplete?: (() => any) | undefined;
108
+ onError?: ((error: unknown) => any) | undefined;
109
109
  onClose?: ((currentStep: number) => any) | undefined;
110
+ onComplete?: (() => any) | undefined;
110
111
  onSkip?: ((currentStep: number) => any) | undefined;
111
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
112
- onError?: ((error: unknown) => any) | undefined;
113
113
  }>, {
114
+ keyboard: boolean;
115
+ showTrigger: boolean;
114
116
  steps: GuideStep[];
115
117
  doneBtnText: string;
116
118
  nextBtnText: string;
@@ -118,12 +120,10 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
118
120
  showSkipButton: boolean;
119
121
  skipBtnText: string;
120
122
  showProgress: boolean;
121
- keyboard: boolean;
122
123
  animate: boolean;
123
124
  allowClose: boolean;
124
125
  skipMissingElements: boolean;
125
126
  popoverClass: string;
126
- showTrigger: boolean;
127
127
  triggerTooltip: string;
128
128
  triggerIcon: string;
129
129
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -38,21 +38,21 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
38
38
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- clickable: boolean;
42
- type: "iconify" | "unocss" | "component" | "svg" | "image";
43
- loading: boolean;
44
41
  size: number | string;
45
- color: string;
46
- title: string;
42
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
47
43
  ariaLabel: string;
44
+ color: string;
48
45
  flip: "horizontal" | "vertical" | "both";
46
+ loading: boolean;
47
+ title: string;
48
+ rotate: number;
49
+ clickable: boolean;
49
50
  svgPath: string;
50
51
  viewBox: string;
51
52
  alt: string;
52
53
  fallbackIcon: string;
53
54
  loadTimeout: number;
54
55
  customClass: string;
55
- rotate: number;
56
56
  componentProps: Record<string, unknown>;
57
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
@@ -38,21 +38,21 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
38
38
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- clickable: boolean;
42
- type: "iconify" | "unocss" | "component" | "svg" | "image";
43
- loading: boolean;
44
41
  size: number | string;
45
- color: string;
46
- title: string;
42
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
47
43
  ariaLabel: string;
44
+ color: string;
48
45
  flip: "horizontal" | "vertical" | "both";
46
+ loading: boolean;
47
+ title: string;
48
+ rotate: number;
49
+ clickable: boolean;
49
50
  svgPath: string;
50
51
  viewBox: string;
51
52
  alt: string;
52
53
  fallbackIcon: string;
53
54
  loadTimeout: number;
54
55
  customClass: string;
55
- rotate: number;
56
56
  componentProps: Record<string, unknown>;
57
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
@@ -116,9 +116,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
116
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
+ storageKey: string;
119
120
  loading: boolean;
120
121
  title: string;
121
- storageKey: string;
122
122
  defaultUsername: string;
123
123
  defaultPassword: string;
124
124
  captchaProvider: CaptchaProvider;
@@ -116,9 +116,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
116
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
+ storageKey: string;
119
120
  loading: boolean;
120
121
  title: string;
121
- storageKey: string;
122
122
  defaultUsername: string;
123
123
  defaultPassword: string;
124
124
  captchaProvider: CaptchaProvider;
@@ -61,14 +61,14 @@ declare const __VLS_export: vue.DefineComponent<Props, {
61
61
  "onAuto-save"?: ((text: string) => any) | undefined;
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
- disabled: boolean;
65
64
  modelValue: string;
65
+ disabled: boolean;
66
66
  height: string | number;
67
- placeholder: string;
68
67
  mode: "edit" | "editable" | "preview";
68
+ placeholder: string;
69
+ autofocus: boolean;
69
70
  tocNavPosition: "left" | "right";
70
71
  defaultFullscreen: boolean;
71
- autofocus: boolean;
72
72
  includeLevel: number[];
73
73
  leftToolbar: string;
74
74
  rightToolbar: string;
@@ -61,14 +61,14 @@ declare const __VLS_export: vue.DefineComponent<Props, {
61
61
  "onAuto-save"?: ((text: string) => any) | undefined;
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
- disabled: boolean;
65
64
  modelValue: string;
65
+ disabled: boolean;
66
66
  height: string | number;
67
- placeholder: string;
68
67
  mode: "edit" | "editable" | "preview";
68
+ placeholder: string;
69
+ autofocus: boolean;
69
70
  tocNavPosition: "left" | "right";
70
71
  defaultFullscreen: boolean;
71
- autofocus: boolean;
72
72
  includeLevel: number[];
73
73
  leftToolbar: string;
74
74
  rightToolbar: string;
@@ -1,7 +1,7 @@
1
1
  import { a as RouteItem, t as MenuAdapterConfig } from "./public.js";
2
2
  import * as vue from "vue";
3
3
  import { Ref } from "vue";
4
- import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
4
+ import { DropdownProps, MenuInst, MenuOption, MenuProps } from "naive-ui";
5
5
 
6
6
  //#region src/components/C_Menu/types.d.ts
7
7
  type MenuKey = string | number;
@@ -15,7 +15,7 @@ type MenuOptionKeys<Option, Seen = never> = Option extends Seen ? OwnMenuKey<Opt
15
15
  } ? Children extends readonly unknown[] ? MenuOptionKeys<Children[number], Seen | Option> : never : never);
16
16
  type WidenMenuKey<Key> = Key extends string ? string : Key extends number ? number : never;
17
17
  type MenuSelectionKey<O extends MenuOption[] | undefined> = O extends MenuOption[] ? [MenuOptionKeys<O[number]>] extends [never] ? MenuKey : WidenMenuKey<MenuOptionKeys<O[number]>> : string;
18
- interface MenuProps<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
18
+ interface MenuProps$1<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
19
19
  options?: O;
20
20
  routes?: RouteItem[];
21
21
  adapterConfig?: MenuAdapterConfig;
@@ -28,9 +28,12 @@ interface MenuProps<O extends MenuOption[] | undefined = MenuOption[] | undefine
28
28
  mode?: 'vertical' | 'horizontal';
29
29
  collapsed?: boolean;
30
30
  collapsedWidth?: number;
31
+ /** 常态图标尺寸;未配置时使用 Naive UI 默认值。 */
32
+ iconSize?: number;
31
33
  collapsedIconSize?: number;
32
34
  inverted?: boolean;
33
- themeOverrides?: Record<string, any>;
35
+ /** 沿用原生主题契约,公共色和浮层主题可直接复用。 */
36
+ themeOverrides?: MenuProps['themeOverrides'];
34
37
  indent?: number;
35
38
  rootIndent?: number;
36
39
  dropdownProps?: DropdownProps;
@@ -52,7 +55,7 @@ interface MenuExpose {
52
55
  //#endregion
53
56
  //#region src/components/C_Menu/index.vue.d.ts
54
57
  declare const __VLS_export: <Options extends MenuOption[] | undefined = undefined>(__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<{
55
- props: vue.PublicProps & __VLS_PrettifyLocal<MenuProps<Options> & {
58
+ props: vue.PublicProps & __VLS_PrettifyLocal<MenuProps$1<Options> & {
56
59
  "onUpdate:expandedKeys"?: ((keys: MenuSelectionKey<Options>[]) => any) | undefined;
57
60
  onSelect?: ((key: MenuSelectionKey<Options>) => any) | undefined;
58
61
  "onUpdate:modelValue"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
@@ -74,4 +77,4 @@ declare const __VLS_export: <Options extends MenuOption[] | undefined = undefine
74
77
  declare const _default: typeof __VLS_export;
75
78
  type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
76
79
  //#endregion
77
- export { MenuProps as a, MenuKey as i, MenuEmits as n, MenuValue as o, MenuExpose as r, _default as t };
80
+ export { MenuProps$1 as a, MenuKey as i, MenuEmits as n, MenuValue as o, MenuExpose as r, _default as t };
@@ -87,10 +87,10 @@ type __VLS_Slots = {} & {
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
89
  repeat: number;
90
- preset: SkeletonPreset;
91
90
  loading: boolean;
92
- animation: SkeletonAnimation;
93
91
  borderRadius: string;
92
+ preset: SkeletonPreset;
93
+ animation: SkeletonAnimation;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  declare const _default: typeof __VLS_export;
@@ -87,10 +87,10 @@ type __VLS_Slots = {} & {
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
89
  repeat: number;
90
- preset: SkeletonPreset;
91
90
  loading: boolean;
92
- animation: SkeletonAnimation;
93
91
  borderRadius: string;
92
+ preset: SkeletonPreset;
93
+ animation: SkeletonAnimation;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  declare const _default: typeof __VLS_export;
@@ -29,16 +29,16 @@ type __VLS_Props = {
29
29
  connected?: boolean;
30
30
  };
31
31
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
32
- "update:current": (args_0: number) => any;
33
32
  change: (args_0: number) => any;
33
+ "update:current": (args_0: number) => any;
34
34
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- "onUpdate:current"?: ((args_0: number) => any) | undefined;
36
35
  onChange?: ((args_0: number) => any) | undefined;
36
+ "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
38
  direction: "horizontal" | "vertical";
39
+ connected: boolean;
39
40
  current: number;
40
41
  clickable: boolean;
41
- connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -29,16 +29,16 @@ type __VLS_Props = {
29
29
  connected?: boolean;
30
30
  };
31
31
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
32
- "update:current": (args_0: number) => any;
33
32
  change: (args_0: number) => any;
33
+ "update:current": (args_0: number) => any;
34
34
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- "onUpdate:current"?: ((args_0: number) => any) | undefined;
36
35
  onChange?: ((args_0: number) => any) | undefined;
36
+ "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
38
  direction: "horizontal" | "vertical";
39
+ connected: boolean;
39
40
  current: number;
40
41
  clickable: boolean;
41
- connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -73,11 +73,11 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  direction: "ltr" | "rtl";
76
- clickable: boolean;
77
76
  size: number;
78
77
  overlap: number;
79
78
  max: number;
80
- shape: "circle" | "square";
79
+ clickable: boolean;
80
+ shape: "square" | "circle";
81
81
  showStatus: boolean;
82
82
  showTooltip: boolean;
83
83
  overflowClickable: boolean;
@@ -73,11 +73,11 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  direction: "ltr" | "rtl";
76
- clickable: boolean;
77
76
  size: number;
78
77
  overlap: number;
79
78
  max: number;
80
- shape: "circle" | "square";
79
+ clickable: boolean;
80
+ shape: "square" | "circle";
81
81
  showStatus: boolean;
82
82
  showTooltip: boolean;
83
83
  overflowClickable: boolean;
@@ -92,8 +92,8 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
92
92
  }>, {
93
93
  reverse: boolean;
94
94
  size: "small" | "medium" | "large";
95
- mode: "vertical" | "horizontal";
96
95
  items: TimelineItem[];
96
+ mode: "vertical" | "horizontal";
97
97
  pending: boolean;
98
98
  labelPlacement: "left" | "right" | "alternate";
99
99
  lineType: "solid" | "dashed" | "dotted";
@@ -92,8 +92,8 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
92
92
  }>, {
93
93
  reverse: boolean;
94
94
  size: "small" | "medium" | "large";
95
- mode: "vertical" | "horizontal";
96
95
  items: TimelineItem[];
96
+ mode: "vertical" | "horizontal";
97
97
  pending: boolean;
98
98
  labelPlacement: "left" | "right" | "alternate";
99
99
  lineType: "solid" | "dashed" | "dotted";
@@ -61,7 +61,7 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
61
61
  //#region src/components/C_Transfer/index.vue.d.ts
62
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
63
  props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
64
- onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
64
+ onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
65
65
  "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
66
66
  }> & (typeof globalThis extends {
67
67
  __VLS_PROPS_FALLBACK: infer P;
@@ -69,7 +69,7 @@ declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props:
69
69
  expose: (exposed: {}) => void;
70
70
  attrs: any;
71
71
  slots: {};
72
- emit: ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void) & ((evt: "update:modelValue", value: T["key"][]) => void);
72
+ emit: ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void) & ((evt: "update:modelValue", value: T["key"][]) => void);
73
73
  }>) => vue.VNode & {
74
74
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
75
75
  };
@@ -61,7 +61,7 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
61
61
  //#region src/components/C_Transfer/index.vue.d.ts
62
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
63
  props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
64
- onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
64
+ onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
65
65
  "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
66
66
  }> & (typeof globalThis extends {
67
67
  __VLS_PROPS_FALLBACK: infer P;
@@ -69,7 +69,7 @@ declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props:
69
69
  expose: (exposed: {}) => void;
70
70
  attrs: any;
71
71
  slots: {};
72
- emit: ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void) & ((evt: "update:modelValue", value: T["key"][]) => void);
72
+ emit: ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void) & ((evt: "update:modelValue", value: T["key"][]) => void);
73
73
  }>) => vue.VNode & {
74
74
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
75
75
  };
@@ -21,12 +21,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
23
  lineColor: string;
24
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
25
- height: number;
26
24
  label: string;
25
+ height: number;
27
26
  width: number;
28
- showText: boolean;
29
27
  fontSize: number;
28
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
29
+ showText: boolean;
30
30
  textPosition: "bottom" | "top";
31
31
  background: string;
32
32
  showBorder: boolean;
@@ -21,12 +21,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
23
  lineColor: string;
24
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
25
- height: number;
26
24
  label: string;
25
+ height: number;
27
26
  width: number;
28
- showText: boolean;
29
27
  fontSize: number;
28
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
29
+ showText: boolean;
30
30
  textPosition: "bottom" | "top";
31
31
  background: string;
32
32
  showBorder: boolean;
@@ -1,7 +1,7 @@
1
1
  import { n as RouteItem } from "./types3.cjs";
2
2
  import * as vue from "vue";
3
3
  import { Ref, VNode } from "vue";
4
- import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
4
+ import { DropdownProps, MenuInst, MenuOption, MenuProps } from "naive-ui";
5
5
 
6
6
  //#region src/components/_shared/menuAdapter.d.ts
7
7
  /**
@@ -73,7 +73,7 @@ type MenuOptionKeys<Option, Seen = never> = Option extends Seen ? OwnMenuKey<Opt
73
73
  } ? Children extends readonly unknown[] ? MenuOptionKeys<Children[number], Seen | Option> : never : never);
74
74
  type WidenMenuKey<Key> = Key extends string ? string : Key extends number ? number : never;
75
75
  type MenuSelectionKey<O extends MenuOption[] | undefined> = O extends MenuOption[] ? [MenuOptionKeys<O[number]>] extends [never] ? MenuKey : WidenMenuKey<MenuOptionKeys<O[number]>> : string;
76
- interface MenuProps<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
76
+ interface MenuProps$1<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
77
77
  options?: O;
78
78
  routes?: RouteItem[];
79
79
  adapterConfig?: MenuAdapterConfig;
@@ -86,9 +86,12 @@ interface MenuProps<O extends MenuOption[] | undefined = MenuOption[] | undefine
86
86
  mode?: 'vertical' | 'horizontal';
87
87
  collapsed?: boolean;
88
88
  collapsedWidth?: number;
89
+ /** 常态图标尺寸;未配置时使用 Naive UI 默认值。 */
90
+ iconSize?: number;
89
91
  collapsedIconSize?: number;
90
92
  inverted?: boolean;
91
- themeOverrides?: Record<string, any>;
93
+ /** 沿用原生主题契约,公共色和浮层主题可直接复用。 */
94
+ themeOverrides?: MenuProps['themeOverrides'];
92
95
  indent?: number;
93
96
  rootIndent?: number;
94
97
  dropdownProps?: DropdownProps;
@@ -110,7 +113,7 @@ interface MenuExpose {
110
113
  //#endregion
111
114
  //#region src/components/C_Menu/index.vue.d.ts
112
115
  declare const __VLS_export: <Options extends MenuOption[] | undefined = undefined>(__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<{
113
- props: vue.PublicProps & __VLS_PrettifyLocal<MenuProps<Options> & {
116
+ props: vue.PublicProps & __VLS_PrettifyLocal<MenuProps$1<Options> & {
114
117
  "onUpdate:expandedKeys"?: ((keys: MenuSelectionKey<Options>[]) => any) | undefined;
115
118
  onSelect?: ((key: MenuSelectionKey<Options>) => any) | undefined;
116
119
  "onUpdate:modelValue"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
@@ -132,4 +135,4 @@ declare const __VLS_export: <Options extends MenuOption[] | undefined = undefine
132
135
  declare const _default: typeof __VLS_export;
133
136
  type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
134
137
  //#endregion
135
- export { MenuProps as a, createMenuOptions as c, MenuKey as i, flattenRoutes as l, MenuEmits as n, MenuValue as o, MenuExpose as r, MenuAdapterConfig as s, _default as t };
138
+ export { MenuProps$1 as a, createMenuOptions as c, MenuKey as i, flattenRoutes as l, MenuEmits as n, MenuValue as o, MenuExpose as r, MenuAdapterConfig as s, _default as t };
@@ -92,11 +92,11 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  zoom: number;
95
+ ariaLabel: string;
95
96
  height: string;
96
97
  center: MapCoordinate;
97
- mapType: MapType;
98
- ariaLabel: string;
99
98
  markers: MapMarker[];
99
+ mapType: MapType;
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
102
102
  amapOptions: Record<string, unknown>;
@@ -92,11 +92,11 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  zoom: number;
95
+ ariaLabel: string;
95
96
  height: string;
96
97
  center: MapCoordinate;
97
- mapType: MapType;
98
- ariaLabel: string;
99
98
  markers: MapMarker[];
99
+ mapType: MapType;
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
102
102
  amapOptions: Record<string, unknown>;
@@ -15,10 +15,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
15
15
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
16
16
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
17
17
  }>, {
18
- config: ActionBarConfig;
19
18
  actions: ActionItem[];
20
19
  leftActions: ActionItem[];
21
20
  rightActions: ActionItem[];
21
+ config: ActionBarConfig;
22
22
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
24
  declare const _default: typeof __VLS_export;
package/dist/presets.d.ts CHANGED
@@ -15,10 +15,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
15
15
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
16
16
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
17
17
  }>, {
18
- config: ActionBarConfig;
19
18
  actions: ActionItem[];
20
19
  leftActions: ActionItem[];
21
20
  rightActions: ActionItem[];
21
+ config: ActionBarConfig;
22
22
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
24
  declare const _default: typeof __VLS_export;