@robot-admin/naive-ui-components 0.13.0 → 0.13.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 (103) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +37 -0
  3. package/README_EN.md +37 -0
  4. package/dist/C_Guide.css +123 -0
  5. package/dist/C_Guide.d.cts +2 -2
  6. package/dist/C_Guide.d.ts +2 -2
  7. package/dist/C_Guide2.cjs +1 -1
  8. package/dist/C_Guide2.js +1 -1
  9. package/dist/C_Login.css +76 -76
  10. package/dist/C_Login2.cjs +1 -1
  11. package/dist/C_Login2.js +1 -1
  12. package/dist/constants.d.cts +4 -4
  13. package/dist/constants.d.ts +4 -4
  14. package/dist/constants2.d.cts +4 -4
  15. package/dist/constants2.d.ts +4 -4
  16. package/dist/constants3.d.cts +3 -3
  17. package/dist/constants3.d.ts +3 -3
  18. package/dist/constants4.d.cts +4 -4
  19. package/dist/constants4.d.ts +4 -4
  20. package/dist/constants5.d.cts +2 -2
  21. package/dist/constants5.d.ts +2 -2
  22. package/dist/data.d.cts +8 -8
  23. package/dist/data.d.ts +8 -8
  24. package/dist/index.d.cts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.vue.d.cts +8 -8
  27. package/dist/index.vue.d.ts +8 -8
  28. package/dist/index10.vue.d.cts +6 -6
  29. package/dist/index10.vue.d.ts +3 -3
  30. package/dist/index11.vue.d.cts +3 -3
  31. package/dist/index11.vue.d.ts +3 -3
  32. package/dist/index12.vue.d.cts +3 -3
  33. package/dist/index13.vue.d.ts +33 -7
  34. package/dist/index14.vue.d.cts +33 -7
  35. package/dist/index14.vue.d.ts +5 -5
  36. package/dist/index15.vue.d.cts +5 -5
  37. package/dist/index15.vue.d.ts +3 -3
  38. package/dist/index16.vue.d.cts +3 -3
  39. package/dist/index16.vue.d.ts +10 -1
  40. package/dist/index17.vue.d.cts +10 -1
  41. package/dist/index17.vue.d.ts +4 -4
  42. package/dist/index18.vue.d.cts +4 -4
  43. package/dist/index19.vue.d.cts +1 -1
  44. package/dist/index19.vue.d.ts +1 -1
  45. package/dist/index2.vue.d.cts +3 -3
  46. package/dist/index2.vue.d.ts +3 -3
  47. package/dist/index20.vue.d.cts +1 -1
  48. package/dist/index20.vue.d.ts +1 -1
  49. package/dist/index21.vue.d.cts +2 -2
  50. package/dist/index21.vue.d.ts +2 -2
  51. package/dist/index24.vue.d.cts +4 -4
  52. package/dist/index24.vue.d.ts +4 -4
  53. package/dist/index25.vue.d.cts +1 -1
  54. package/dist/index25.vue.d.ts +1 -1
  55. package/dist/index26.vue.d.cts +2 -2
  56. package/dist/index26.vue.d.ts +2 -2
  57. package/dist/index27.vue.d.cts +3 -3
  58. package/dist/index27.vue.d.ts +3 -3
  59. package/dist/index3.vue.d.cts +6 -6
  60. package/dist/index3.vue.d.ts +6 -6
  61. package/dist/index5.vue.d.ts +2 -2
  62. package/dist/index6.vue.d.cts +2 -2
  63. package/dist/index7.vue.d.ts +2 -2
  64. package/dist/index8.vue.d.cts +2 -2
  65. package/dist/index8.vue.d.ts +1 -1
  66. package/dist/index9.vue.d.cts +1 -1
  67. package/dist/index9.vue.d.ts +6 -6
  68. package/dist/mapUtils.d.cts +2 -2
  69. package/dist/mapUtils.d.ts +2 -2
  70. package/dist/presets.d.cts +1 -1
  71. package/dist/presets.d.ts +1 -1
  72. package/dist/style.css +201 -76
  73. package/dist/useCalendarEvents.d.cts +1 -1
  74. package/dist/useCalendarEvents.d.ts +1 -1
  75. package/dist/useCollapsePanel.d.cts +3 -3
  76. package/dist/useCollapsePanel.d.ts +3 -3
  77. package/dist/useCropperCore.d.cts +3 -3
  78. package/dist/useCropperCore.d.ts +3 -3
  79. package/dist/useDraggableLayout.d.cts +4 -4
  80. package/dist/useDraggableLayout.d.ts +4 -4
  81. package/dist/useDynamicFormState.d.cts +2 -2
  82. package/dist/useDynamicFormState.d.ts +2 -2
  83. package/dist/useEdgeInteraction.d.cts +3 -3
  84. package/dist/useEdgeInteraction.d.ts +3 -3
  85. package/dist/useQRCode.d.cts +6 -6
  86. package/dist/useQRCode.d.ts +6 -6
  87. package/dist/useSearchState.d.cts +8 -8
  88. package/dist/useSearchState.d.ts +8 -8
  89. package/dist/useSignatureHistory.d.cts +6 -6
  90. package/dist/useSignatureHistory.d.ts +6 -6
  91. package/dist/useSplitResize.d.cts +5 -5
  92. package/dist/useSplitResize.d.ts +5 -5
  93. package/dist/useTableQuery.d.cts +1 -1
  94. package/dist/useTableQuery.d.ts +1 -1
  95. package/dist/useTimeSelection.d.cts +4 -4
  96. package/dist/useTimeSelection.d.ts +4 -4
  97. package/dist/useTreeOperations.d.cts +5 -5
  98. package/dist/useTreeOperations.d.ts +5 -5
  99. package/dist/useWorkflowValidation.d.cts +7 -7
  100. package/dist/useWorkflowValidation.d.ts +7 -7
  101. package/dist/verification.d.cts +3 -3
  102. package/dist/verification.d.ts +3 -3
  103. package/package.json +1 -1
@@ -43,16 +43,16 @@ interface DateExpose {
43
43
  //#endregion
44
44
  //#region src/components/C_Date/index.vue.d.ts
45
45
  declare const __VLS_export: vue.DefineComponent<DateProps, DateExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
46
- "update:modelValue": (value: DateModelValue) => any;
47
46
  change: (value: DateModelValue) => any;
47
+ "update:modelValue": (value: DateModelValue) => any;
48
48
  "update:singleDate": (value: DateValue) => any;
49
49
  "update:singleDateTime": (value: DateValue) => any;
50
50
  "update:dateRange": (value: DateRangeValue) => any;
51
51
  "update:dateTimeRange": (value: DateRangeValue) => any;
52
52
  "update:smartRange": (value: DateRangeValue) => any;
53
53
  }, string, vue.PublicProps, Readonly<DateProps> & Readonly<{
54
- "onUpdate:modelValue"?: ((value: DateModelValue) => any) | undefined;
55
54
  onChange?: ((value: DateModelValue) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((value: DateModelValue) => any) | undefined;
56
56
  "onUpdate:singleDate"?: ((value: DateValue) => any) | undefined;
57
57
  "onUpdate:singleDateTime"?: ((value: DateValue) => any) | undefined;
58
58
  "onUpdate:dateRange"?: ((value: DateRangeValue) => any) | undefined;
@@ -61,9 +61,9 @@ declare const __VLS_export: vue.DefineComponent<DateProps, DateExpose, {}, {}, {
61
61
  }>, {
62
62
  mode: DatePickerMode;
63
63
  disabled: boolean;
64
+ placeholder: string;
64
65
  startPlaceholder: string;
65
66
  endPlaceholder: string;
66
- placeholder: string;
67
67
  disabledBeforeToday: boolean;
68
68
  disabledAfterToday: boolean;
69
69
  startDateProps: Record<string, unknown>;
@@ -52,11 +52,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
52
52
  "onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
53
53
  "onEditor-change"?: ((html: string) => any) | undefined;
54
54
  }>, {
55
- theme: "light" | "dark";
56
- modelValue: string;
57
- readonly: boolean;
58
55
  height: number;
56
+ theme: "light" | "dark";
59
57
  disabled: boolean;
58
+ readonly: boolean;
59
+ modelValue: string;
60
60
  placeholder: string;
61
61
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
62
62
  declare const _default: typeof __VLS_export;
@@ -52,11 +52,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
52
52
  "onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
53
53
  "onEditor-change"?: ((html: string) => any) | undefined;
54
54
  }>, {
55
- theme: "light" | "dark";
56
- modelValue: string;
57
- readonly: boolean;
58
55
  height: number;
56
+ theme: "light" | "dark";
59
57
  disabled: boolean;
58
+ readonly: boolean;
59
+ modelValue: string;
60
60
  placeholder: string;
61
61
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
62
62
  declare const _default: typeof __VLS_export;
@@ -1,15 +1,27 @@
1
1
  import * as vue from "vue";
2
2
 
3
3
  //#region src/components/C_Guide/types.d.ts
4
+ /** 通用功能示意图,不包含宿主业务数据。 */
5
+ type GuideIllustration = 'navigation' | 'search' | 'tabs' | 'account' | 'overview' | 'notification' | 'fullscreen' | 'language' | 'theme' | 'settings';
6
+ /** 可使用选择器、真实元素或动态解析函数定位目标。 */
7
+ type GuideTarget = string | Element | (() => Element | null | undefined);
8
+ /** 引导实例公开方法,用于宿主在路由变化时主动停止等场景。 */
9
+ interface GuideExpose {
10
+ startGuide: (force?: boolean) => Promise<void>;
11
+ stopGuide: () => void;
12
+ resetCompleted: () => void;
13
+ isCompleted: () => boolean;
14
+ }
4
15
  /** 引导步骤定义 */
5
16
  interface GuideStep {
6
- /** 目标 DOM 选择器 */
7
- element: string;
17
+ /** 目标元素;不传时可展示居中的欢迎步骤。 */
18
+ element?: GuideTarget;
8
19
  /** 弹出层配置 */
9
20
  popover: {
10
21
  title: string;
11
22
  description: string;
12
- side?: 'top' | 'right' | 'bottom' | 'left';
23
+ side?: 'top' | 'right' | 'bottom' | 'left'; /** 可选的轻量示意图,使用组件主题色。 */
24
+ illustration?: GuideIllustration;
13
25
  };
14
26
  /** 步骤所属分组(用于步骤分组展示) */
15
27
  group?: string;
@@ -50,14 +62,20 @@ interface GuideProps {
50
62
  nextBtnText?: string;
51
63
  /** 上一步按钮文字 */
52
64
  prevBtnText?: string;
65
+ /** 是否显示跳过按钮;allowClose 为 false 时不显示,默认 true。 */
66
+ showSkipButton?: boolean;
67
+ /** 跳过按钮文字,默认“跳过引导”。 */
68
+ skipBtnText?: string;
53
69
  /** 是否显示进度条 */
54
70
  showProgress?: boolean;
55
- /** 是否启用键盘导航(← → Enter Esc) */
71
+ /** 是否启用键盘导航(← → Esc) */
56
72
  keyboard?: boolean;
57
73
  /** 是否启用动画 */
58
74
  animate?: boolean;
59
75
  /** 是否允许点击遮罩关闭 */
60
76
  allowClose?: boolean;
77
+ /** 自动跳过不存在或不可见的目标,默认 true。 */
78
+ skipMissingElements?: boolean;
61
79
  /** 主题配置 */
62
80
  theme?: GuideTheme;
63
81
  /** 持久化配置 */
@@ -74,28 +92,36 @@ interface GuideProps {
74
92
  //#endregion
75
93
  //#region src/components/C_Guide/index.vue.d.ts
76
94
  declare const __VLS_export: vue.DefineComponent<GuideProps, {
77
- startGuide: (force?: boolean) => void;
95
+ startGuide: (force?: boolean) => Promise<void>;
96
+ stopGuide: () => void;
78
97
  resetCompleted: () => void;
79
98
  isCompleted: () => boolean;
80
99
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
100
+ error: (error: unknown) => any;
81
101
  start: () => any;
82
102
  close: (currentStep: number) => any;
83
103
  complete: () => any;
104
+ skip: (currentStep: number) => any;
84
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
85
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
+ onError?: ((error: unknown) => any) | undefined;
86
108
  onStart?: (() => any) | undefined;
87
109
  onClose?: ((currentStep: number) => any) | undefined;
88
110
  onComplete?: (() => any) | undefined;
111
+ onSkip?: ((currentStep: number) => any) | undefined;
89
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
90
113
  }>, {
114
+ keyboard: boolean;
91
115
  steps: GuideStep[];
92
116
  doneBtnText: string;
93
117
  nextBtnText: string;
94
118
  prevBtnText: string;
119
+ showSkipButton: boolean;
120
+ skipBtnText: string;
95
121
  showProgress: boolean;
96
- keyboard: boolean;
97
122
  animate: boolean;
98
123
  allowClose: boolean;
124
+ skipMissingElements: boolean;
99
125
  popoverClass: string;
100
126
  showTrigger: boolean;
101
127
  triggerTooltip: string;
@@ -103,4 +129,4 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
103
129
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
104
130
  declare const _default: typeof __VLS_export;
105
131
  //#endregion
106
- export { GuideTheme as a, GuideStep as i, GuidePersistence as n, GuideProps as r, _default as t };
132
+ export { GuideProps as a, GuideTheme as c, GuidePersistence as i, GuideExpose as n, GuideStep as o, GuideIllustration as r, GuideTarget as s, _default as t };
@@ -1,15 +1,27 @@
1
1
  import * as vue from "vue";
2
2
 
3
3
  //#region src/components/C_Guide/types.d.ts
4
+ /** 通用功能示意图,不包含宿主业务数据。 */
5
+ type GuideIllustration = 'navigation' | 'search' | 'tabs' | 'account' | 'overview' | 'notification' | 'fullscreen' | 'language' | 'theme' | 'settings';
6
+ /** 可使用选择器、真实元素或动态解析函数定位目标。 */
7
+ type GuideTarget = string | Element | (() => Element | null | undefined);
8
+ /** 引导实例公开方法,用于宿主在路由变化时主动停止等场景。 */
9
+ interface GuideExpose {
10
+ startGuide: (force?: boolean) => Promise<void>;
11
+ stopGuide: () => void;
12
+ resetCompleted: () => void;
13
+ isCompleted: () => boolean;
14
+ }
4
15
  /** 引导步骤定义 */
5
16
  interface GuideStep {
6
- /** 目标 DOM 选择器 */
7
- element: string;
17
+ /** 目标元素;不传时可展示居中的欢迎步骤。 */
18
+ element?: GuideTarget;
8
19
  /** 弹出层配置 */
9
20
  popover: {
10
21
  title: string;
11
22
  description: string;
12
- side?: 'top' | 'right' | 'bottom' | 'left';
23
+ side?: 'top' | 'right' | 'bottom' | 'left'; /** 可选的轻量示意图,使用组件主题色。 */
24
+ illustration?: GuideIllustration;
13
25
  };
14
26
  /** 步骤所属分组(用于步骤分组展示) */
15
27
  group?: string;
@@ -50,14 +62,20 @@ interface GuideProps {
50
62
  nextBtnText?: string;
51
63
  /** 上一步按钮文字 */
52
64
  prevBtnText?: string;
65
+ /** 是否显示跳过按钮;allowClose 为 false 时不显示,默认 true。 */
66
+ showSkipButton?: boolean;
67
+ /** 跳过按钮文字,默认“跳过引导”。 */
68
+ skipBtnText?: string;
53
69
  /** 是否显示进度条 */
54
70
  showProgress?: boolean;
55
- /** 是否启用键盘导航(← → Enter Esc) */
71
+ /** 是否启用键盘导航(← → Esc) */
56
72
  keyboard?: boolean;
57
73
  /** 是否启用动画 */
58
74
  animate?: boolean;
59
75
  /** 是否允许点击遮罩关闭 */
60
76
  allowClose?: boolean;
77
+ /** 自动跳过不存在或不可见的目标,默认 true。 */
78
+ skipMissingElements?: boolean;
61
79
  /** 主题配置 */
62
80
  theme?: GuideTheme;
63
81
  /** 持久化配置 */
@@ -74,28 +92,36 @@ interface GuideProps {
74
92
  //#endregion
75
93
  //#region src/components/C_Guide/index.vue.d.ts
76
94
  declare const __VLS_export: vue.DefineComponent<GuideProps, {
77
- startGuide: (force?: boolean) => void;
95
+ startGuide: (force?: boolean) => Promise<void>;
96
+ stopGuide: () => void;
78
97
  resetCompleted: () => void;
79
98
  isCompleted: () => boolean;
80
99
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
100
+ error: (error: unknown) => any;
81
101
  start: () => any;
82
102
  close: (currentStep: number) => any;
83
103
  complete: () => any;
104
+ skip: (currentStep: number) => any;
84
105
  "step-change": (stepIndex: number, step: GuideStep) => any;
85
106
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
107
+ onError?: ((error: unknown) => any) | undefined;
86
108
  onStart?: (() => any) | undefined;
87
109
  onClose?: ((currentStep: number) => any) | undefined;
88
110
  onComplete?: (() => any) | undefined;
111
+ onSkip?: ((currentStep: number) => any) | undefined;
89
112
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
90
113
  }>, {
114
+ keyboard: boolean;
91
115
  steps: GuideStep[];
92
116
  doneBtnText: string;
93
117
  nextBtnText: string;
94
118
  prevBtnText: string;
119
+ showSkipButton: boolean;
120
+ skipBtnText: string;
95
121
  showProgress: boolean;
96
- keyboard: boolean;
97
122
  animate: boolean;
98
123
  allowClose: boolean;
124
+ skipMissingElements: boolean;
99
125
  popoverClass: string;
100
126
  showTrigger: boolean;
101
127
  triggerTooltip: string;
@@ -103,4 +129,4 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
103
129
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
104
130
  declare const _default: typeof __VLS_export;
105
131
  //#endregion
106
- export { GuideTheme as a, GuideStep as i, GuidePersistence as n, GuideProps as r, _default as t };
132
+ export { GuideProps as a, GuideTheme as c, GuidePersistence as i, GuideExpose as n, GuideStep as o, GuideIllustration as r, GuideTarget as s, _default as t };
@@ -28,23 +28,23 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
28
28
  errorMessage: Readonly<vue.Ref<string, string>>; /** DOM引用 */
29
29
  el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
30
30
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
31
- error: (type: string, error?: unknown) => any;
32
31
  click: (event: MouseEvent | KeyboardEvent) => any;
32
+ error: (type: string, error?: unknown) => any;
33
33
  load: () => any;
34
34
  }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
35
- onError?: ((type: string, error?: unknown) => any) | undefined;
36
35
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
36
+ onError?: ((type: string, error?: unknown) => any) | undefined;
37
37
  onLoad?: (() => any) | undefined;
38
38
  }>, {
39
- type: "iconify" | "unocss" | "component" | "svg" | "image";
40
39
  title: string;
40
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
41
41
  name: string | vue.Component;
42
- size: number | string;
43
- clickable: boolean;
44
42
  color: string;
43
+ size: number | string;
45
44
  svgPath: string;
46
45
  viewBox: string;
47
46
  alt: string;
47
+ clickable: boolean;
48
48
  loading: boolean;
49
49
  fallbackIcon: string;
50
50
  ariaLabel: string;
@@ -28,23 +28,23 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
28
28
  errorMessage: Readonly<vue.Ref<string, string>>; /** DOM引用 */
29
29
  el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
30
30
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
31
- error: (type: string, error?: unknown) => any;
32
31
  click: (event: MouseEvent | KeyboardEvent) => any;
32
+ error: (type: string, error?: unknown) => any;
33
33
  load: () => any;
34
34
  }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
35
- onError?: ((type: string, error?: unknown) => any) | undefined;
36
35
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
36
+ onError?: ((type: string, error?: unknown) => any) | undefined;
37
37
  onLoad?: (() => any) | undefined;
38
38
  }>, {
39
- type: "iconify" | "unocss" | "component" | "svg" | "image";
40
39
  title: string;
40
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
41
41
  name: string | vue.Component;
42
- size: number | string;
43
- clickable: boolean;
44
42
  color: string;
43
+ size: number | string;
45
44
  svgPath: string;
46
45
  viewBox: string;
47
46
  alt: string;
47
+ clickable: boolean;
48
48
  loading: boolean;
49
49
  fallbackIcon: string;
50
50
  ariaLabel: string;
@@ -19,14 +19,14 @@ type __VLS_Props = {
19
19
  tooltip?: string;
20
20
  };
21
21
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- "update:modelValue": (key: string) => any;
23
22
  change: (key: string) => any;
23
+ "update:modelValue": (key: string) => any;
24
24
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
26
25
  onChange?: ((key: string) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
27
27
  }>, {
28
- modelValue: string;
29
28
  options: LegacyLanguageOption[];
29
+ modelValue: string;
30
30
  tooltip: string;
31
31
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
@@ -19,14 +19,14 @@ type __VLS_Props = {
19
19
  tooltip?: string;
20
20
  };
21
21
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- "update:modelValue": (key: string) => any;
23
22
  change: (key: string) => any;
23
+ "update:modelValue": (key: string) => any;
24
24
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
26
25
  onChange?: ((key: string) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
27
27
  }>, {
28
- modelValue: string;
29
28
  options: LegacyLanguageOption[];
29
+ modelValue: string;
30
30
  tooltip: string;
31
31
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
@@ -61,6 +61,8 @@ interface LoginProps {
61
61
  storageKey?: string;
62
62
  /** 外部传入的 loading 状态 */
63
63
  loading?: boolean;
64
+ /** 宿主扩展字段未就绪时阻止按钮和回车提交 */
65
+ submitDisabled?: boolean;
64
66
  /** 表单默认用户名(Demo / 预填场景) */
65
67
  defaultUsername?: string;
66
68
  /** 表单默认密码(Demo / 预填场景) */
@@ -80,9 +82,14 @@ declare const DEFAULT_SOCIAL_PROVIDERS: SocialProvider[];
80
82
  declare const DEFAULT_FEATURES: Required<LoginFeatures>;
81
83
  //#endregion
82
84
  //#region src/components/C_Login/index.vue.d.ts
83
- declare var __VLS_1: {};
85
+ declare var __VLS_1: {}, __VLS_54: {
86
+ username: string;
87
+ loading: boolean;
88
+ };
84
89
  type __VLS_Slots = {} & {
85
90
  logo?: (props: typeof __VLS_1) => any;
91
+ } & {
92
+ 'password-fields'?: (props: typeof __VLS_54) => any;
86
93
  };
87
94
  declare const __VLS_base: vue.DefineComponent<LoginProps, {
88
95
  resetCaptcha: () => void;
@@ -96,6 +103,7 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
96
103
  "register-submit": (data: RegisterFormData) => any;
97
104
  "register-send-code": (phone: string) => any;
98
105
  "captcha-visible-change": (visible: boolean) => any;
106
+ "username-change": (username: string) => any;
99
107
  }, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
100
108
  onSubmit?: ((data: PasswordFormData) => any) | undefined;
101
109
  "onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
@@ -106,6 +114,7 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
106
114
  "onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
107
115
  "onRegister-send-code"?: ((phone: string) => any) | undefined;
108
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
+ "onUsername-change"?: ((username: string) => any) | undefined;
109
118
  }>, {
110
119
  title: string;
111
120
  loading: boolean;
@@ -61,6 +61,8 @@ interface LoginProps {
61
61
  storageKey?: string;
62
62
  /** 外部传入的 loading 状态 */
63
63
  loading?: boolean;
64
+ /** 宿主扩展字段未就绪时阻止按钮和回车提交 */
65
+ submitDisabled?: boolean;
64
66
  /** 表单默认用户名(Demo / 预填场景) */
65
67
  defaultUsername?: string;
66
68
  /** 表单默认密码(Demo / 预填场景) */
@@ -80,9 +82,14 @@ declare const DEFAULT_SOCIAL_PROVIDERS: SocialProvider[];
80
82
  declare const DEFAULT_FEATURES: Required<LoginFeatures>;
81
83
  //#endregion
82
84
  //#region src/components/C_Login/index.vue.d.ts
83
- declare var __VLS_1: {};
85
+ declare var __VLS_1: {}, __VLS_54: {
86
+ username: string;
87
+ loading: boolean;
88
+ };
84
89
  type __VLS_Slots = {} & {
85
90
  logo?: (props: typeof __VLS_1) => any;
91
+ } & {
92
+ 'password-fields'?: (props: typeof __VLS_54) => any;
86
93
  };
87
94
  declare const __VLS_base: vue.DefineComponent<LoginProps, {
88
95
  resetCaptcha: () => void;
@@ -96,6 +103,7 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
96
103
  "register-submit": (data: RegisterFormData) => any;
97
104
  "register-send-code": (phone: string) => any;
98
105
  "captcha-visible-change": (visible: boolean) => any;
106
+ "username-change": (username: string) => any;
99
107
  }, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
100
108
  onSubmit?: ((data: PasswordFormData) => any) | undefined;
101
109
  "onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
@@ -106,6 +114,7 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
106
114
  "onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
107
115
  "onRegister-send-code"?: ((phone: string) => any) | undefined;
108
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
+ "onUsername-change"?: ((username: string) => any) | undefined;
109
118
  }>, {
110
119
  title: string;
111
120
  loading: boolean;
@@ -41,8 +41,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
41
41
  insertText: (text: string) => void;
42
42
  wordCount: vue.ComputedRef<number>;
43
43
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- "update:modelValue": (value: string) => any;
45
44
  change: (text: string, html: string) => any;
45
+ "update:modelValue": (value: string) => any;
46
46
  save: (text: string, html: string) => any;
47
47
  "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
48
  "fullscreen-change": (isFullscreen: boolean) => any;
@@ -51,8 +51,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
51
51
  "auto-save": (text: string) => any;
52
52
  "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
53
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
54
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
54
  onChange?: ((text: string, html: string) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
56
  onSave?: ((text: string, html: string) => any) | undefined;
57
57
  "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
58
  "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
@@ -62,11 +62,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
64
  mode: "edit" | "editable" | "preview";
65
- modelValue: string;
66
65
  height: string | number;
67
66
  disabled: boolean;
67
+ modelValue: string;
68
68
  placeholder: string;
69
- isDark: boolean;
70
69
  tocNavPosition: "left" | "right";
71
70
  defaultFullscreen: boolean;
72
71
  autofocus: boolean;
@@ -77,6 +76,7 @@ declare const __VLS_export: vue.DefineComponent<Props, {
77
76
  showWordCount: boolean;
78
77
  autoSave: boolean;
79
78
  autoSaveInterval: number;
79
+ isDark: boolean;
80
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
81
  declare const _default: typeof __VLS_export;
82
82
  //#endregion
@@ -41,8 +41,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
41
41
  insertText: (text: string) => void;
42
42
  wordCount: vue.ComputedRef<number>;
43
43
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- "update:modelValue": (value: string) => any;
45
44
  change: (text: string, html: string) => any;
45
+ "update:modelValue": (value: string) => any;
46
46
  save: (text: string, html: string) => any;
47
47
  "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
48
  "fullscreen-change": (isFullscreen: boolean) => any;
@@ -51,8 +51,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
51
51
  "auto-save": (text: string) => any;
52
52
  "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
53
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
54
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
54
  onChange?: ((text: string, html: string) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
56
  onSave?: ((text: string, html: string) => any) | undefined;
57
57
  "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
58
  "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
@@ -62,11 +62,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
64
  mode: "edit" | "editable" | "preview";
65
- modelValue: string;
66
65
  height: string | number;
67
66
  disabled: boolean;
67
+ modelValue: string;
68
68
  placeholder: string;
69
- isDark: boolean;
70
69
  tocNavPosition: "left" | "right";
71
70
  defaultFullscreen: boolean;
72
71
  autofocus: boolean;
@@ -77,6 +76,7 @@ declare const __VLS_export: vue.DefineComponent<Props, {
77
76
  showWordCount: boolean;
78
77
  autoSave: boolean;
79
78
  autoSaveInterval: number;
79
+ isDark: boolean;
80
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
81
  declare const _default: typeof __VLS_export;
82
82
  //#endregion
@@ -78,8 +78,8 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
78
78
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
79
  }>, {
80
80
  direction: OrgChartDirection;
81
- lineColor: string;
82
81
  lineStyle: OrgChartLineStyle;
82
+ lineColor: string;
83
83
  lineWidth: number;
84
84
  nodeSpacing: number;
85
85
  levelSpacing: number;
@@ -78,8 +78,8 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
78
78
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
79
  }>, {
80
80
  direction: OrgChartDirection;
81
- lineColor: string;
82
81
  lineStyle: OrgChartLineStyle;
82
+ lineColor: string;
83
83
  lineWidth: number;
84
84
  nodeSpacing: number;
85
85
  levelSpacing: number;
@@ -73,14 +73,14 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- max: number;
76
+ clickable: boolean;
77
+ direction: "ltr" | "rtl";
77
78
  overlap: number;
79
+ max: number;
78
80
  shape: "circle" | "square";
79
81
  showStatus: boolean;
80
82
  showTooltip: boolean;
81
- clickable: boolean;
82
83
  overflowClickable: boolean;
83
- direction: "ltr" | "rtl";
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
86
86
  //#endregion
@@ -73,14 +73,14 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- max: number;
76
+ clickable: boolean;
77
+ direction: "ltr" | "rtl";
77
78
  overlap: number;
79
+ max: number;
78
80
  shape: "circle" | "square";
79
81
  showStatus: boolean;
80
82
  showTooltip: boolean;
81
- clickable: boolean;
82
83
  overflowClickable: boolean;
83
- direction: "ltr" | "rtl";
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
86
86
  //#endregion
@@ -35,9 +35,9 @@ type __VLS_Slots = {} & {
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
37
  status: "default" | "success" | "error" | "warning" | "info";
38
- time: number;
39
38
  percentage: number | number[];
40
39
  isAnimation: boolean;
40
+ time: number;
41
41
  indicatorPlacement: "inside" | "outside";
42
42
  showIndicator: boolean;
43
43
  strokeWidth: number;
@@ -35,9 +35,9 @@ type __VLS_Slots = {} & {
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
37
  status: "default" | "success" | "error" | "warning" | "info";
38
- time: number;
39
38
  percentage: number | number[];
40
39
  isAnimation: boolean;
40
+ time: number;
41
41
  indicatorPlacement: "inside" | "outside";
42
42
  showIndicator: boolean;
43
43
  strokeWidth: number;
@@ -86,11 +86,11 @@ 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
- repeat: number;
90
89
  loading: boolean;
90
+ repeat: number;
91
+ preset: SkeletonPreset;
91
92
  borderRadius: string;
92
93
  animation: SkeletonAnimation;
93
- preset: SkeletonPreset;
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;
@@ -86,11 +86,11 @@ 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
- repeat: number;
90
89
  loading: boolean;
90
+ repeat: number;
91
+ preset: SkeletonPreset;
91
92
  borderRadius: string;
92
93
  animation: SkeletonAnimation;
93
- preset: SkeletonPreset;
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;
@@ -647,14 +647,14 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- theme: "light" | "dark";
651
- data: GanttTask[];
652
- height: string | number;
653
650
  title: string;
654
- showToolbar: boolean;
651
+ data: GanttTask[];
655
652
  options: GanttOptions;
656
653
  preset: GanttPreset;
654
+ height: string | number;
655
+ showToolbar: boolean;
657
656
  showFullscreenButton: boolean;
657
+ theme: "light" | "dark";
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
659
659
  declare const _default: typeof __VLS_export;
660
660
  //#endregion