@robot-admin/naive-ui-components 0.18.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 (103) hide show
  1. package/CHANGELOG.md +16 -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/C_Form.cjs +1 -1
  8. package/dist/C_Table.base.css +108 -108
  9. package/dist/C_Table.css +108 -108
  10. package/dist/constants3.d.cts +3 -3
  11. package/dist/constants3.d.ts +3 -3
  12. package/dist/constants4.d.cts +6 -6
  13. package/dist/constants4.d.ts +6 -6
  14. package/dist/data.d.cts +10 -10
  15. package/dist/data.d.ts +10 -10
  16. package/dist/formValidation.cjs +1 -1
  17. package/dist/formValidation.js +1 -1
  18. package/dist/helpers.cjs +1 -1
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.d.cts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.vue.d.cts +4 -4
  23. package/dist/index.vue.d.ts +4 -4
  24. package/dist/index10.vue.d.cts +4 -4
  25. package/dist/index10.vue.d.ts +6 -6
  26. package/dist/index11.vue.d.cts +6 -6
  27. package/dist/index11.vue.d.ts +2 -2
  28. package/dist/index12.vue.d.cts +2 -2
  29. package/dist/index12.vue.d.ts +1 -1
  30. package/dist/index13.vue.d.cts +1 -1
  31. package/dist/index13.vue.d.ts +8 -8
  32. package/dist/index14.vue.d.cts +8 -8
  33. package/dist/index15.vue.d.ts +1 -1
  34. package/dist/index16.vue.d.cts +1 -1
  35. package/dist/index16.vue.d.ts +1 -1
  36. package/dist/index17.vue.d.cts +1 -1
  37. package/dist/index17.vue.d.ts +2 -2
  38. package/dist/index18.vue.d.cts +2 -2
  39. package/dist/index18.vue.d.ts +5 -5
  40. package/dist/index19.vue.d.cts +1 -1
  41. package/dist/index19.vue.d.ts +1 -1
  42. package/dist/index2.vue.d.cts +3 -3
  43. package/dist/index2.vue.d.ts +3 -3
  44. package/dist/index20.vue.d.cts +1 -1
  45. package/dist/index20.vue.d.ts +1 -1
  46. package/dist/index21.vue.d.cts +1 -1
  47. package/dist/index21.vue.d.ts +1 -1
  48. package/dist/index22.vue.d.cts +2 -2
  49. package/dist/index22.vue.d.ts +2 -2
  50. package/dist/index25.vue.d.cts +3 -3
  51. package/dist/index25.vue.d.ts +3 -3
  52. package/dist/index26.vue.d.cts +2 -2
  53. package/dist/index26.vue.d.ts +2 -2
  54. package/dist/index3.vue.d.cts +5 -5
  55. package/dist/index3.vue.d.ts +5 -5
  56. package/dist/index4.vue.d.cts +5 -5
  57. package/dist/index4.vue.d.ts +26 -12
  58. package/dist/index5.vue.d.cts +26 -12
  59. package/dist/index6.vue.d.ts +2 -2
  60. package/dist/index7.vue.d.cts +2 -2
  61. package/dist/index8.vue.d.ts +2 -2
  62. package/dist/index9.vue.d.cts +2 -2
  63. package/dist/index9.vue.d.ts +4 -4
  64. package/dist/presets.d.cts +5 -3
  65. package/dist/presets.d.ts +5 -3
  66. package/dist/public.d.ts +3 -1
  67. package/dist/style.css +416 -128
  68. package/dist/types.d.cts +3 -1
  69. package/dist/useCalendarEvents.d.cts +1 -1
  70. package/dist/useCalendarEvents.d.ts +1 -1
  71. package/dist/useCollapsePanel.d.cts +6 -6
  72. package/dist/useCollapsePanel.d.ts +6 -6
  73. package/dist/useComponentLocale.cjs +1 -1
  74. package/dist/useComponentLocale.js +1 -1
  75. package/dist/useCropperCore.d.cts +6 -6
  76. package/dist/useCropperCore.d.ts +6 -6
  77. package/dist/useDynamicFormState.d.cts +4 -9
  78. package/dist/useDynamicFormState.d.ts +4 -9
  79. package/dist/useEdgeInteraction.d.cts +3 -3
  80. package/dist/useEdgeInteraction.d.ts +3 -3
  81. package/dist/useFullscreen.d.cts +2 -2
  82. package/dist/useFullscreen.d.ts +2 -2
  83. package/dist/useGlobalSearch.d.cts +1 -1
  84. package/dist/useGlobalSearch.d.ts +1 -1
  85. package/dist/useInfiniteScroll.d.cts +2 -2
  86. package/dist/useInfiniteScroll.d.ts +2 -2
  87. package/dist/useQRCode.d.cts +5 -5
  88. package/dist/useQRCode.d.ts +5 -5
  89. package/dist/useSignatureHistory.d.cts +5 -5
  90. package/dist/useSignatureHistory.d.ts +5 -5
  91. package/dist/useSplitResize.d.cts +6 -6
  92. package/dist/useSplitResize.d.ts +6 -6
  93. package/dist/useTableQuery.cjs +2 -2
  94. package/dist/useTableQuery.d.cts +31 -70
  95. package/dist/useTableQuery.d.ts +31 -70
  96. package/dist/useTableQuery.js +1 -1
  97. package/dist/useWorkflowValidation.d.cts +4 -4
  98. package/dist/useWorkflowValidation.d.ts +4 -4
  99. package/dist/verification.d.cts +3 -3
  100. package/dist/verification.d.ts +3 -3
  101. package/docs/guides/usage.en.md +9 -1
  102. package/docs/guides/usage.md +20 -1
  103. package/package.json +2 -2
@@ -42,22 +42,22 @@ declare const __VLS_export: vue.DefineComponent<Props, {
42
42
  } | null>>;
43
43
  isInitialized: Readonly<vue.Ref<boolean, boolean>>;
44
44
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
45
+ error: (error: Error) => any;
45
46
  "update:modelValue": (value: string) => any;
46
47
  "editor-mounted": (editor: EditorInstance) => any;
47
48
  "editor-change": (html: string) => any;
48
- error: (error: Error) => any;
49
49
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
50
+ onError?: ((error: Error) => any) | undefined;
50
51
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
51
52
  "onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
52
53
  "onEditor-change"?: ((html: string) => any) | undefined;
53
- onError?: ((error: Error) => any) | undefined;
54
54
  }>, {
55
- modelValue: string;
56
- placeholder: string;
57
- disabled: boolean;
58
- readonly: boolean;
59
55
  height: number;
56
+ readonly: boolean;
60
57
  theme: "light" | "dark";
58
+ modelValue: string;
59
+ disabled: boolean;
60
+ placeholder: string;
61
61
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
62
62
  declare const _default: typeof __VLS_export;
63
63
  //#endregion
@@ -38,8 +38,8 @@ interface FormModalEmits<T extends object = FormRecord> {
38
38
  //#region src/components/C_FormModal/index.vue.d.ts
39
39
  declare const __VLS_export: <T extends object = FormRecord>(__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<{
40
40
  props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
41
- onClose?: (() => any) | undefined;
42
41
  onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
42
+ onClose?: (() => any) | undefined;
43
43
  }> & (typeof globalThis extends {
44
44
  __VLS_PROPS_FALLBACK: infer P;
45
45
  } ? P : {});
@@ -48,7 +48,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
48
48
  slots: {
49
49
  [x: string]: ((props: any) => any) | undefined;
50
50
  };
51
- emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
51
+ emit: ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void) & ((evt: "close") => void);
52
52
  }>) => vue.VNode & {
53
53
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
54
54
  };
@@ -38,8 +38,8 @@ interface FormModalEmits<T extends object = FormRecord> {
38
38
  //#region src/components/C_FormModal/index.vue.d.ts
39
39
  declare const __VLS_export: <T extends object = FormRecord>(__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<{
40
40
  props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
41
- onClose?: (() => any) | undefined;
42
41
  onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
42
+ onClose?: (() => any) | undefined;
43
43
  }> & (typeof globalThis extends {
44
44
  __VLS_PROPS_FALLBACK: infer P;
45
45
  } ? P : {});
@@ -48,7 +48,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
48
48
  slots: {
49
49
  [x: string]: ((props: any) => any) | undefined;
50
50
  };
51
- emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
51
+ emit: ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void) & ((evt: "close") => void);
52
52
  }>) => vue.VNode & {
53
53
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
54
54
  };
@@ -111,8 +111,8 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
111
111
  onSkip?: ((currentStep: number) => any) | undefined;
112
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
113
113
  }>, {
114
- keyboard: boolean;
115
114
  steps: GuideStep[];
115
+ keyboard: boolean;
116
116
  doneBtnText: string;
117
117
  nextBtnText: string;
118
118
  prevBtnText: string;
@@ -111,8 +111,8 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
111
111
  onSkip?: ((currentStep: number) => any) | undefined;
112
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
113
113
  }>, {
114
- keyboard: boolean;
115
114
  steps: GuideStep[];
115
+ keyboard: boolean;
116
116
  doneBtnText: string;
117
117
  nextBtnText: string;
118
118
  prevBtnText: string;
@@ -31,28 +31,28 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
31
31
  el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
32
32
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
33
33
  error: (type: string, error?: unknown) => any;
34
- click: (event: KeyboardEvent | MouseEvent) => any;
34
+ click: (event: MouseEvent | KeyboardEvent) => any;
35
35
  load: () => any;
36
36
  }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
37
37
  onError?: ((type: string, error?: unknown) => any) | undefined;
38
- onClick?: ((event: KeyboardEvent | MouseEvent) => any) | undefined;
38
+ onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- size: number | string;
42
41
  type: "iconify" | "unocss" | "component" | "svg" | "image";
42
+ size: number | string;
43
+ clickable: boolean;
43
44
  title: string;
44
45
  loading: boolean;
45
46
  color: string;
46
- viewBox: string;
47
- rotate: number;
48
- flip: "horizontal" | "vertical" | "both";
49
- ariaLabel: string;
50
47
  svgPath: string;
48
+ viewBox: string;
51
49
  alt: string;
52
- clickable: boolean;
53
50
  fallbackIcon: string;
54
51
  loadTimeout: number;
52
+ ariaLabel: string;
55
53
  customClass: string;
54
+ rotate: number;
55
+ flip: "horizontal" | "vertical" | "both";
56
56
  componentProps: Record<string, unknown>;
57
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
@@ -31,28 +31,28 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
31
31
  el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
32
32
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
33
33
  error: (type: string, error?: unknown) => any;
34
- click: (event: KeyboardEvent | MouseEvent) => any;
34
+ click: (event: MouseEvent | KeyboardEvent) => any;
35
35
  load: () => any;
36
36
  }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
37
37
  onError?: ((type: string, error?: unknown) => any) | undefined;
38
- onClick?: ((event: KeyboardEvent | MouseEvent) => any) | undefined;
38
+ onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- size: number | string;
42
41
  type: "iconify" | "unocss" | "component" | "svg" | "image";
42
+ size: number | string;
43
+ clickable: boolean;
43
44
  title: string;
44
45
  loading: boolean;
45
46
  color: string;
46
- viewBox: string;
47
- rotate: number;
48
- flip: "horizontal" | "vertical" | "both";
49
- ariaLabel: string;
50
47
  svgPath: string;
48
+ viewBox: string;
51
49
  alt: string;
52
- clickable: boolean;
53
50
  fallbackIcon: string;
54
51
  loadTimeout: number;
52
+ ariaLabel: string;
55
53
  customClass: string;
54
+ rotate: number;
55
+ flip: "horizontal" | "vertical" | "both";
56
56
  componentProps: Record<string, unknown>;
57
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
@@ -12,8 +12,8 @@ interface LoadingProps {
12
12
  //#endregion
13
13
  //#region src/components/C_Loading/index.vue.d.ts
14
14
  declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
15
- size: number;
16
15
  label: string;
16
+ size: number;
17
17
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  //#endregion
@@ -12,8 +12,8 @@ interface LoadingProps {
12
12
  //#endregion
13
13
  //#region src/components/C_Loading/index.vue.d.ts
14
14
  declare const __VLS_export: vue.DefineComponent<LoadingProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
15
- size: number;
16
15
  label: string;
16
+ size: number;
17
17
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  //#endregion
@@ -117,8 +117,8 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
119
  title: string;
120
- storageKey: string;
121
120
  loading: boolean;
121
+ storageKey: string;
122
122
  defaultUsername: string;
123
123
  defaultPassword: string;
124
124
  captchaProvider: CaptchaProvider;
@@ -117,8 +117,8 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
119
  title: string;
120
- storageKey: string;
121
120
  loading: boolean;
121
+ storageKey: string;
122
122
  defaultUsername: string;
123
123
  defaultPassword: string;
124
124
  captchaProvider: CaptchaProvider;
@@ -61,10 +61,10 @@ 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
+ height: string | number;
64
65
  modelValue: string;
65
- placeholder: string;
66
66
  disabled: boolean;
67
- height: string | number;
67
+ placeholder: string;
68
68
  mode: "edit" | "editable" | "preview";
69
69
  tocNavPosition: "left" | "right";
70
70
  defaultFullscreen: boolean;
@@ -61,10 +61,10 @@ 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
+ height: string | number;
64
65
  modelValue: string;
65
- placeholder: string;
66
66
  disabled: boolean;
67
- height: string | number;
67
+ placeholder: string;
68
68
  mode: "edit" | "editable" | "preview";
69
69
  tocNavPosition: "left" | "right";
70
70
  defaultFullscreen: boolean;
@@ -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>;
@@ -81,10 +81,10 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
81
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
82
82
  }>, {
83
83
  lineColor: string;
84
- lineWidth: number;
85
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;
@@ -81,10 +81,10 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
81
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
82
82
  }>, {
83
83
  lineColor: string;
84
- lineWidth: number;
85
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
75
  max: number;
76
+ size: number;
77
77
  overlap: number;
78
- direction: "ltr" | "rtl";
79
- clickable: boolean;
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
75
  max: number;
76
+ size: number;
77
77
  overlap: number;
78
- direction: "ltr" | "rtl";
79
- clickable: boolean;
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
- status: "default" | "success" | "error" | "warning" | "info";
38
37
  strokeWidth: number;
39
38
  time: number;
39
+ status: "default" | "success" | "error" | "warning" | "info";
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
- status: "default" | "success" | "error" | "warning" | "info";
38
37
  strokeWidth: number;
39
38
  time: number;
39
+ status: "default" | "success" | "error" | "warning" | "info";
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
+ animation: SkeletonAnimation;
89
90
  repeat: number;
90
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
+ animation: SkeletonAnimation;
89
90
  repeat: number;
90
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
- direction: "horizontal" | "vertical";
39
38
  clickable: boolean;
40
- current: number;
39
+ direction: "horizontal" | "vertical";
41
40
  connected: boolean;
41
+ current: number;
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
- direction: "horizontal" | "vertical";
39
38
  clickable: boolean;
40
- current: number;
39
+ direction: "horizontal" | "vertical";
41
40
  connected: boolean;
41
+ current: number;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -90,12 +90,12 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
90
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
91
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
- size: "small" | "medium" | "large";
94
93
  reverse: boolean;
95
94
  items: TimelineItem[];
96
- pending: boolean;
97
- mode: "vertical" | "horizontal";
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;
@@ -90,12 +90,12 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
90
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
91
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
- size: "small" | "medium" | "large";
94
93
  reverse: boolean;
95
94
  items: TimelineItem[];
96
- pending: boolean;
97
- mode: "vertical" | "horizontal";
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;
@@ -58,14 +58,14 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
58
58
  declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
59
  props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
60
60
  "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
61
- onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
61
+ onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
62
62
  }> & (typeof globalThis extends {
63
63
  __VLS_PROPS_FALLBACK: infer P;
64
64
  } ? P : {});
65
65
  expose: (exposed: {}) => void;
66
66
  attrs: any;
67
67
  slots: {};
68
- emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
68
+ emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void);
69
69
  }>) => vue.VNode & {
70
70
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
71
71
  };
@@ -58,14 +58,14 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
58
58
  declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
59
  props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
60
60
  "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
61
- onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
61
+ onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
62
62
  }> & (typeof globalThis extends {
63
63
  __VLS_PROPS_FALLBACK: infer P;
64
64
  } ? P : {});
65
65
  expose: (exposed: {}) => void;
66
66
  attrs: any;
67
67
  slots: {};
68
- emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
68
+ emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void);
69
69
  }>) => vue.VNode & {
70
70
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
71
71
  };
@@ -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
- height: number;
24
23
  label: string;
24
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
25
25
  width: number;
26
+ height: number;
27
+ showText: boolean;
26
28
  fontSize: number;
29
+ textPosition: "bottom" | "top";
27
30
  lineColor: string;
28
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
+ background: string;
29
32
  showBorder: boolean;
30
33
  showLabel: boolean;
31
- showText: boolean;
32
- textPosition: "bottom" | "top";
33
- background: string;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- height: number;
24
23
  label: string;
24
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
25
25
  width: number;
26
+ height: number;
27
+ showText: boolean;
26
28
  fontSize: number;
29
+ textPosition: "bottom" | "top";
27
30
  lineColor: string;
28
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
+ background: string;
29
32
  showBorder: boolean;
30
33
  showLabel: boolean;
31
- showText: boolean;
32
- textPosition: "bottom" | "top";
33
- background: string;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -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 };