@done-coding/admin-core 0.5.0 → 0.5.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 (123) hide show
  1. package/es/bridge/index.mjs +30 -42
  2. package/es/components/app-layout/AppHeader.vue.mjs +2 -2
  3. package/es/components/app-layout/AppHeader.vue2.mjs +16 -19
  4. package/es/components/data-view/DataListView.vue.mjs +2 -2
  5. package/es/components/data-view/DataListView.vue2.mjs +63 -52
  6. package/es/components/data-view/utils.mjs +36 -0
  7. package/es/components/display/TabsMain.vue.mjs +1 -1
  8. package/es/components/list-page/ListPage.vue.mjs +2 -2
  9. package/es/components/list-page/ListPage.vue2.mjs +44 -44
  10. package/es/components/misc/ActionConfirm.vue2.mjs +16 -16
  11. package/es/components/modal/ConfirmModal.vue.mjs +3 -3
  12. package/es/components/modal/DetailModal.vue.mjs +10 -10
  13. package/es/components/table/TableMain.vue.mjs +3 -3
  14. package/es/components/table/TableMain.vue2.mjs +167 -177
  15. package/es/components/table/TableToolbar.vue.mjs +3 -3
  16. package/es/components/table/TableToolbar.vue2.mjs +8 -4
  17. package/es/index.mjs +150 -180
  18. package/es/style.css +1 -1
  19. package/package.json +6 -5
  20. package/types/bridge/index.d.ts +3 -6
  21. package/types/bridge/route.d.ts +0 -1
  22. package/types/components/app-layout/AppBody.vue.d.ts +14 -34
  23. package/types/components/app-layout/AppBreadcrumb.vue.d.ts +6 -19
  24. package/types/components/app-layout/AppFooter.vue.d.ts +1 -1
  25. package/types/components/app-layout/AppHeader.vue.d.ts +15 -39
  26. package/types/components/app-layout/AppLayout.vue.d.ts +17 -50
  27. package/types/components/app-layout/AppPage.vue.d.ts +14 -39
  28. package/types/components/app-layout/AppSidebar.vue.d.ts +15 -37
  29. package/types/components/app-layout/index.d.ts +1 -19
  30. package/types/components/app-layout/types.d.ts +0 -1
  31. package/types/components/data-view/DataListView.vue.d.ts +9 -9
  32. package/types/components/data-view/DataListViewItem.vue.d.ts +19 -17
  33. package/types/components/data-view/index.d.ts +0 -1
  34. package/types/components/data-view/types.d.ts +9 -18
  35. package/types/components/data-view/utils.d.ts +5 -0
  36. package/types/components/display/ActionBtnGroup.vue.d.ts +8 -6
  37. package/types/components/display/HeightProvider.vue.d.ts +15 -31
  38. package/types/components/display/TabsHeader.vue.d.ts +27 -34
  39. package/types/components/display/TabsMain.vue.d.ts +14 -75
  40. package/types/components/display/TabsNaturalFlow.vue.d.ts +11 -5
  41. package/types/components/display/TabsRefineFlow.vue.d.ts +13 -31
  42. package/types/components/display/WatchSize.vue.d.ts +20 -32
  43. package/types/components/display/index.d.ts +0 -3
  44. package/types/components/display/types.d.ts +1 -2
  45. package/types/components/form/FormItem.vue.d.ts +208 -33
  46. package/types/components/form/FormMain.vue.d.ts +6 -7
  47. package/types/components/form/FormRadioGroup.vue.d.ts +14 -31
  48. package/types/components/form/FormSearch.vue.d.ts +5 -6
  49. package/types/components/form/FormSelect.vue.d.ts +19 -40
  50. package/types/components/form/FormTree.vue.d.ts +2037 -32
  51. package/types/components/form/FormVerifyCode.vue.d.ts +6 -6
  52. package/types/components/form/FormVerifyImage.vue.d.ts +6 -6
  53. package/types/components/form/form-search-utils.d.ts +0 -1
  54. package/types/components/form/index.d.ts +0 -3
  55. package/types/components/form/types.d.ts +0 -1
  56. package/types/components/form/utils.d.ts +0 -1
  57. package/types/components/list-page/ListPage.vue.d.ts +32 -33
  58. package/types/components/list-page/index.d.ts +0 -3
  59. package/types/components/list-page/types.d.ts +0 -1
  60. package/types/components/menu/MenuItemSub.vue.d.ts +3 -15
  61. package/types/components/menu/MenuTree.vue.d.ts +117 -19
  62. package/types/components/menu/index.d.ts +0 -3
  63. package/types/components/misc/ActionBtn.vue.d.ts +10 -11
  64. package/types/components/misc/ActionConfirm.vue.d.ts +21 -60
  65. package/types/components/misc/AutoRefresh.vue.d.ts +18 -24
  66. package/types/components/misc/TriggerAutoImport.vue.d.ts +8 -2
  67. package/types/components/misc/index.d.ts +4 -14
  68. package/types/components/misc/types.d.ts +0 -1
  69. package/types/components/modal/DetailModal.vue.d.ts +5 -6
  70. package/types/components/modal/ModalPorter.vue.d.ts +13 -18
  71. package/types/components/modal/ModalShelf.vue.d.ts +13 -18
  72. package/types/components/modal/index.d.ts +0 -4
  73. package/types/components/modal/modal-shelf-core.d.ts +0 -1
  74. package/types/components/modal/modal-shelf-hierarchy.d.ts +0 -1
  75. package/types/components/modal/modal-shelf-types.d.ts +0 -1
  76. package/types/components/modal/types.d.ts +0 -1
  77. package/types/components/panel/PanelEditSwitch.vue.d.ts +17 -20
  78. package/types/components/panel/PanelItem.vue.d.ts +7 -16
  79. package/types/components/panel/PanelMain.vue.d.ts +5 -6
  80. package/types/components/panel/index.d.ts +0 -4
  81. package/types/components/panel/types.d.ts +0 -1
  82. package/types/components/table/TableMain.vue.d.ts +12 -12
  83. package/types/components/table/TableToolbar.vue.d.ts +17 -108
  84. package/types/components/table/ToolbarButtons.vue.d.ts +15 -17
  85. package/types/components/table/index.d.ts +0 -3
  86. package/types/components/table/types.d.ts +59 -19
  87. package/types/config/list-model.d.ts +0 -1
  88. package/types/helpers/form.d.ts +0 -1
  89. package/types/helpers/index.d.ts +0 -10
  90. package/types/helpers/list-helper.d.ts +0 -1
  91. package/types/hooks/menus-dispatch.d.ts +0 -1
  92. package/types/hooks/use-channel-viewport-height.d.ts +0 -1
  93. package/types/index.d.ts +0 -13
  94. package/types/inject/key.d.ts +0 -1
  95. package/types/router/guard/index.d.ts +0 -1
  96. package/types/router/guard/login.d.ts +0 -1
  97. package/types/router/guard/permission.d.ts +0 -1
  98. package/types/router/guard/types.d.ts +0 -1
  99. package/types/store/app.d.ts +1 -2
  100. package/types/store/router-permission.d.ts +0 -1
  101. package/types/store/user.d.ts +0 -1
  102. package/types/types/route.d.ts +0 -1
  103. package/types/utils/export.d.ts +11 -10
  104. package/types/utils/router.d.ts +0 -1
  105. package/es/components/app-layout/index.mjs +0 -32
  106. package/es/components/display/index.mjs +0 -18
  107. package/es/components/form/index.mjs +0 -32
  108. package/es/components/list-page/index.mjs +0 -14
  109. package/es/components/menu/index.mjs +0 -12
  110. package/es/components/misc/ActionButton.vue.mjs +0 -52
  111. package/es/components/misc/ActionButton.vue2.mjs +0 -4
  112. package/es/components/misc/ActionButtonDanger.vue.mjs +0 -32
  113. package/es/components/misc/ActionButtonDanger.vue2.mjs +0 -4
  114. package/es/components/misc/ActionButtonWarn.vue.mjs +0 -32
  115. package/es/components/misc/ActionButtonWarn.vue2.mjs +0 -4
  116. package/es/components/misc/index.mjs +0 -32
  117. package/es/components/modal/index.mjs +0 -23
  118. package/es/components/panel/index.mjs +0 -20
  119. package/es/components/table/index.mjs +0 -14
  120. package/types/components/misc/ActionButton.vue.d.ts +0 -24
  121. package/types/components/misc/ActionButtonDanger.vue.d.ts +0 -19
  122. package/types/components/misc/ActionButtonWarn.vue.d.ts +0 -19
  123. package/types/components/modal/ConfirmModal.vue.d.ts +0 -124
@@ -1,10 +1,5 @@
1
1
  import { RouteMetaResolveRaw } from '../../types';
2
-
3
- declare function __VLS_template(): {
4
- left?(_: {}): any;
5
- right?(_: {}): any;
6
- };
7
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ type __VLS_Props = {
8
3
  /** 整体不用管 AppLayout控制 用在定位出去的子元素的显隐 */
9
4
  show: boolean;
10
5
  menus: RouteMetaResolveRaw[];
@@ -13,41 +8,22 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
13
8
  /** 聚焦的模块菜单 */
14
9
  activeModuleMenu?: RouteMetaResolveRaw;
15
10
  menuFlatList: RouteMetaResolveRaw[];
16
- }>, {
17
- menus: () => never[];
18
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
- /** 整体不用管 AppLayout控制 用在定位出去的子元素的显隐 */
20
- show: boolean;
21
- menus: RouteMetaResolveRaw[];
22
- /** 聚焦的路由菜单 */
23
- activeMenu?: RouteMetaResolveRaw;
24
- /** 聚焦的模块菜单 */
25
- activeModuleMenu?: RouteMetaResolveRaw;
26
- menuFlatList: RouteMetaResolveRaw[];
27
- }>, {
28
- menus: () => never[];
29
- }>>> & Readonly<{}>, {
30
- menus: RouteMetaResolveRaw[];
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
33
- export default _default;
34
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
- type __VLS_TypePropsToRuntimeProps<T> = {
36
- [K in keyof T]-?: {} extends Pick<T, K> ? {
37
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
- } : {
39
- type: import('vue').PropType<T[K]>;
40
- required: true;
41
- };
42
11
  };
43
- type __VLS_WithDefaults<P, D> = {
44
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
- default: D[K];
46
- }> : P[K];
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ left?(_: {}): any;
16
+ right?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: any;
47
20
  };
48
- type __VLS_Prettify<T> = {
49
- [K in keyof T]: T[K];
50
- } & {};
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ menus: RouteMetaResolveRaw[];
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
51
27
  type __VLS_WithTemplateSlots<T, S> = T & {
52
28
  new (): {
53
29
  $slots: S;
@@ -1,33 +1,6 @@
1
1
  import { AppLayoutAppStoreSlice, AppLayoutUserStoreSlice, AppLayoutBridgeSlice } from './types';
2
2
  import { WatermarkProps } from 'element-plus';
3
-
4
- declare function __VLS_template(): {
5
- "sidebar-top"?(_: {}): any;
6
- "sidebar-bottom"?(_: {}): any;
7
- "header-left"?(_: {}): any;
8
- "header-right"?(_: {}): any;
9
- };
10
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- /**
12
- * admin bridge 实例(#7.6 期新增必填)。
13
- * AppLayout 经 `props.adminBridge` 注入后 provide 给子 layout 组件
14
- * (AppBody / AppSidebar 自取 12 readonly 配置 + getRoutes / generateRouteMetaRawTree)。
15
- * 业务侧 App.vue 模板:`<AppLayout :admin-bridge="appAdminBridge" ...>`。
16
- */
17
- adminBridge: AppLayoutBridgeSlice;
18
- appStore: AppLayoutAppStoreSlice;
19
- userStore: AppLayoutUserStoreSlice;
20
- /** 水印内容(空数组/空串/undefined 不展示);layout 不耦合 UserInfo shape,由业务侧派生 */
21
- watermarkContent?: WatermarkProps["content"];
22
- /**
23
- * sidebar 层级是否高于 header(#7.5 期新增,默认 false)。
24
- * true 时 AppSidebar z-index 调高于 AppHeader——适合 sidebar 顶部悬挂内容
25
- * 需要覆盖 header 区域的场景(如悬浮 logo/搜索框)。
26
- */
27
- sidebarAboveHeader?: boolean;
28
- }>, {
29
- sidebarAboveHeader: boolean;
30
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ type __VLS_Props = {
31
4
  /**
32
5
  * admin bridge 实例(#7.6 期新增必填)。
33
6
  * AppLayout 经 `props.adminBridge` 注入后 provide 给子 layout 组件
@@ -45,30 +18,24 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
45
18
  * 需要覆盖 header 区域的场景(如悬浮 logo/搜索框)。
46
19
  */
47
20
  sidebarAboveHeader?: boolean;
48
- }>, {
49
- sidebarAboveHeader: boolean;
50
- }>>> & Readonly<{}>, {
51
- sidebarAboveHeader: boolean;
52
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
54
- export default _default;
55
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
- type __VLS_TypePropsToRuntimeProps<T> = {
57
- [K in keyof T]-?: {} extends Pick<T, K> ? {
58
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
- } : {
60
- type: import('vue').PropType<T[K]>;
61
- required: true;
62
- };
63
21
  };
64
- type __VLS_WithDefaults<P, D> = {
65
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
66
- default: D[K];
67
- }> : P[K];
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: {
25
+ 'sidebar-top'?(_: {}): any;
26
+ 'sidebar-bottom'?(_: {}): any;
27
+ 'header-left'?(_: {}): any;
28
+ 'header-right'?(_: {}): any;
29
+ };
30
+ refs: {};
31
+ rootEl: HTMLDivElement;
68
32
  };
69
- type __VLS_Prettify<T> = {
70
- [K in keyof T]: T[K];
71
- } & {};
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
35
+ sidebarAboveHeader: boolean;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
72
39
  type __VLS_WithTemplateSlots<T, S> = T & {
73
40
  new (): {
74
41
  $slots: S;
@@ -1,52 +1,27 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- /** 充满视口 */
6
- fullViewport?: boolean;
7
- fullMode?: "min-height" | "height";
8
- /** 下个viewport高度 */
9
- nextViewportMaxHeight?: string;
10
- background?: string;
11
- }>, {
12
- fullViewport: boolean;
13
- fullMode: string;
14
- nextViewportMaxHeight: string;
15
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ type __VLS_Props = {
16
2
  /** 充满视口 */
17
3
  fullViewport?: boolean;
18
4
  fullMode?: "min-height" | "height";
19
5
  /** 下个viewport高度 */
20
6
  nextViewportMaxHeight?: string;
21
7
  background?: string;
22
- }>, {
23
- fullViewport: boolean;
24
- fullMode: string;
25
- nextViewportMaxHeight: string;
26
- }>>> & Readonly<{}>, {
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ default?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: HTMLDivElement;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
27
19
  fullViewport: boolean;
28
20
  fullMode: "min-height" | "height";
29
21
  nextViewportMaxHeight: string;
30
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
24
  export default _default;
33
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
- type __VLS_TypePropsToRuntimeProps<T> = {
35
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
- } : {
38
- type: import('vue').PropType<T[K]>;
39
- required: true;
40
- };
41
- };
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
- type __VLS_Prettify<T> = {
48
- [K in keyof T]: T[K];
49
- } & {};
50
25
  type __VLS_WithTemplateSlots<T, S> = T & {
51
26
  new (): {
52
27
  $slots: S;
@@ -1,49 +1,27 @@
1
1
  import { RouteMetaResolveRaw } from '../../types';
2
-
3
- declare function __VLS_template(): {
4
- top?(_: {}): any;
5
- bottom?(_: {}): any;
6
- };
7
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- /** 整体不用管 AppLayout 控制 用在定位出去的子元素的显隐 */
9
- show: boolean;
10
- /** 层级是否高于 header(#7.5 期;true 时 z-index 提升盖住 header) */
11
- aboveHeader?: boolean;
12
- menus: RouteMetaResolveRaw[];
13
- menuFlatList: RouteMetaResolveRaw[];
14
- }>, {
15
- aboveHeader: boolean;
16
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ type __VLS_Props = {
17
3
  /** 整体不用管 AppLayout 控制 用在定位出去的子元素的显隐 */
18
4
  show: boolean;
19
5
  /** 层级是否高于 header(#7.5 期;true 时 z-index 提升盖住 header) */
20
6
  aboveHeader?: boolean;
21
7
  menus: RouteMetaResolveRaw[];
22
8
  menuFlatList: RouteMetaResolveRaw[];
23
- }>, {
24
- aboveHeader: boolean;
25
- }>>> & Readonly<{}>, {
26
- aboveHeader: boolean;
27
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
29
- export default _default;
30
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
- type __VLS_TypePropsToRuntimeProps<T> = {
32
- [K in keyof T]-?: {} extends Pick<T, K> ? {
33
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
- } : {
35
- type: import('vue').PropType<T[K]>;
36
- required: true;
37
- };
38
9
  };
39
- type __VLS_WithDefaults<P, D> = {
40
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
- default: D[K];
42
- }> : P[K];
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ top?(_: {}): any;
14
+ bottom?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
43
18
  };
44
- type __VLS_Prettify<T> = {
45
- [K in keyof T]: T[K];
46
- } & {};
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
+ aboveHeader: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
47
25
  type __VLS_WithTemplateSlots<T, S> = T & {
48
26
  new (): {
49
27
  $slots: S;
@@ -1,4 +1,3 @@
1
- import { Plugin } from 'vue';
2
1
  import { default as AppLayout } from './AppLayout.vue';
3
2
  import { default as AppHeader } from './AppHeader.vue';
4
3
  import { default as AppSidebar } from './AppSidebar.vue';
@@ -6,22 +5,5 @@ import { default as AppBody } from './AppBody.vue';
6
5
  import { default as AppBreadcrumb } from './AppBreadcrumb.vue';
7
6
  import { default as AppFooter } from './AppFooter.vue';
8
7
  import { default as AppPage } from './AppPage.vue';
9
-
10
- export {
11
- /** 应用根布局容器:props 注入 adminBridge / appStore / userStore,provide 给子 layout */
12
- AppLayout,
13
- /** 应用头部布局:模块菜单 + 深色切换;#left / #right slot 给业务自渲染 */
14
- AppHeader,
15
- /** 应用侧栏布局:菜单树 + 折叠按钮;#top / #bottom slot 给业务自渲染 */
16
- AppSidebar,
17
- /** 应用主体布局:面包屑 + RouterView keepAlive;#footer slot */
18
- AppBody,
19
- /** 应用面包屑(AppBody 内部消费,业务侧通常不直接使用) */
20
- AppBreadcrumb,
21
- /** 应用底部布局 */
22
- AppFooter,
23
- /** 业务页面容器:fullViewport 满视口 + ModalShelf page level */
24
- AppPage, };
25
- /** app-layout 子目录批量 install plugin(同 form/menu/display 子桶范式) */
26
- export declare const appLayoutInstall: Plugin;
8
+ export { AppLayout, AppHeader, AppSidebar, AppBody, AppBreadcrumb, AppFooter, AppPage, };
27
9
  export * from './types';
@@ -1,6 +1,5 @@
1
1
  import { createAppStore, createUserStore } from '../../store';
2
2
  import { AdminBridge } from '../../bridge';
3
-
4
3
  /**
5
4
  * AppLayout 族 app store 消费契约(props/inject 切面)。
6
5
  *
@@ -1,13 +1,12 @@
1
1
  import { Component } from 'vue';
2
- import { DataListViewProps, DataListViewInstance } from './types';
3
-
4
- declare const _default: <T 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<{
2
+ import { DataListViewProps } from './types';
3
+ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
5
  readonly onSelectionChange?: ((rows: T[]) => any) | undefined;
7
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & DataListViewProps<T>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
8
- expose(exposed: import('vue').ShallowUnwrapRef<DataListViewInstance<T>>): void;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelectionChange"> & DataListViewProps<T> & Partial<{}>> & import('vue').PublicProps;
7
+ expose(exposed: import('vue').ShallowUnwrapRef<import('../table').TableInstance>): void;
9
8
  attrs: any;
10
- slots: ReturnType<() => {
9
+ slots: {
11
10
  item?(_: {
12
11
  fieldComponentMap: Record<string, Component>;
13
12
  row: T;
@@ -15,12 +14,13 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: Awaited<typ
15
14
  selected: boolean;
16
15
  toggleSelect: () => void;
17
16
  }): any;
18
- }>;
17
+ empty?(_: {}): any;
18
+ };
19
19
  emit: (e: "selectionChange", rows: T[]) => void;
20
20
  }>) => import('vue').VNode & {
21
21
  __ctx?: Awaited<typeof __VLS_setup>;
22
22
  };
23
23
  export default _default;
24
- type __VLS_Prettify<T> = {
24
+ type __VLS_PrettifyLocal<T> = {
25
25
  [K in keyof T]: T[K];
26
26
  } & {};
@@ -1,24 +1,26 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
- /** 当前项是否选中(由 DataListView 传入) */
6
- selected: boolean;
7
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
1
+ /**
2
+ * DataListView 单项容器
3
+ * ---
4
+ * 仅承载选中态 class 钩子 + 项内容插槽,由 DataListView 内部 v-for 使用。
5
+ * [MUST NOT] 写死视觉样式(卡片阴影/圆角等归消费方);
6
+ * [MUST NOT] 内置选中状态机(状态机在 DataListView)。
7
+ */
8
+ type __VLS_Props = {
8
9
  /** 当前项是否选中(由 DataListView 传入) */
9
10
  selected: boolean;
10
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
- export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToRuntimeProps<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
11
+ };
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
20
16
  };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
21
19
  };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
22
24
  type __VLS_WithTemplateSlots<T, S> = T & {
23
25
  new (): {
24
26
  $slots: S;
@@ -1,6 +1,5 @@
1
1
  import { default as DataListView } from './DataListView.vue';
2
2
  import { default as DataListViewItem } from './DataListViewItem.vue';
3
-
4
3
  export * from './types';
5
4
  /**
6
5
  * data-view 是 table 的内部衍生品:仅供 TableMain 内部 import,
@@ -1,6 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ElTableColumnProps } from '../table';
3
-
2
+ import { ElTableColumnProps, TableInstance } from '../table';
4
3
  /**
5
4
  * DataListView 字段渲染作用域
6
5
  * ---
@@ -16,39 +15,31 @@ export interface DataListViewRenderScope<T extends Record<string, any> = Record<
16
15
  * DataListView 列配置(table 的内部衍生品:从 ElTableColumnProps Pick 复用子集,
17
16
  * ElTableColumnProps 零触碰;本类型不对外导出,仅 table 内部消费)
18
17
  */
19
- export type DataViewColumn = Partial<Pick<ElTableColumnProps<any, any>, "prop" | "label" | "type" | "render">>;
18
+ export type DataViewColumn<T extends Record<string, any> = Record<string, any>> = Partial<Pick<ElTableColumnProps<T, any>, "prop" | "label" | "type" | "render">>;
20
19
  /**
21
20
  * DataListView props
22
21
  * ---
23
22
  * 布局无关的数据项容器:分页数据由外部传入,一行几个由消费方在 #item
24
23
  * 外层用 CSS 决定,本组件不内置任何列数 / 布局。
25
24
  */
26
- export interface DataListViewProps<T extends Record<string, any> = Record<string, any>> {
25
+ export interface DataListViewProps<T extends Record<string, any>> {
27
26
  /** 当前页数据(外部传入,组件不持有请求 / 分页逻辑) */
28
27
  data: T[];
29
28
  /** 行唯一键:行数据键名 或 取键函数(内部统一 String 化) */
30
- rowKey: string | ((row: T) => string);
29
+ rowKey: Extract<keyof T, string> | ((row: T) => string);
31
30
  /** 列配置,内部归一为 fieldComponentMap 喂 #item */
32
- columns: DataViewColumn[];
31
+ columns: DataViewColumn<T>[];
33
32
  /** 最大高度;传入时容器超出内容出现垂直滚动条,缺省不限高 */
34
33
  maxHeight?: number;
35
34
  /** 是否启用选中能力,缺省关闭 */
36
35
  selectable?: boolean;
37
36
  }
38
37
  /**
39
- * DataListView 对外实例方法
40
- * ---
41
- * 形状镜像 TableMain 的 ELTable 选中导出(selectedList / clearSelection),
42
- * 便于 phase 2 TableMain 接线做薄 adapter。
38
+ * DataListView 对外实例方法 对齐 elTableInstance
39
+ * -----
40
+ * 未实现的会抛错
43
41
  */
44
- export interface DataListViewInstance<T extends Record<string, any> = Record<string, any>> {
45
- /** 获取当前选中行 */
46
- getSelected: () => T[];
47
- /** 清空选中 */
48
- clearSelection: () => void;
49
- /** 全选 / 全不选 */
50
- toggleAll: (checked: boolean) => void;
51
- }
42
+ export type DataListViewInstance = TableInstance;
52
43
  /**
53
44
  * #item 作用域插槽 props
54
45
  * ---
@@ -0,0 +1,5 @@
1
+ import { DataListViewInstance } from './types';
2
+ /**
3
+ * 创建 DataListView 实例
4
+ */
5
+ export declare const createDataListViewInstance: (mainMethods: Pick<DataListViewInstance, "clearSelection" | "getSelectionRows" | "toggleRowSelection" | "toggleAllSelection" | "columns">) => DataListViewInstance;
@@ -1,16 +1,18 @@
1
1
  import { ActionBtnConfigItem, ActionBtnSize } from './types';
2
-
3
- declare const _default: <Ctx = void>(__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<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & {
2
+ declare const _default: <Ctx>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
5
4
  configs?: ActionBtnConfigItem<Ctx>[];
6
5
  ctx: Ctx;
7
6
  defaultSize?: ActionBtnSize;
8
- }, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
7
+ } & Partial<{}>> & import('vue').PublicProps;
9
8
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
9
  attrs: any;
11
- slots: ReturnType<() => {}>;
12
- emit: typeof __VLS_emit;
10
+ slots: {};
11
+ emit: {};
13
12
  }>) => import('vue').VNode & {
14
13
  __ctx?: Awaited<typeof __VLS_setup>;
15
14
  };
16
15
  export default _default;
16
+ type __VLS_PrettifyLocal<T> = {
17
+ [K in keyof T]: T[K];
18
+ } & {};
@@ -1,41 +1,25 @@
1
1
  import { HeightProviderProps } from './types';
2
-
3
2
  declare function __VLS_template(): {
4
- header?(_: {}): any;
5
- default?(_: {
6
- viewportHeight: number;
7
- }): any;
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ header?(_: {}): any;
6
+ default?(_: {
7
+ viewportHeight: number;
8
+ }): any;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
8
12
  };
9
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HeightProviderProps>, {
10
- minHeight: number;
11
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
- childViewportHeightChange: (value: number) => void;
13
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HeightProviderProps>, {
14
- minHeight: number;
15
- }>>> & Readonly<{
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<HeightProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ childViewportHeightChange: (value: number) => any;
16
+ }, string, import('vue').PublicProps, Readonly<HeightProviderProps> & Readonly<{
16
17
  onChildViewportHeightChange?: ((value: number) => any) | undefined;
17
18
  }>, {
18
19
  minHeight: number;
19
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
22
  export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
31
- type __VLS_WithDefaults<P, D> = {
32
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
- default: D[K];
34
- }> : P[K];
35
- };
36
- type __VLS_Prettify<T> = {
37
- [K in keyof T]: T[K];
38
- } & {};
39
23
  type __VLS_WithTemplateSlots<T, S> = T & {
40
24
  new (): {
41
25
  $slots: S;
@@ -1,39 +1,32 @@
1
1
  import { TabsHeaderVariant, TabsMainItem } from './types';
2
-
3
- declare function __VLS_template(): Partial<Record<string, (_: {
4
- tab: TabsMainItem;
5
- active: boolean;
6
- }) => any>>;
7
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
8
- activeKey: import('vue').PropType<string>;
9
- tabs: {
10
- type: globalThis.PropType<TabsMainItem[]>;
11
- required: true;
12
- };
13
- level: {
14
- type: globalThis.PropType<number>;
15
- default: number;
16
- };
17
- variant: {
18
- type: globalThis.PropType<TabsHeaderVariant>;
19
- };
20
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
21
- activeKey: import('vue').PropType<string>;
22
- tabs: {
23
- type: globalThis.PropType<TabsMainItem[]>;
24
- required: true;
25
- };
26
- level: {
27
- type: globalThis.PropType<number>;
28
- default: number;
29
- };
30
- variant: {
31
- type: globalThis.PropType<TabsHeaderVariant>;
32
- };
33
- }>> & Readonly<{}>, {
2
+ type __VLS_Props = {
3
+ tabs: TabsMainItem[];
4
+ /** 视觉嵌套层级,只控字号(1=16 / 2=14 / 3=12 / 4+=12,超 4 钳到 4) */
5
+ level?: number;
6
+ /** 视觉风格变体;不传按 level 推导默认 */
7
+ variant?: TabsHeaderVariant;
8
+ };
9
+ type __VLS_PublicProps = {
10
+ "activeKey"?: string;
11
+ } & __VLS_Props;
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: Partial<Record<string, (_: {
15
+ tab: TabsMainItem;
16
+ active: boolean;
17
+ }) => any>>;
18
+ refs: {};
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ "update:activeKey": (value: string) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:activeKey"?: ((value: string) => any) | undefined;
26
+ }>, {
34
27
  level: number;
35
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
30
  export default _default;
38
31
  type __VLS_WithTemplateSlots<T, S> = T & {
39
32
  new (): {