@robot-admin/naive-ui-components 0.22.0 → 0.23.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.
- package/CHANGELOG.md +18 -0
- package/README.md +9 -5
- package/README_EN.md +9 -5
- package/dist/C_ActionBar.d.cts +2 -1
- package/dist/C_ActionBar.d.ts +2 -1
- package/dist/C_AntV2.cjs +3 -3
- package/dist/C_AntV2.js +3 -3
- package/dist/C_BatchResult.cjs +1 -0
- package/dist/C_BatchResult.css +32 -0
- package/dist/C_BatchResult.d.cts +2 -0
- package/dist/C_BatchResult.d.ts +2 -0
- package/dist/C_BatchResult.js +1 -0
- package/dist/C_BatchResult2.cjs +1 -0
- package/dist/C_BatchResult2.js +1 -0
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Captcha.d.ts +2 -0
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_DataPicker.cjs +1 -0
- package/dist/C_DataPicker.css +54 -0
- package/dist/C_DataPicker.d.cts +2 -0
- package/dist/C_DataPicker.d.ts +5 -0
- package/dist/C_DataPicker.js +1 -0
- package/dist/C_DataPicker2.cjs +1 -0
- package/dist/C_DataPicker2.js +1 -0
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.cjs +1 -0
- package/dist/C_Density.css +1 -0
- package/dist/C_Density.d.cts +3 -0
- package/dist/C_Density.d.ts +3 -0
- package/dist/C_Density.js +1 -0
- package/dist/C_Density2.cjs +1 -0
- package/dist/C_Density2.js +1 -0
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.cjs +1 -0
- package/dist/C_ErrorSummary.css +29 -0
- package/dist/C_ErrorSummary.d.cts +3 -0
- package/dist/C_ErrorSummary.d.ts +3 -0
- package/dist/C_ErrorSummary.js +1 -0
- package/dist/C_ErrorSummary2.cjs +1 -0
- package/dist/C_ErrorSummary2.js +1 -0
- package/dist/C_Form.base.css +150 -148
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +151 -253
- package/dist/C_Form.d.cts +3 -1
- package/dist/C_Form.d.ts +19 -1
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.css +11 -12
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +18 -2
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.cjs +1 -1
- package/dist/C_FormSearch.css +128 -56
- package/dist/C_FormSearch.d.cts +3 -3
- package/dist/C_FormSearch.d.ts +5 -3
- package/dist/C_FormSearch.js +1 -1
- package/dist/C_FormulaEditor.d.cts +1 -1
- package/dist/C_FormulaEditor.d.ts +1 -1
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +4 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.d.cts +2 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_SectionNav.cjs +1 -0
- package/dist/C_SectionNav.css +46 -0
- package/dist/C_SectionNav.d.cts +2 -0
- package/dist/C_SectionNav.d.ts +2 -0
- package/dist/C_SectionNav.js +1 -0
- package/dist/C_SectionNav2.cjs +1 -0
- package/dist/C_SectionNav2.js +1 -0
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +258 -256
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +109 -1283
- package/dist/C_Table.d.cts +2 -1
- package/dist/C_Table.d.ts +11 -7
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +3 -0
- package/dist/C_Table2.js +3 -0
- package/dist/C_Tabs.cjs +1 -1
- package/dist/C_Tabs.d.cts +1 -1
- package/dist/C_Tabs.d.ts +1 -1
- package/dist/C_Tabs.js +1 -1
- package/dist/C_TagsView.d.cts +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.d.ts +10 -6
- package/dist/C_Upload.d.cts +1 -1
- package/dist/C_Upload.d.ts +1 -1
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/batchPatch.cjs +1 -0
- package/dist/batchPatch.d.cts +26 -0
- package/dist/batchPatch.d.ts +26 -0
- package/dist/batchPatch.js +1 -0
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +7 -1
- package/dist/config.d.ts +7 -1
- package/dist/config.js +1 -1
- package/dist/config2.d.ts +14 -0
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +402 -173
- package/dist/constants2.d.ts +402 -173
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +173 -402
- package/dist/constants4.d.ts +173 -402
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.cjs +1 -1
- package/dist/data.d.cts +5 -108
- package/dist/data.d.ts +5 -108
- package/dist/data.js +1 -1
- package/dist/data2.cjs +1 -1
- package/dist/data2.d.cts +108 -0
- package/dist/data2.d.ts +108 -0
- package/dist/data2.js +1 -1
- package/dist/data3.cjs +1 -0
- package/dist/data3.js +1 -0
- package/dist/dateRange.d.cts +108 -13
- package/dist/dateRange.d.ts +108 -13
- package/dist/density.cjs +1 -1
- package/dist/density.js +1 -1
- package/dist/dictionary.cjs +1 -0
- package/dist/dictionary.d.cts +38 -0
- package/dist/dictionary.d.ts +38 -0
- package/dist/dictionary.js +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +65 -53
- package/dist/index.d.ts +73 -57
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +1 -1
- package/dist/index.vue.d.ts +1 -1
- package/dist/index10.vue.d.cts +37 -80
- package/dist/index10.vue.d.ts +77 -53
- package/dist/index11.vue.d.cts +77 -53
- package/dist/index11.vue.d.ts +1117 -45
- package/dist/index12.vue.d.cts +1117 -45
- package/dist/index12.vue.d.ts +17 -128
- package/dist/index13.vue.d.cts +17 -128
- package/dist/index13.vue.d.ts +57 -53
- package/dist/index14.vue.d.cts +57 -53
- package/dist/index14.vue.d.ts +16 -25
- package/dist/index15.vue.d.cts +16 -25
- package/dist/index15.vue.d.ts +52 -12
- package/dist/index16.vue.d.cts +52 -12
- package/dist/index16.vue.d.ts +13 -129
- package/dist/index17.vue.d.cts +13 -129
- package/dist/index17.vue.d.ts +123 -74
- package/dist/index18.vue.d.cts +123 -74
- package/dist/index18.vue.d.ts +48 -71
- package/dist/index19.vue.d.cts +40 -91
- package/dist/index19.vue.d.ts +36 -96
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +38 -47
- package/dist/index20.vue.d.ts +13 -48
- package/dist/index21.vue.d.cts +12 -96
- package/dist/index21.vue.d.ts +25 -95
- package/dist/index22.vue.d.cts +20 -32
- package/dist/index22.vue.d.ts +75 -37
- package/dist/index23.vue.d.cts +77 -13
- package/dist/index23.vue.d.ts +71 -13
- package/dist/index24.vue.d.cts +2 -2
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index25.vue.d.cts +116 -90
- package/dist/index25.vue.d.ts +116 -90
- package/dist/index26.vue.d.cts +94 -59
- package/dist/index26.vue.d.ts +94 -59
- package/dist/index27.vue.d.cts +75 -0
- package/dist/index27.vue.d.ts +75 -0
- package/dist/index28.vue.d.cts +103 -0
- package/dist/index28.vue.d.ts +103 -0
- package/dist/index29.vue.d.cts +105 -0
- package/dist/index29.vue.d.ts +105 -0
- package/dist/index3.vue.d.cts +4 -4
- package/dist/index3.vue.d.ts +4 -4
- package/dist/index30.vue.d.cts +28 -0
- package/dist/index30.vue.d.ts +28 -0
- package/dist/index4.vue.d.cts +19 -128
- package/dist/index4.vue.d.ts +17 -34
- package/dist/index5.vue.d.cts +127 -35
- package/dist/index5.vue.d.ts +30 -19
- package/dist/index6.vue.d.cts +30 -19
- package/dist/index6.vue.d.ts +22 -118
- package/dist/index7.vue.d.cts +22 -118
- package/dist/index7.vue.d.ts +112 -18
- package/dist/index8.vue.d.cts +112 -18
- package/dist/index8.vue.d.ts +24 -35
- package/dist/index9.vue.d.cts +24 -35
- package/dist/index9.vue.d.ts +37 -80
- package/dist/mapUtils.d.cts +4 -4
- package/dist/mapUtils.d.ts +4 -4
- package/dist/numberCodec.cjs +1 -0
- package/dist/numberCodec.d.cts +25 -0
- package/dist/numberCodec.d.ts +25 -0
- package/dist/numberCodec.js +1 -0
- package/dist/observer.cjs +1 -0
- package/dist/observer.js +1 -0
- package/dist/presets.d.cts +3 -66
- package/dist/presets.d.ts +3 -66
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/serializeSearch.cjs +1 -0
- package/dist/serializeSearch.js +1 -0
- package/dist/style.css +561 -322
- package/dist/types.d.cts +60 -103
- package/dist/types.d.ts +62 -52
- package/dist/types2.d.cts +104 -51
- package/dist/types2.d.ts +56 -0
- package/dist/types3.d.cts +56 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +6 -6
- package/dist/useCollapsePanel.d.ts +6 -6
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +13 -13
- package/dist/useCropperCore.d.ts +13 -13
- package/dist/useDataResource.cjs +1 -0
- package/dist/useDataResource.js +1 -0
- package/dist/useDictionary.cjs +1 -0
- package/dist/useDictionary.js +1 -0
- package/dist/useDynamicFormState.d.cts +959 -582
- package/dist/useDynamicFormState.d.ts +951 -584
- package/dist/useEdgeInteraction.d.cts +3 -3
- package/dist/useEdgeInteraction.d.ts +3 -3
- package/dist/useFormArray.cjs +1 -0
- package/dist/useFormArray.d.cts +69 -0
- package/dist/useFormArray.d.ts +69 -0
- package/dist/useFormArray.js +1 -0
- package/dist/useFormConfig.cjs +1 -0
- package/dist/useFormConfig.d.cts +590 -0
- package/dist/useFormConfig.d.ts +590 -0
- package/dist/useFormConfig.js +1 -0
- package/dist/useFullscreen.d.cts +3 -3
- package/dist/useFullscreen.d.ts +3 -3
- package/dist/useGridWidth.cjs +1 -0
- package/dist/useGridWidth.js +1 -0
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +5 -5
- package/dist/useSplitResize.d.ts +5 -5
- package/dist/useTableGlobalConfig.cjs +1 -0
- package/dist/useTableGlobalConfig.js +1 -0
- package/dist/useTableQuery.cjs +1 -3
- package/dist/useTableQuery.js +1 -3
- package/dist/useWorkflowValidation.d.cts +6 -6
- package/dist/useWorkflowValidation.d.ts +6 -6
- package/dist/validation.cjs +1 -0
- package/dist/validation.d.cts +18 -0
- package/dist/validation.d.ts +18 -0
- package/dist/validation.js +1 -0
- package/dist/verification.d.cts +4 -4
- package/dist/verification.d.ts +4 -4
- package/dist/workflows.cjs +1 -0
- package/dist/workflows.d.cts +2 -0
- package/dist/workflows.d.ts +2 -0
- package/dist/workflows.js +1 -0
- package/docs/components.en.md +13 -1
- package/docs/components.md +13 -1
- package/docs/guides/batch-results.md +47 -0
- package/docs/guides/data-picker.md +65 -0
- package/docs/guides/data-workflows.md +123 -0
- package/docs/guides/form-density.en.md +56 -3
- package/docs/guides/form-density.md +56 -3
- package/docs/guides/search-workflows.md +164 -0
- package/docs/guides/usage.en.md +1 -1
- package/package.json +21 -1
- package/dist/C_FormSearch2.cjs +0 -1
- package/dist/C_FormSearch2.js +0 -1
- package/dist/useTableQuery.d.cts +0 -1957
- package/dist/useTableQuery.d.ts +0 -1957
package/dist/index23.vue.d.cts
CHANGED
|
@@ -1,19 +1,83 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
//#region src/components/C_Markdown/index.vue.d.ts
|
|
4
|
+
type ToolbarName = string | number;
|
|
5
|
+
type InsertImageFunction = (config: {
|
|
6
|
+
url: string;
|
|
7
|
+
desc?: string;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
height?: string | number;
|
|
10
|
+
}) => void;
|
|
11
|
+
interface Props {
|
|
12
|
+
modelValue?: string;
|
|
13
|
+
/** SSR 或同页多实例时建议显式传入稳定 ID */
|
|
14
|
+
editorId?: string;
|
|
15
|
+
height?: string | number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
mode?: 'edit' | 'editable' | 'preview';
|
|
19
|
+
toolbar?: object | ToolbarName[];
|
|
20
|
+
uploadImageConfig?: {
|
|
21
|
+
accept?: string;
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
tocNavPosition?: 'left' | 'right';
|
|
26
|
+
defaultFullscreen?: boolean;
|
|
27
|
+
autofocus?: boolean;
|
|
28
|
+
includeLevel?: number[];
|
|
29
|
+
leftToolbar?: string;
|
|
30
|
+
rightToolbar?: string;
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
showWordCount?: boolean;
|
|
33
|
+
autoSave?: boolean;
|
|
34
|
+
autoSaveInterval?: number;
|
|
35
|
+
/** 是否为暗色主题(外部传入) */
|
|
36
|
+
isDark?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
39
|
+
focus: () => void;
|
|
40
|
+
getHtml: () => string;
|
|
41
|
+
insertText: (text: string) => void;
|
|
42
|
+
wordCount: vue.ComputedRef<number>;
|
|
43
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
44
|
+
change: (text: string, html: string) => any;
|
|
45
|
+
"update:modelValue": (value: string) => any;
|
|
46
|
+
save: (text: string, html: string) => any;
|
|
47
|
+
"upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
|
|
48
|
+
"fullscreen-change": (isFullscreen: boolean) => any;
|
|
49
|
+
"copy-code-success": (text: string) => any;
|
|
50
|
+
"word-count-change": (count: number) => any;
|
|
51
|
+
"auto-save": (text: string) => any;
|
|
52
|
+
"max-length-exceeded": (currentLength: number, maxLength: number) => any;
|
|
53
|
+
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
54
|
+
onChange?: ((text: string, html: string) => any) | undefined;
|
|
55
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
56
|
+
onSave?: ((text: string, html: string) => any) | undefined;
|
|
57
|
+
"onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
|
|
58
|
+
"onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
|
|
59
|
+
"onCopy-code-success"?: ((text: string) => any) | undefined;
|
|
60
|
+
"onWord-count-change"?: ((count: number) => any) | undefined;
|
|
61
|
+
"onAuto-save"?: ((text: string) => any) | undefined;
|
|
62
|
+
"onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
|
|
14
63
|
}>, {
|
|
15
|
-
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
height: string | number;
|
|
66
|
+
placeholder: string;
|
|
67
|
+
modelValue: string;
|
|
68
|
+
mode: "edit" | "editable" | "preview";
|
|
69
|
+
tocNavPosition: "left" | "right";
|
|
70
|
+
defaultFullscreen: boolean;
|
|
71
|
+
autofocus: boolean;
|
|
72
|
+
includeLevel: number[];
|
|
73
|
+
leftToolbar: string;
|
|
74
|
+
rightToolbar: string;
|
|
75
|
+
maxLength: number;
|
|
76
|
+
showWordCount: boolean;
|
|
77
|
+
autoSave: boolean;
|
|
78
|
+
autoSaveInterval: number;
|
|
79
|
+
isDark: boolean;
|
|
16
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
17
81
|
declare const _default: typeof __VLS_export;
|
|
18
82
|
//#endregion
|
|
19
|
-
export {
|
|
83
|
+
export { _default as t };
|
package/dist/index23.vue.d.ts
CHANGED
|
@@ -1,19 +1,77 @@
|
|
|
1
|
+
import { a as RouteItem, t as MenuAdapterConfig } from "./public.js";
|
|
1
2
|
import * as vue from "vue";
|
|
3
|
+
import { Ref } from "vue";
|
|
4
|
+
import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
|
|
2
5
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
type
|
|
6
|
+
//#region src/components/C_Menu/types.d.ts
|
|
7
|
+
type MenuKey = string | number;
|
|
8
|
+
type MenuValue = MenuKey | null;
|
|
9
|
+
type OwnMenuKey<Option> = Option extends {
|
|
10
|
+
key?: infer Key;
|
|
11
|
+
} ? Extract<Key, MenuKey> : never;
|
|
12
|
+
/** 已遇到的递归业务类型或原生完整键类型均停止展开,内联配置包含子节点。 */
|
|
13
|
+
type MenuOptionKeys<Option, Seen = never> = Option extends Seen ? OwnMenuKey<Option> : MenuKey extends OwnMenuKey<Option> ? MenuKey : OwnMenuKey<Option> | (Option extends {
|
|
14
|
+
children?: infer Children;
|
|
15
|
+
} ? Children extends readonly unknown[] ? MenuOptionKeys<Children[number], Seen | Option> : never : never);
|
|
16
|
+
type WidenMenuKey<Key> = Key extends string ? string : Key extends number ? number : never;
|
|
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> {
|
|
19
|
+
options?: O;
|
|
20
|
+
routes?: RouteItem[];
|
|
21
|
+
adapterConfig?: MenuAdapterConfig;
|
|
22
|
+
labelFormatter?: (label: string) => string;
|
|
23
|
+
/** @deprecated Use modelValue. */
|
|
24
|
+
value?: MenuValue;
|
|
25
|
+
modelValue?: MenuValue;
|
|
26
|
+
expandedKeys?: MenuKey[];
|
|
27
|
+
defaultExpandedKeys?: MenuKey[];
|
|
28
|
+
mode?: 'vertical' | 'horizontal';
|
|
29
|
+
collapsed?: boolean;
|
|
30
|
+
collapsedWidth?: number;
|
|
31
|
+
collapsedIconSize?: number;
|
|
32
|
+
inverted?: boolean;
|
|
33
|
+
themeOverrides?: Record<string, any>;
|
|
34
|
+
indent?: number;
|
|
35
|
+
rootIndent?: number;
|
|
36
|
+
dropdownProps?: DropdownProps;
|
|
37
|
+
}
|
|
38
|
+
interface MenuEmits<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
|
|
39
|
+
select: [key: MenuSelectionKey<O>];
|
|
40
|
+
/** 鼠标或键盘聚焦叶子项时触发,可用于无副作用的路由预取。 */
|
|
41
|
+
intent: [key: MenuSelectionKey<O>];
|
|
42
|
+
'update:modelValue': [key: MenuSelectionKey<O> | null];
|
|
43
|
+
/** @deprecated Use update:modelValue. */
|
|
44
|
+
'update:value': [key: MenuSelectionKey<O> | null];
|
|
45
|
+
'update:expandedKeys': [keys: MenuSelectionKey<O>[]];
|
|
46
|
+
}
|
|
47
|
+
interface MenuExpose {
|
|
48
|
+
showOption: (key: MenuKey) => void;
|
|
49
|
+
/** Vue 公开实例会解包顶层 Ref。 */
|
|
50
|
+
menuRef: MenuInst | null;
|
|
51
|
+
}
|
|
5
52
|
//#endregion
|
|
6
|
-
//#region src/components/
|
|
7
|
-
|
|
8
|
-
|
|
53
|
+
//#region src/components/C_Menu/index.vue.d.ts
|
|
54
|
+
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> & {
|
|
56
|
+
onSelect?: ((key: MenuSelectionKey<Options>) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
|
|
58
|
+
onIntent?: ((key: MenuSelectionKey<Options>) => any) | undefined;
|
|
59
|
+
"onUpdate:value"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
|
|
60
|
+
"onUpdate:expandedKeys"?: ((keys: MenuSelectionKey<Options>[]) => any) | undefined;
|
|
61
|
+
}> & (typeof globalThis extends {
|
|
62
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
63
|
+
} ? P : {});
|
|
64
|
+
expose: (exposed: vue.ShallowUnwrapRef<{
|
|
65
|
+
showOption: (key: MenuKey) => void | undefined;
|
|
66
|
+
menuRef: Ref<MenuInst | null, MenuInst | null>;
|
|
67
|
+
}>) => void;
|
|
68
|
+
attrs: any;
|
|
69
|
+
slots: {};
|
|
70
|
+
emit: ((evt: "select", key: MenuSelectionKey<Options>) => void) & ((evt: "update:modelValue", key: MenuSelectionKey<Options> | null) => void) & ((evt: "intent", key: MenuSelectionKey<Options>) => void) & ((evt: "update:value", key: MenuSelectionKey<Options> | null) => void) & ((evt: "update:expandedKeys", keys: MenuSelectionKey<Options>[]) => void);
|
|
71
|
+
}>) => vue.VNode & {
|
|
72
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
9
73
|
};
|
|
10
|
-
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (mode: ThemeMode) => any;
|
|
12
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((mode: ThemeMode) => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
modelValue: ThemeMode;
|
|
16
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
17
74
|
declare const _default: typeof __VLS_export;
|
|
75
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
18
76
|
//#endregion
|
|
19
|
-
export {
|
|
77
|
+
export { MenuProps as a, MenuKey as i, MenuEmits as n, MenuValue as o, MenuExpose as r, _default as t };
|
package/dist/index24.vue.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TagItem } from "./
|
|
1
|
+
import { i as TagItem } from "./types2.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { Ref } from "vue";
|
|
4
4
|
|
|
@@ -85,10 +85,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
|
|
|
85
85
|
onClose?: ((fallbackPath: string) => any) | undefined;
|
|
86
86
|
onCloseAll?: (() => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
|
+
persistKey: string;
|
|
88
89
|
homePath: string;
|
|
89
90
|
homeTitle: string;
|
|
90
91
|
homeIcon: string;
|
|
91
|
-
persistKey: string;
|
|
92
92
|
contextMenuLabels: LegacyContextMenuLabels;
|
|
93
93
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
94
94
|
declare const _default: typeof __VLS_export;
|
package/dist/index24.vue.d.ts
CHANGED
|
@@ -85,10 +85,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
|
|
|
85
85
|
onClose?: ((fallbackPath: string) => any) | undefined;
|
|
86
86
|
onCloseAll?: (() => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
|
+
persistKey: string;
|
|
88
89
|
homePath: string;
|
|
89
90
|
homeTitle: string;
|
|
90
91
|
homeIcon: string;
|
|
91
|
-
persistKey: string;
|
|
92
92
|
contextMenuLabels: LegacyContextMenuLabels;
|
|
93
93
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
94
94
|
declare const _default: typeof __VLS_export;
|
package/dist/index25.vue.d.cts
CHANGED
|
@@ -1,103 +1,129 @@
|
|
|
1
|
+
import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.cjs";
|
|
1
2
|
import * as vue from "vue";
|
|
2
3
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/** 节点状态 */
|
|
22
|
-
status?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
23
|
-
/** 是否可展开/折叠详情 */
|
|
24
|
-
collapsible?: boolean;
|
|
25
|
-
/** 初始是否展开 */
|
|
26
|
-
defaultExpanded?: boolean;
|
|
27
|
-
/** 附加标签组 */
|
|
28
|
-
tags?: Array<{
|
|
29
|
-
text: string;
|
|
30
|
-
type?: string;
|
|
31
|
-
}>;
|
|
32
|
-
/** 自定义额外数据 */
|
|
33
|
-
extra?: Record<string, unknown>;
|
|
4
|
+
//#region src/components/C_Login/types.d.ts
|
|
5
|
+
interface LoginFeatures {
|
|
6
|
+
/** 是否显示密码登录(默认 true) */
|
|
7
|
+
passwordLogin?: boolean;
|
|
8
|
+
/** 是否显示验证码登录(默认 true) */
|
|
9
|
+
captchaLogin?: boolean;
|
|
10
|
+
/** 是否显示扫码登录(默认 true) */
|
|
11
|
+
qrcodeLogin?: boolean;
|
|
12
|
+
/** 是否显示其他账号登录(默认 true) */
|
|
13
|
+
socialLogin?: boolean;
|
|
14
|
+
/** 是否显示注册账号(默认 true) */
|
|
15
|
+
register?: boolean;
|
|
16
|
+
/** 是否启用人机验证拼图(默认 true) */
|
|
17
|
+
captchaVerify?: boolean;
|
|
18
|
+
/** 是否显示记住我(默认 true) */
|
|
19
|
+
rememberMe?: boolean;
|
|
20
|
+
/** 是否显示忘记密码(默认 true) */
|
|
21
|
+
forgotPassword?: boolean;
|
|
34
22
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
mode?: 'vertical' | 'horizontal';
|
|
41
|
-
/** 垂直模式下时间标签位置 */
|
|
42
|
-
labelPlacement?: 'left' | 'right' | 'alternate';
|
|
43
|
-
/** 是否显示尾部加载更多指示 */
|
|
44
|
-
pending?: boolean;
|
|
45
|
-
/** 加载更多文案 */
|
|
46
|
-
pendingText?: string;
|
|
47
|
-
/** 是否反转排列(最新在前) */
|
|
48
|
-
reverse?: boolean;
|
|
49
|
-
/** 节点大小 */
|
|
50
|
-
size?: 'small' | 'medium' | 'large';
|
|
51
|
-
/** 连接线样式 */
|
|
52
|
-
lineType?: 'solid' | 'dashed' | 'dotted';
|
|
53
|
-
/** 是否显示时间标签 */
|
|
54
|
-
showTime?: boolean;
|
|
23
|
+
interface SocialProvider {
|
|
24
|
+
key: string;
|
|
25
|
+
label: string;
|
|
26
|
+
/** mdi 图标名称 */
|
|
27
|
+
icon: string;
|
|
55
28
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
29
|
+
interface PasswordFormData {
|
|
30
|
+
username: string;
|
|
31
|
+
password: string;
|
|
32
|
+
captchaToken?: string;
|
|
33
|
+
captchaTimestamp?: number;
|
|
34
|
+
captchaType?: CaptchaProof['type'];
|
|
35
|
+
captchaVerifiedBy?: CaptchaSuccessPayload['verifiedBy'];
|
|
36
|
+
}
|
|
37
|
+
interface CaptchaFormData {
|
|
38
|
+
account: string;
|
|
39
|
+
code: string;
|
|
40
|
+
}
|
|
41
|
+
interface RegisterFormData {
|
|
42
|
+
phone: string;
|
|
43
|
+
code: string;
|
|
44
|
+
password: string;
|
|
45
|
+
confirmPassword: string;
|
|
46
|
+
}
|
|
47
|
+
interface LoginProps {
|
|
48
|
+
/** 标题文字 */
|
|
49
|
+
title?: string;
|
|
50
|
+
/** 副标题 */
|
|
51
|
+
subtitle?: string;
|
|
52
|
+
/** Logo icon 名称(mdi:xxx),不传则不显示图标 */
|
|
53
|
+
logoIcon?: string;
|
|
54
|
+
/** 功能开关配置 */
|
|
55
|
+
features?: LoginFeatures;
|
|
56
|
+
/** 社交登录提供商列表 */
|
|
57
|
+
socialProviders?: SocialProvider[];
|
|
58
|
+
/** 扫码登录二维码 URL */
|
|
59
|
+
qrcodeUrl?: string;
|
|
60
|
+
/** localStorage key(记住我) */
|
|
61
|
+
storageKey?: string;
|
|
62
|
+
/** 外部传入的 loading 状态 */
|
|
63
|
+
loading?: boolean;
|
|
64
|
+
/** 宿主扩展字段未就绪时阻止按钮和回车提交 */
|
|
65
|
+
submitDisabled?: boolean;
|
|
66
|
+
/** 表单默认用户名(Demo / 预填场景) */
|
|
67
|
+
defaultUsername?: string;
|
|
68
|
+
/** 表单默认密码(Demo / 预填场景) */
|
|
69
|
+
defaultPassword?: string;
|
|
70
|
+
/** 人机验证的应用服务端校验适配器 */
|
|
71
|
+
captchaVerifier?: CaptchaVerifier;
|
|
72
|
+
/** 人机验证提供方;ALTCHA 模式必须同时配置挑战地址和服务端校验器 */
|
|
73
|
+
captchaProvider?: CaptchaProvider;
|
|
74
|
+
/** 签发一次性 ALTCHA 挑战的同源服务端地址 */
|
|
75
|
+
captchaChallengeUrl?: string;
|
|
76
|
+
/** 未配置服务端校验器时是否拒绝登录验证 */
|
|
77
|
+
requireCaptchaServerVerification?: boolean;
|
|
78
|
+
/** 服务端人机验证超时(毫秒) */
|
|
79
|
+
captchaVerificationTimeout?: number;
|
|
80
|
+
}
|
|
81
|
+
declare const DEFAULT_SOCIAL_PROVIDERS: SocialProvider[];
|
|
82
|
+
declare const DEFAULT_FEATURES: Required<LoginFeatures>;
|
|
69
83
|
//#endregion
|
|
70
|
-
//#region src/components/
|
|
71
|
-
declare var __VLS_1: {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}, __VLS_8: {
|
|
75
|
-
item: TimelineItem;
|
|
76
|
-
index: number;
|
|
84
|
+
//#region src/components/C_Login/index.vue.d.ts
|
|
85
|
+
declare var __VLS_1: {}, __VLS_54: {
|
|
86
|
+
username: string;
|
|
87
|
+
loading: boolean;
|
|
77
88
|
};
|
|
78
89
|
type __VLS_Slots = {} & {
|
|
79
|
-
|
|
90
|
+
logo?: (props: typeof __VLS_1) => any;
|
|
80
91
|
} & {
|
|
81
|
-
|
|
92
|
+
'password-fields'?: (props: typeof __VLS_54) => any;
|
|
82
93
|
};
|
|
83
|
-
declare const __VLS_base: vue.DefineComponent<
|
|
84
|
-
|
|
85
|
-
collapseAll: () => void;
|
|
94
|
+
declare const __VLS_base: vue.DefineComponent<LoginProps, {
|
|
95
|
+
resetCaptcha: () => void;
|
|
86
96
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
|
|
97
|
+
submit: (data: PasswordFormData) => any;
|
|
98
|
+
"captcha-submit": (data: CaptchaFormData) => any;
|
|
99
|
+
"send-code": (account: string) => any;
|
|
100
|
+
"social-login": (provider: string) => any;
|
|
101
|
+
"forgot-password": () => any;
|
|
102
|
+
"qrcode-refresh": () => any;
|
|
103
|
+
"register-submit": (data: RegisterFormData) => any;
|
|
104
|
+
"register-send-code": (phone: string) => any;
|
|
105
|
+
"captcha-visible-change": (visible: boolean) => any;
|
|
106
|
+
"username-change": (username: string) => any;
|
|
107
|
+
}, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
|
|
108
|
+
onSubmit?: ((data: PasswordFormData) => any) | undefined;
|
|
109
|
+
"onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
|
|
110
|
+
"onSend-code"?: ((account: string) => any) | undefined;
|
|
111
|
+
"onSocial-login"?: ((provider: string) => any) | undefined;
|
|
112
|
+
"onForgot-password"?: (() => any) | undefined;
|
|
113
|
+
"onQrcode-refresh"?: (() => any) | undefined;
|
|
114
|
+
"onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
|
|
115
|
+
"onRegister-send-code"?: ((phone: string) => any) | undefined;
|
|
116
|
+
"onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
|
|
117
|
+
"onUsername-change"?: ((username: string) => any) | undefined;
|
|
92
118
|
}>, {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
119
|
+
title: string;
|
|
120
|
+
storageKey: string;
|
|
121
|
+
loading: boolean;
|
|
122
|
+
defaultUsername: string;
|
|
123
|
+
defaultPassword: string;
|
|
124
|
+
captchaProvider: CaptchaProvider;
|
|
125
|
+
requireCaptchaServerVerification: boolean;
|
|
126
|
+
captchaVerificationTimeout: number;
|
|
101
127
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
102
128
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
103
129
|
declare const _default: typeof __VLS_export;
|
|
@@ -107,4 +133,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
107
133
|
};
|
|
108
134
|
};
|
|
109
135
|
//#endregion
|
|
110
|
-
export {
|
|
136
|
+
export { LoginFeatures as a, RegisterFormData as c, DEFAULT_SOCIAL_PROVIDERS as i, SocialProvider as l, CaptchaFormData as n, LoginProps as o, DEFAULT_FEATURES as r, PasswordFormData as s, _default as t };
|