@done-coding/admin-core 0.4.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 +2 -3
  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 +2 -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,23 +0,0 @@
1
- import l from "./ConfirmModal.vue.mjs";
2
- import r from "./DetailModal.vue.mjs";
3
- import m from "./ModalShelf.vue.mjs";
4
- import n from "./ModalPorter.vue.mjs";
5
- const e = {
6
- ConfirmModal: l,
7
- DetailModal: r,
8
- ModalShelf: m,
9
- ModalPorter: n
10
- }, d = {
11
- install(o) {
12
- Object.entries(e).forEach(([a, t]) => {
13
- o.component(a, t);
14
- });
15
- }
16
- };
17
- export {
18
- l as ConfirmModal,
19
- r as DetailModal,
20
- n as ModalPorter,
21
- m as ModalShelf,
22
- d as modalInstall
23
- };
@@ -1,20 +0,0 @@
1
- import e from "./PanelMain.vue.mjs";
2
- import o from "./PanelItem.vue.mjs";
3
- import m from "./PanelEditSwitch.vue.mjs";
4
- const i = {
5
- PanelMain: e,
6
- PanelItem: o,
7
- PanelEditSwitch: m
8
- }, r = {
9
- install(n) {
10
- Object.entries(i).forEach(([t, a]) => {
11
- n.component(t, a);
12
- });
13
- }
14
- };
15
- export {
16
- m as PanelEditSwitch,
17
- o as PanelItem,
18
- e as PanelMain,
19
- r as panelInstall
20
- };
@@ -1,14 +0,0 @@
1
- import e from "./TableMain.vue.mjs";
2
- const a = {
3
- TableMain: e
4
- }, l = {
5
- install(t) {
6
- Object.entries(a).forEach(([n, o]) => {
7
- t.component(n, o);
8
- });
9
- }
10
- };
11
- export {
12
- e as TableMain,
13
- l as tableInstall
14
- };
@@ -1,24 +0,0 @@
1
- declare const _default: <T>(__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 onConfirm?: ((data: T) => any) | undefined;
4
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & ({
5
- data: T;
6
- type?: "primary" | "danger" | "info" | "warning" | "success";
7
- /** Popconfirm 标题 */
8
- tipContent: string | ((data: T) => string);
9
- } & {
10
- visible?: 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
- default?(_: {}): any;
16
- }>;
17
- emit: (evt: "confirm", data: T) => void;
18
- }>) => import('vue').VNode & {
19
- __ctx?: Awaited<typeof __VLS_setup>;
20
- };
21
- export default _default;
22
- type __VLS_Prettify<T> = {
23
- [K in keyof T]: T[K];
24
- } & {};
@@ -1,19 +0,0 @@
1
- declare const _default: <T>(__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 onConfirm?: ((data: T) => any) | undefined;
4
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & ({
5
- data: T;
6
- tipContent: string | ((data: T) => string);
7
- } & {
8
- visible?: boolean;
9
- }), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
10
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
- attrs: any;
12
- slots: ReturnType<() => {
13
- default?(_: {}): any;
14
- }>;
15
- emit: (evt: "confirm", data: T) => void;
16
- }>) => import('vue').VNode & {
17
- __ctx?: Awaited<typeof __VLS_setup>;
18
- };
19
- export default _default;
@@ -1,19 +0,0 @@
1
- declare const _default: <T>(__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 onConfirm?: ((data: T) => any) | undefined;
4
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & ({
5
- data: T;
6
- tipContent: string | ((data: T) => string);
7
- } & {
8
- visible?: boolean;
9
- }), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
10
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
- attrs: any;
12
- slots: ReturnType<() => {
13
- default?(_: {}): any;
14
- }>;
15
- emit: (evt: "confirm", data: T) => void;
16
- }>) => import('vue').VNode & {
17
- __ctx?: Awaited<typeof __VLS_setup>;
18
- };
19
- export default _default;
@@ -1,124 +0,0 @@
1
- import { ButtonProps } from 'element-plus';
2
-
3
- declare function __VLS_template(): {
4
- title?(_: {}): any;
5
- default?(_: {}): any;
6
- footer?(_: {
7
- cancelHandler: () => Promise<void>;
8
- confirmHandler: () => Promise<void>;
9
- loading: boolean;
10
- }): any;
11
- };
12
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
- show: boolean;
14
- showClose?: boolean;
15
- onClose?: (status?: boolean) => void;
16
- onCancel?: () => void | Promise<boolean | void>;
17
- onConfirm?: () => void | Promise<boolean | void>;
18
- title?: string | (() => VNode);
19
- content?: string | (() => VNode);
20
- cancelText?: string | (() => VNode);
21
- confirmText?: string | (() => VNode);
22
- /** 是否隐藏取消按钮 */
23
- hiddenCancel?: boolean;
24
- width?: number | string;
25
- /** 反转按钮位置 */
26
- reverse?: boolean;
27
- /** 按下 ESC 是否关闭 */
28
- closeOnPressEscape?: boolean;
29
- /** 点击遮罩是否关闭 */
30
- closeOnClickModal?: boolean;
31
- /** 是否使用确认按钮loading */
32
- useLoading?: boolean;
33
- /**
34
- * 确认按钮 type(对齐 element-plus ElButton type)。
35
- * 默认 'primary';danger / warning / success / info 全枚举均支持,
36
- * 与 ActionConfirm popconfirm 模式按钮颜色行为对齐。
37
- */
38
- type?: ButtonProps["type"];
39
- }>, {
40
- showClose: boolean;
41
- cancelText: string;
42
- confirmText: string;
43
- hiddenCancel: boolean;
44
- width: number;
45
- reverse: boolean;
46
- closeOnPressEscape: boolean;
47
- closeOnClickModal: boolean;
48
- type: string;
49
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
- "update:show": (value: boolean) => void;
51
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
52
- show: boolean;
53
- showClose?: boolean;
54
- onClose?: (status?: boolean) => void;
55
- onCancel?: () => void | Promise<boolean | void>;
56
- onConfirm?: () => void | Promise<boolean | void>;
57
- title?: string | (() => VNode);
58
- content?: string | (() => VNode);
59
- cancelText?: string | (() => VNode);
60
- confirmText?: string | (() => VNode);
61
- /** 是否隐藏取消按钮 */
62
- hiddenCancel?: boolean;
63
- width?: number | string;
64
- /** 反转按钮位置 */
65
- reverse?: boolean;
66
- /** 按下 ESC 是否关闭 */
67
- closeOnPressEscape?: boolean;
68
- /** 点击遮罩是否关闭 */
69
- closeOnClickModal?: boolean;
70
- /** 是否使用确认按钮loading */
71
- useLoading?: boolean;
72
- /**
73
- * 确认按钮 type(对齐 element-plus ElButton type)。
74
- * 默认 'primary';danger / warning / success / info 全枚举均支持,
75
- * 与 ActionConfirm popconfirm 模式按钮颜色行为对齐。
76
- */
77
- type?: ButtonProps["type"];
78
- }>, {
79
- showClose: boolean;
80
- cancelText: string;
81
- confirmText: string;
82
- hiddenCancel: boolean;
83
- width: number;
84
- reverse: boolean;
85
- closeOnPressEscape: boolean;
86
- closeOnClickModal: boolean;
87
- type: string;
88
- }>>> & Readonly<{
89
- "onUpdate:show"?: ((value: boolean) => any) | undefined;
90
- }>, {
91
- type: "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text";
92
- showClose: boolean;
93
- cancelText: string | (() => VNode);
94
- confirmText: string | (() => VNode);
95
- hiddenCancel: boolean;
96
- width: number | string;
97
- reverse: boolean;
98
- closeOnPressEscape: boolean;
99
- closeOnClickModal: boolean;
100
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
102
- export default _default;
103
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
104
- type __VLS_TypePropsToRuntimeProps<T> = {
105
- [K in keyof T]-?: {} extends Pick<T, K> ? {
106
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
107
- } : {
108
- type: import('vue').PropType<T[K]>;
109
- required: true;
110
- };
111
- };
112
- type __VLS_WithDefaults<P, D> = {
113
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
114
- default: D[K];
115
- }> : P[K];
116
- };
117
- type __VLS_Prettify<T> = {
118
- [K in keyof T]: T[K];
119
- } & {};
120
- type __VLS_WithTemplateSlots<T, S> = T & {
121
- new (): {
122
- $slots: S;
123
- };
124
- };