@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.
- package/es/bridge/index.mjs +30 -42
- package/es/components/app-layout/AppHeader.vue.mjs +2 -2
- package/es/components/app-layout/AppHeader.vue2.mjs +16 -19
- package/es/components/data-view/DataListView.vue.mjs +2 -2
- package/es/components/data-view/DataListView.vue2.mjs +63 -52
- package/es/components/data-view/utils.mjs +36 -0
- package/es/components/display/TabsMain.vue.mjs +1 -1
- package/es/components/list-page/ListPage.vue.mjs +2 -2
- package/es/components/list-page/ListPage.vue2.mjs +44 -44
- package/es/components/misc/ActionConfirm.vue2.mjs +16 -16
- package/es/components/modal/ConfirmModal.vue.mjs +3 -3
- package/es/components/modal/DetailModal.vue.mjs +10 -10
- package/es/components/table/TableMain.vue.mjs +3 -3
- package/es/components/table/TableMain.vue2.mjs +167 -177
- package/es/components/table/TableToolbar.vue.mjs +3 -3
- package/es/components/table/TableToolbar.vue2.mjs +8 -4
- package/es/index.mjs +150 -180
- package/es/style.css +1 -1
- package/package.json +6 -5
- package/types/bridge/index.d.ts +3 -6
- package/types/bridge/route.d.ts +0 -1
- package/types/components/app-layout/AppBody.vue.d.ts +14 -34
- package/types/components/app-layout/AppBreadcrumb.vue.d.ts +6 -19
- package/types/components/app-layout/AppFooter.vue.d.ts +1 -1
- package/types/components/app-layout/AppHeader.vue.d.ts +15 -39
- package/types/components/app-layout/AppLayout.vue.d.ts +17 -50
- package/types/components/app-layout/AppPage.vue.d.ts +14 -39
- package/types/components/app-layout/AppSidebar.vue.d.ts +15 -37
- package/types/components/app-layout/index.d.ts +1 -19
- package/types/components/app-layout/types.d.ts +0 -1
- package/types/components/data-view/DataListView.vue.d.ts +9 -9
- package/types/components/data-view/DataListViewItem.vue.d.ts +19 -17
- package/types/components/data-view/index.d.ts +0 -1
- package/types/components/data-view/types.d.ts +9 -18
- package/types/components/data-view/utils.d.ts +5 -0
- package/types/components/display/ActionBtnGroup.vue.d.ts +8 -6
- package/types/components/display/HeightProvider.vue.d.ts +15 -31
- package/types/components/display/TabsHeader.vue.d.ts +27 -34
- package/types/components/display/TabsMain.vue.d.ts +14 -75
- package/types/components/display/TabsNaturalFlow.vue.d.ts +11 -5
- package/types/components/display/TabsRefineFlow.vue.d.ts +13 -31
- package/types/components/display/WatchSize.vue.d.ts +20 -32
- package/types/components/display/index.d.ts +0 -3
- package/types/components/display/types.d.ts +1 -2
- package/types/components/form/FormItem.vue.d.ts +208 -33
- package/types/components/form/FormMain.vue.d.ts +6 -7
- package/types/components/form/FormRadioGroup.vue.d.ts +14 -31
- package/types/components/form/FormSearch.vue.d.ts +5 -6
- package/types/components/form/FormSelect.vue.d.ts +19 -40
- package/types/components/form/FormTree.vue.d.ts +2037 -32
- package/types/components/form/FormVerifyCode.vue.d.ts +6 -6
- package/types/components/form/FormVerifyImage.vue.d.ts +6 -6
- package/types/components/form/form-search-utils.d.ts +0 -1
- package/types/components/form/index.d.ts +0 -3
- package/types/components/form/types.d.ts +2 -3
- package/types/components/form/utils.d.ts +0 -1
- package/types/components/list-page/ListPage.vue.d.ts +32 -33
- package/types/components/list-page/index.d.ts +0 -3
- package/types/components/list-page/types.d.ts +0 -1
- package/types/components/menu/MenuItemSub.vue.d.ts +3 -15
- package/types/components/menu/MenuTree.vue.d.ts +117 -19
- package/types/components/menu/index.d.ts +0 -3
- package/types/components/misc/ActionBtn.vue.d.ts +10 -11
- package/types/components/misc/ActionConfirm.vue.d.ts +21 -60
- package/types/components/misc/AutoRefresh.vue.d.ts +18 -24
- package/types/components/misc/TriggerAutoImport.vue.d.ts +8 -2
- package/types/components/misc/index.d.ts +4 -14
- package/types/components/misc/types.d.ts +0 -1
- package/types/components/modal/DetailModal.vue.d.ts +5 -6
- package/types/components/modal/ModalPorter.vue.d.ts +13 -18
- package/types/components/modal/ModalShelf.vue.d.ts +13 -18
- package/types/components/modal/index.d.ts +0 -4
- package/types/components/modal/modal-shelf-core.d.ts +0 -1
- package/types/components/modal/modal-shelf-hierarchy.d.ts +0 -1
- package/types/components/modal/modal-shelf-types.d.ts +0 -1
- package/types/components/modal/types.d.ts +0 -1
- package/types/components/panel/PanelEditSwitch.vue.d.ts +17 -20
- package/types/components/panel/PanelItem.vue.d.ts +7 -16
- package/types/components/panel/PanelMain.vue.d.ts +5 -6
- package/types/components/panel/index.d.ts +0 -4
- package/types/components/panel/types.d.ts +0 -1
- package/types/components/table/TableMain.vue.d.ts +12 -12
- package/types/components/table/TableToolbar.vue.d.ts +17 -108
- package/types/components/table/ToolbarButtons.vue.d.ts +15 -17
- package/types/components/table/index.d.ts +0 -3
- package/types/components/table/types.d.ts +59 -19
- package/types/config/list-model.d.ts +2 -1
- package/types/helpers/form.d.ts +0 -1
- package/types/helpers/index.d.ts +0 -10
- package/types/helpers/list-helper.d.ts +0 -1
- package/types/hooks/menus-dispatch.d.ts +0 -1
- package/types/hooks/use-channel-viewport-height.d.ts +0 -1
- package/types/index.d.ts +0 -13
- package/types/inject/key.d.ts +0 -1
- package/types/router/guard/index.d.ts +0 -1
- package/types/router/guard/login.d.ts +0 -1
- package/types/router/guard/permission.d.ts +0 -1
- package/types/router/guard/types.d.ts +0 -1
- package/types/store/app.d.ts +1 -2
- package/types/store/router-permission.d.ts +0 -1
- package/types/store/user.d.ts +0 -1
- package/types/types/route.d.ts +0 -1
- package/types/utils/export.d.ts +11 -10
- package/types/utils/router.d.ts +0 -1
- package/es/components/app-layout/index.mjs +0 -32
- package/es/components/display/index.mjs +0 -18
- package/es/components/form/index.mjs +0 -32
- package/es/components/list-page/index.mjs +0 -14
- package/es/components/menu/index.mjs +0 -12
- package/es/components/misc/ActionButton.vue.mjs +0 -52
- package/es/components/misc/ActionButton.vue2.mjs +0 -4
- package/es/components/misc/ActionButtonDanger.vue.mjs +0 -32
- package/es/components/misc/ActionButtonDanger.vue2.mjs +0 -4
- package/es/components/misc/ActionButtonWarn.vue.mjs +0 -32
- package/es/components/misc/ActionButtonWarn.vue2.mjs +0 -4
- package/es/components/misc/index.mjs +0 -32
- package/es/components/modal/index.mjs +0 -23
- package/es/components/panel/index.mjs +0 -20
- package/es/components/table/index.mjs +0 -14
- package/types/components/misc/ActionButton.vue.d.ts +0 -24
- package/types/components/misc/ActionButtonDanger.vue.d.ts +0 -19
- package/types/components/misc/ActionButtonWarn.vue.d.ts +0 -19
- 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,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
|
-
};
|