@done-coding/admin-core 0.0.1-alpha.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 (116) hide show
  1. package/README.md +48 -0
  2. package/docs/TECH_SNAPSHOT.md +146 -0
  3. package/docs/specs/2026-05-09-055250-moderate-/345/210/227/350/241/250key/351/205/215/347/275/256/347/202/271/350/267/257/345/276/204/346/224/257/346/214/201/RETROSPECTIVE.md +63 -0
  4. package/docs/specs/2026-05-09-055250-moderate-/345/210/227/350/241/250key/351/205/215/347/275/256/347/202/271/350/267/257/345/276/204/346/224/257/346/214/201/design.md +575 -0
  5. package/docs/specs/2026-05-09-055250-moderate-/345/210/227/350/241/250key/351/205/215/347/275/256/347/202/271/350/267/257/345/276/204/346/224/257/346/214/201/landing-authorizations/2026-05-09-080900-/346/234/2371-/345/205/245/345/256/236/346/226/275/346/216/210/346/235/203.md +107 -0
  6. package/docs/specs/2026-05-09-055250-moderate-/345/210/227/350/241/250key/351/205/215/347/275/256/347/202/271/350/267/257/345/276/204/346/224/257/346/214/201/project-orchestration.md +58 -0
  7. package/docs/specs/2026-05-09-055250-moderate-/345/210/227/350/241/250key/351/205/215/347/275/256/347/202/271/350/267/257/345/276/204/346/224/257/346/214/201/requirements.md +238 -0
  8. package/docs/specs/2026-05-09-055250-moderate-/345/210/227/350/241/250key/351/205/215/347/275/256/347/202/271/350/267/257/345/276/204/346/224/257/346/214/201/tasks.md +290 -0
  9. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  10. package/es/components/display/WatchSize.vue.mjs +50 -0
  11. package/es/components/display/WatchSize.vue2.mjs +4 -0
  12. package/es/components/display/index.mjs +12 -0
  13. package/es/components/form/FormItem.vue.mjs +7 -0
  14. package/es/components/form/FormItem.vue2.mjs +145 -0
  15. package/es/components/form/FormMain.vue.mjs +142 -0
  16. package/es/components/form/FormMain.vue2.mjs +4 -0
  17. package/es/components/form/FormRadioGroup.vue.mjs +36 -0
  18. package/es/components/form/FormRadioGroup.vue2.mjs +4 -0
  19. package/es/components/form/FormSearch.vue.mjs +7 -0
  20. package/es/components/form/FormSearch.vue2.mjs +132 -0
  21. package/es/components/form/FormSelect.vue.mjs +65 -0
  22. package/es/components/form/FormSelect.vue2.mjs +4 -0
  23. package/es/components/form/FormTree.vue.mjs +34 -0
  24. package/es/components/form/FormTree.vue2.mjs +4 -0
  25. package/es/components/form/FormVerifyCode.vue.mjs +72 -0
  26. package/es/components/form/FormVerifyCode.vue2.mjs +4 -0
  27. package/es/components/form/FormVerifyImage.vue.mjs +7 -0
  28. package/es/components/form/FormVerifyImage.vue2.mjs +60 -0
  29. package/es/components/form/index.mjs +32 -0
  30. package/es/components/form/utils.mjs +147 -0
  31. package/es/components/list-page/ListPage.vue.mjs +7 -0
  32. package/es/components/list-page/ListPage.vue2.mjs +194 -0
  33. package/es/components/list-page/index.mjs +14 -0
  34. package/es/components/menu/MenuItemSub.vue.mjs +60 -0
  35. package/es/components/menu/MenuItemSub.vue2.mjs +4 -0
  36. package/es/components/menu/MenuTree.vue.mjs +87 -0
  37. package/es/components/menu/MenuTree.vue2.mjs +4 -0
  38. package/es/components/menu/index.mjs +12 -0
  39. package/es/components/misc/TriggerAutoImport.vue.mjs +10 -0
  40. package/es/components/misc/TriggerAutoImport.vue2.mjs +4 -0
  41. package/es/components/misc/index.mjs +12 -0
  42. package/es/components/modal/ConfirmModal.vue.mjs +8 -0
  43. package/es/components/modal/ConfirmModal.vue2.mjs +141 -0
  44. package/es/components/modal/DetailModal.vue.mjs +67 -0
  45. package/es/components/modal/DetailModal.vue2.mjs +4 -0
  46. package/es/components/modal/index.mjs +17 -0
  47. package/es/components/table/TableMain.vue.mjs +7 -0
  48. package/es/components/table/TableMain.vue2.mjs +204 -0
  49. package/es/components/table/index.mjs +14 -0
  50. package/es/config/list-model.mjs +13 -0
  51. package/es/config/route.mjs +4 -0
  52. package/es/helpers/form.mjs +32 -0
  53. package/es/helpers/route.mjs +60 -0
  54. package/es/helpers/state.mjs +46 -0
  55. package/es/helpers/storage.mjs +16 -0
  56. package/es/hooks/activated.mjs +42 -0
  57. package/es/hooks/feel-size.mjs +30 -0
  58. package/es/hooks/menus-dispatch.mjs +47 -0
  59. package/es/index.mjs +97 -0
  60. package/es/inject/key.mjs +6 -0
  61. package/es/style.css +1 -0
  62. package/es/utils/id.mjs +5 -0
  63. package/es/utils/router.mjs +18 -0
  64. package/es/utils/time.mjs +18 -0
  65. package/package.json +81 -0
  66. package/types/components/display/WatchSize.vue.d.ts +44 -0
  67. package/types/components/display/index.d.ts +5 -0
  68. package/types/components/form/FormItem.vue.d.ts +50 -0
  69. package/types/components/form/FormMain.vue.d.ts +51 -0
  70. package/types/components/form/FormRadioGroup.vue.d.ts +23 -0
  71. package/types/components/form/FormSearch.vue.d.ts +23 -0
  72. package/types/components/form/FormSelect.vue.d.ts +60 -0
  73. package/types/components/form/FormTree.vue.d.ts +42 -0
  74. package/types/components/form/FormVerifyCode.vue.d.ts +32 -0
  75. package/types/components/form/FormVerifyImage.vue.d.ts +22 -0
  76. package/types/components/form/index.d.ts +13 -0
  77. package/types/components/form/types.d.ts +223 -0
  78. package/types/components/form/utils.d.ts +49 -0
  79. package/types/components/list-page/ListPage.vue.d.ts +44 -0
  80. package/types/components/list-page/index.d.ts +6 -0
  81. package/types/components/list-page/types.d.ts +44 -0
  82. package/types/components/menu/MenuItemSub.vue.d.ts +19 -0
  83. package/types/components/menu/MenuTree.vue.d.ts +28 -0
  84. package/types/components/menu/index.d.ts +6 -0
  85. package/types/components/misc/TriggerAutoImport.vue.d.ts +11 -0
  86. package/types/components/misc/index.d.ts +5 -0
  87. package/types/components/modal/ConfirmModal.vue.d.ts +107 -0
  88. package/types/components/modal/DetailModal.vue.d.ts +23 -0
  89. package/types/components/modal/index.d.ts +7 -0
  90. package/types/components/modal/types.d.ts +33 -0
  91. package/types/components/table/TableMain.vue.d.ts +35 -0
  92. package/types/components/table/index.d.ts +6 -0
  93. package/types/components/table/types.d.ts +90 -0
  94. package/types/config/index.d.ts +2 -0
  95. package/types/config/list-model.d.ts +48 -0
  96. package/types/config/route.d.ts +2 -0
  97. package/types/helpers/form.d.ts +11 -0
  98. package/types/helpers/index.d.ts +4 -0
  99. package/types/helpers/route.d.ts +37 -0
  100. package/types/helpers/state.d.ts +26 -0
  101. package/types/helpers/storage.d.ts +10 -0
  102. package/types/hooks/activated.d.ts +8 -0
  103. package/types/hooks/feel-size.d.ts +10 -0
  104. package/types/hooks/index.d.ts +3 -0
  105. package/types/hooks/menus-dispatch.d.ts +33 -0
  106. package/types/index.d.ts +24 -0
  107. package/types/inject/index.d.ts +1 -0
  108. package/types/inject/key.d.ts +11 -0
  109. package/types/types/dot-path.d.ts +13 -0
  110. package/types/types/index.d.ts +3 -0
  111. package/types/types/route.d.ts +92 -0
  112. package/types/types/utility-types.d.ts +8 -0
  113. package/types/utils/id.d.ts +2 -0
  114. package/types/utils/index.d.ts +3 -0
  115. package/types/utils/router.d.ts +8 -0
  116. package/types/utils/time.d.ts +2 -0
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@done-coding/admin-core",
3
+ "version": "0.0.1-alpha.0",
4
+ "description": "后台管理核心",
5
+ "private": false,
6
+ "main": "lib/index.cjs",
7
+ "module": "es/index.mjs",
8
+ "types": "types/index.d.ts",
9
+ "type": "module",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./es/index.mjs",
13
+ "require": "./lib/index.cjs",
14
+ "types": "./types/index.d.ts"
15
+ },
16
+ "./style.css": "./es/style.css"
17
+ },
18
+ "files": [
19
+ "es",
20
+ "lib",
21
+ "types",
22
+ "docs"
23
+ ],
24
+ "scripts": {
25
+ "serve": "vite",
26
+ "predev": "dc-inject",
27
+ "dev": "vite build -w -m hotBuild",
28
+ "prebuild": "dc-inject",
29
+ "build": "vite build && vue-tsc && vite build",
30
+ "prepack": "pnpm build",
31
+ "test": "vitest",
32
+ "coverage": "vitest run --coverage"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://gitee.com/justsosu/done-coding-admin-monorepo",
37
+ "directory": "packages/core"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "registry": "https://registry.npmjs.org/"
42
+ },
43
+ "author": "JustSoSu",
44
+ "license": "MIT",
45
+ "sideEffects": [
46
+ "**/*.css",
47
+ "**/*.less"
48
+ ],
49
+ "devDependencies": {
50
+ "@done-coding/cli-inject": "^0.5.17",
51
+ "@types/lodash": "^4.17.24",
52
+ "@types/node": "^18.0.0",
53
+ "@vitejs/plugin-vue": "^5.0.4",
54
+ "@vitejs/plugin-vue-jsx": "^4.1.2",
55
+ "@vitest/coverage-istanbul": "^1.6.1",
56
+ "jsdom": "^29.1.0",
57
+ "less": "^4.2.0",
58
+ "typescript": "^5.2.2",
59
+ "unplugin-auto-import": "^0.17.8",
60
+ "unplugin-vue-components": "^0.26.0",
61
+ "vite": "^5.2.0",
62
+ "vite-plugin-dts": "^3.5.3",
63
+ "vitest": "^1.6.1",
64
+ "vue-tsc": "^2.0.6"
65
+ },
66
+ "peerDependencies": {
67
+ "@done-coding/request-axios": "^0.0.2",
68
+ "@element-plus/icons-vue": "^2.3.1",
69
+ "element-plus": "^2.7.0",
70
+ "lodash": "^4.17.21",
71
+ "pinia": "^2.1.7",
72
+ "pinia-plugin-persistedstate": "^4.7.1",
73
+ "vue": "^3.4.0",
74
+ "vue-router": "^4.3.0"
75
+ },
76
+ "engines": {
77
+ "node": ">=18.0.0",
78
+ "pnpm": ">=9.0.0"
79
+ },
80
+ "gitHead": "b8b80e9c323b5b8e73ac989d41c59e71a09e9779"
81
+ }
@@ -0,0 +1,44 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ mode?: "height" | "width" | "both";
6
+ }>, {
7
+ mode: string;
8
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ heightChange: (value: number) => void;
10
+ widthChange: (value: number) => void;
11
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
+ mode?: "height" | "width" | "both";
13
+ }>, {
14
+ mode: string;
15
+ }>>> & Readonly<{
16
+ onHeightChange?: ((value: number) => any) | undefined;
17
+ onWidthChange?: ((value: number) => any) | undefined;
18
+ }>, {
19
+ mode: "height" | "width" | "both";
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
22
+ export default _default;
23
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
+ type __VLS_TypePropsToRuntimeProps<T> = {
25
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
26
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
+ } : {
28
+ type: import('vue').PropType<T[K]>;
29
+ required: true;
30
+ };
31
+ };
32
+ type __VLS_WithDefaults<P, D> = {
33
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
34
+ default: D[K];
35
+ }> : P[K];
36
+ };
37
+ type __VLS_Prettify<T> = {
38
+ [K in keyof T]: T[K];
39
+ } & {};
40
+ type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as WatchSize } from './WatchSize.vue';
3
+
4
+ export { WatchSize };
5
+ export declare const displayInstall: Plugin;
@@ -0,0 +1,50 @@
1
+ import { FormMainItemProps, FormItemSubmitType } from './types';
2
+
3
+ declare function __VLS_template(): {
4
+ default?(_: {
5
+ onTriggerChangeLink: (n: any, attachInfo?: any) => void;
6
+ modelValue: any;
7
+ "onUpdate:modelValue": (val: any) => void;
8
+ onChange?: (() => void) | undefined;
9
+ onBlur?: (() => void) | undefined;
10
+ onKeyup?: ((e: KeyboardEvent) => void) | undefined;
11
+ placeholder?: string;
12
+ } | {
13
+ onTriggerChangeLink?: undefined;
14
+ modelValue: any;
15
+ "onUpdate:modelValue": (val: any) => void;
16
+ onChange?: (() => void) | undefined;
17
+ onBlur?: (() => void) | undefined;
18
+ onKeyup?: ((e: KeyboardEvent) => void) | undefined;
19
+ placeholder?: string;
20
+ }): any;
21
+ };
22
+ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FormMainItemProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ viewHideChange: (info: {
24
+ config: FormMainItemProps["config"];
25
+ status: boolean;
26
+ }) => void;
27
+ submit: (type: FormItemSubmitType) => void;
28
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FormMainItemProps>>> & Readonly<{
29
+ onSubmit?: ((type: FormItemSubmitType) => any) | undefined;
30
+ onViewHideChange?: ((info: {
31
+ config: FormMainItemProps["config"];
32
+ status: boolean;
33
+ }) => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
36
+ export default _default;
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToRuntimeProps<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: import('vue').PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,51 @@
1
+ import { FormMainInstance, FormMainProps, FormItemSubmitType } from './types';
2
+ import { ColProps } from 'element-plus';
3
+
4
+ declare const _default: <PO extends Record<string, any>, SO extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
6
+ readonly onSubmit?: ((type: FormItemSubmitType) => any) | undefined;
7
+ readonly onLoadingChange?: ((status: boolean) => any) | undefined;
8
+ readonly onVisibleChange?: ((status: boolean) => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & FormMainProps<PO, SO>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
10
+ expose(exposed: import('vue').ShallowUnwrapRef<FormMainInstance>): void;
11
+ attrs: any;
12
+ slots: ReturnType<() => Partial<Record<NonNullable<Extract<keyof PO, string>>, (_: {
13
+ onTriggerChangeLink: (n: any, attachInfo?: any) => void;
14
+ modelValue: any;
15
+ "onUpdate:modelValue": (val: any) => void;
16
+ onChange?: (() => void) | undefined;
17
+ onBlur?: (() => void) | undefined;
18
+ onKeyup?: ((e: KeyboardEvent) => void) | undefined;
19
+ placeholder?: string;
20
+ } | {
21
+ onTriggerChangeLink?: undefined;
22
+ modelValue: any;
23
+ "onUpdate:modelValue": (val: any) => void;
24
+ onChange?: (() => void) | undefined;
25
+ onBlur?: (() => void) | undefined;
26
+ onKeyup?: ((e: KeyboardEvent) => void) | undefined;
27
+ placeholder?: string;
28
+ }) => any>> & {
29
+ default?(_: {
30
+ mergeLayout: (layout?: Partial<ColProps>) => {
31
+ tag?: string;
32
+ span?: number;
33
+ offset?: number;
34
+ pull?: number;
35
+ push?: number;
36
+ xs?: import('element-plus').ColSize;
37
+ sm?: import('element-plus').ColSize;
38
+ md?: import('element-plus').ColSize;
39
+ lg?: import('element-plus').ColSize;
40
+ xl?: import('element-plus').ColSize;
41
+ };
42
+ }): any;
43
+ }>;
44
+ emit: {
45
+ (e: "loadingChange" | "visibleChange", status: boolean): void;
46
+ (e: "submit", type: FormItemSubmitType): void;
47
+ };
48
+ }>) => import('vue').VNode & {
49
+ __ctx?: Awaited<typeof __VLS_setup>;
50
+ };
51
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ options: {
3
+ label: string;
4
+ value: string | number;
5
+ disabled?: boolean;
6
+ }[];
7
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ options: {
9
+ label: string;
10
+ value: string | number;
11
+ disabled?: boolean;
12
+ }[];
13
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
@@ -0,0 +1,23 @@
1
+ import { FormSearchInstance, FormSearchProps, FormSearchSearchType } from './types';
2
+
3
+ declare const _default: <PO extends Record<string, any>, SO extends Record<string, any>, SQ extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
5
+ readonly onHeightChange?: ((height: number) => any) | undefined;
6
+ readonly onSearch?: ((data: import('./types').ExcludeNeverProperties<import('./types').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, type: FormSearchSearchType) => any) | undefined;
7
+ readonly onVisibleChange?: ((status: boolean) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & FormSearchProps<PO, SO, SQ>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
9
+ expose(exposed: import('vue').ShallowUnwrapRef<FormSearchInstance>): void;
10
+ attrs: any;
11
+ slots: ReturnType<() => Partial<Record<NonNullable<Extract<keyof PO, string>>, (_: any) => any>>>;
12
+ emit: {
13
+ (e: "search", data: import('./types').ExcludeNeverProperties<import('./types').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, type: FormSearchSearchType): void;
14
+ (e: "heightChange", height: number): void;
15
+ (e: "visibleChange", status: boolean): void;
16
+ };
17
+ }>) => import('vue').VNode & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
19
+ };
20
+ export default _default;
21
+ type __VLS_Prettify<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
@@ -0,0 +1,60 @@
1
+ interface OptionItem extends Record<string, any> {
2
+ label: string;
3
+ value: string | number;
4
+ disabled?: boolean;
5
+ [key: string]: any;
6
+ }
7
+ declare function __VLS_template(): {
8
+ option?(_: {
9
+ data: OptionItem;
10
+ }): any;
11
+ };
12
+ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
+ modelValue: OptionItem["value"];
14
+ options?: OptionItem[];
15
+ remoteMethod?: (query?: string) => Promise<OptionItem[]>;
16
+ itemCls?: string;
17
+ getOptions?: () => Promise<OptionItem[]>;
18
+ }>, {
19
+ options: () => never[];
20
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | number) => void;
22
+ detailChange: (value?: OptionItem | undefined) => void;
23
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
24
+ modelValue: OptionItem["value"];
25
+ options?: OptionItem[];
26
+ remoteMethod?: (query?: string) => Promise<OptionItem[]>;
27
+ itemCls?: string;
28
+ getOptions?: () => Promise<OptionItem[]>;
29
+ }>, {
30
+ options: () => never[];
31
+ }>>> & Readonly<{
32
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
33
+ onDetailChange?: ((value?: OptionItem | undefined) => any) | undefined;
34
+ }>, {
35
+ options: OptionItem[];
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
+ export default _default;
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToRuntimeProps<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: import('vue').PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
48
+ type __VLS_WithDefaults<P, D> = {
49
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
+ default: D[K];
51
+ }> : P[K];
52
+ };
53
+ type __VLS_Prettify<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,42 @@
1
+ import { FormTreeItem } from './types';
2
+
3
+ type ModelValue = (string | number)[];
4
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ modelValue: ModelValue;
6
+ tree?: FormTreeItem[];
7
+ showCheckbox?: boolean;
8
+ defaultExpandAll?: boolean;
9
+ }>, {
10
+ tree: () => never[];
11
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ "update:modelValue": (value: ModelValue) => void;
13
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
+ modelValue: ModelValue;
15
+ tree?: FormTreeItem[];
16
+ showCheckbox?: boolean;
17
+ defaultExpandAll?: boolean;
18
+ }>, {
19
+ tree: () => never[];
20
+ }>>> & Readonly<{
21
+ "onUpdate:modelValue"?: ((value: ModelValue) => any) | undefined;
22
+ }>, {
23
+ tree: FormTreeItem[];
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
@@ -0,0 +1,32 @@
1
+ declare const _default: <P extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
3
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
4
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & {
5
+ modelValue: string;
6
+ /** 发送频率 */
7
+ hz?: number;
8
+ api: (params?: P) => Promise<void>;
9
+ /** 请求参数 */
10
+ params?: P;
11
+ /** 重置标识
12
+ * 内部检测变化以重新计时
13
+ * @example const resetKey = ref(1);
14
+ * 需要重置时 resetKey.value++;
15
+ * */
16
+ resetKey?: number;
17
+ /** 是否禁用 */
18
+ disabled?: boolean;
19
+ /** 发送按钮文本 */
20
+ btnText?: string;
21
+ }, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
22
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
23
+ attrs: any;
24
+ slots: ReturnType<() => {}>;
25
+ emit: (e: "update:modelValue", value: string) => void;
26
+ }>) => import('vue').VNode & {
27
+ __ctx?: Awaited<typeof __VLS_setup>;
28
+ };
29
+ export default _default;
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
@@ -0,0 +1,22 @@
1
+ declare const _default: <P extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
3
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
4
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & {
5
+ modelValue: string;
6
+ imgWidth?: number;
7
+ api: (params?: P) => Promise<string>;
8
+ params?: P;
9
+ /** 是否自动销毁图片链接 */
10
+ autoRevokeUrl?: boolean;
11
+ }, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
12
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
13
+ attrs: any;
14
+ slots: ReturnType<() => {}>;
15
+ emit: (e: "update:modelValue", value: string) => void;
16
+ }>) => import('vue').VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_Prettify<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
@@ -0,0 +1,13 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as FormMain } from './FormMain.vue';
3
+ import { default as FormSelect } from './FormSelect.vue';
4
+ import { default as FormRadioGroup } from './FormRadioGroup.vue';
5
+ import { default as FormTree } from './FormTree.vue';
6
+ import { default as FormSearch } from './FormSearch.vue';
7
+ import { default as FormVerifyImage } from './FormVerifyImage.vue';
8
+ import { default as FormVerifyCode } from './FormVerifyCode.vue';
9
+
10
+ export * from './types';
11
+ export * from './utils';
12
+ export { FormMain, FormSelect, FormSearch, FormRadioGroup, FormTree, FormVerifyImage, FormVerifyCode, };
13
+ export declare const formInstall: Plugin;