@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.
- 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 +0 -1
- 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 +0 -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,7 +1,7 @@
|
|
|
1
|
-
declare const _default: <P extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup
|
|
2
|
-
props:
|
|
1
|
+
declare const _default: <P 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<{
|
|
2
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
3
3
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>
|
|
4
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
5
5
|
modelValue: string;
|
|
6
6
|
/** 发送频率 */
|
|
7
7
|
hz?: number;
|
|
@@ -18,15 +18,15 @@ declare const _default: <P extends Record<string, any>>(__VLS_props: Awaited<typ
|
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
/** 发送按钮文本 */
|
|
20
20
|
btnText?: string;
|
|
21
|
-
}
|
|
21
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
22
22
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
23
23
|
attrs: any;
|
|
24
|
-
slots:
|
|
24
|
+
slots: {};
|
|
25
25
|
emit: (e: "update:modelValue", value: string) => void;
|
|
26
26
|
}>) => import('vue').VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
29
29
|
export default _default;
|
|
30
|
-
type
|
|
30
|
+
type __VLS_PrettifyLocal<T> = {
|
|
31
31
|
[K in keyof T]: T[K];
|
|
32
32
|
} & {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
declare const _default: <P extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup
|
|
2
|
-
props:
|
|
1
|
+
declare const _default: <P 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<{
|
|
2
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
3
3
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>
|
|
4
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
5
5
|
modelValue: string;
|
|
6
6
|
imgWidth?: number;
|
|
7
7
|
api: (params?: P) => Promise<string>;
|
|
8
8
|
params?: P;
|
|
9
9
|
/** 是否自动销毁图片链接 */
|
|
10
10
|
autoRevokeUrl?: boolean;
|
|
11
|
-
}
|
|
11
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
12
12
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
13
13
|
attrs: any;
|
|
14
|
-
slots:
|
|
14
|
+
slots: {};
|
|
15
15
|
emit: (e: "update:modelValue", value: string) => void;
|
|
16
16
|
}>) => import('vue').VNode & {
|
|
17
17
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
20
|
-
type
|
|
20
|
+
type __VLS_PrettifyLocal<T> = {
|
|
21
21
|
[K in keyof T]: T[K];
|
|
22
22
|
} & {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Plugin } from 'vue';
|
|
2
1
|
import { default as FormMain } from './FormMain.vue';
|
|
3
2
|
import { default as FormSelect } from './FormSelect.vue';
|
|
4
3
|
import { default as FormRadioGroup } from './FormRadioGroup.vue';
|
|
@@ -6,8 +5,6 @@ import { default as FormTree } from './FormTree.vue';
|
|
|
6
5
|
import { default as FormSearch } from './FormSearch.vue';
|
|
7
6
|
import { default as FormVerifyImage } from './FormVerifyImage.vue';
|
|
8
7
|
import { default as FormVerifyCode } from './FormVerifyCode.vue';
|
|
9
|
-
|
|
10
8
|
export * from './types';
|
|
11
9
|
export * from './utils';
|
|
12
10
|
export { FormMain, FormSelect, FormSearch, FormRadioGroup, FormTree, FormVerifyImage, FormVerifyCode, };
|
|
13
|
-
export declare const formInstall: Plugin;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { FormItemConfigList, FormSearchSearchType } from '../form';
|
|
2
|
-
import {
|
|
1
|
+
import { FormItemConfigList, FormScope, FormSearchSearchType } from '../form';
|
|
2
|
+
import { TableColumnDefaultScope, TableColumnHeaderScope } from '../table';
|
|
3
3
|
import { ListPageInnerInjectInfo, ListPageInstance } from './types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { VNode } from 'vue';
|
|
5
|
+
import { DataListViewItemScope } from '../data-view';
|
|
6
|
+
declare const _default: <T extends Record<string, any>, PO extends Record<string, any>, SO extends Record<string, any>, SQ extends Record<string, any>, F 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<{
|
|
7
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
|
+
readonly "onUpdate:isAutoRefresh"?: ((value: boolean) => any) | undefined;
|
|
7
9
|
readonly onDataChange?: ((data: T[]) => any) | undefined;
|
|
8
10
|
readonly onPageInfoChange?: ((info: {
|
|
9
11
|
pageSize: number;
|
|
10
12
|
currentPage: number;
|
|
11
13
|
total: number;
|
|
12
14
|
}) => any) | undefined;
|
|
13
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never
|
|
15
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:isAutoRefresh" | "onDataChange" | "onPageInfoChange"> & ({
|
|
16
|
+
isAutoRefresh?: boolean;
|
|
17
|
+
} & Partial<Pick<import('../form').FormSearchProps<PO, SO, {}>, "staticQuery">> & {
|
|
14
18
|
formSearchProps?: Partial<Omit<import('../form').FormSearchProps<PO, SO, {}>, "list" | "staticQuery">> | undefined;
|
|
15
19
|
} & Pick<import('../table').TableMainProps<T, import('../form').ExcludeNeverProperties<import('../form').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, ListPageInnerInjectInfo<PO, F>>, import('./types').TableMainRequiredKey> & Partial<Pick<import('../table').TableMainProps<T, import('../form').ExcludeNeverProperties<import('../form').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, ListPageInnerInjectInfo<PO, F>>, import('./types').TableMainOptionsKey>> & {
|
|
16
20
|
tableMainProps?: Partial<Omit<import('../table').TableMainProps<T, import('../form').ExcludeNeverProperties<import('../form').ExtractFormStringifyRawFromObject<PO, SO>> & SQ, ListPageInnerInjectInfo<PO, F>>, import('./types').TableMainOptionsKey | import('./types').TableMainRewriteKey>> | undefined;
|
|
@@ -21,35 +25,30 @@ declare const _default: <T extends Record<string, any>, PO extends Record<string
|
|
|
21
25
|
injectInfo?: F | undefined;
|
|
22
26
|
beforeSearch?: ((data: import('../form').ExcludeNeverProperties<import('../form').ExtractFormStringifyRawFromObject<PO, SO>>, type: FormSearchSearchType) => import('../form').ExcludeNeverProperties<import('../form').ExtractFormStringifyRawFromObject<PO, SO>>) | undefined;
|
|
23
27
|
clearTableFilterOnReset?: boolean;
|
|
24
|
-
} & {
|
|
25
|
-
isAutoRefresh?: boolean;
|
|
26
|
-
}), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
28
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
27
29
|
expose(exposed: import('vue').ShallowUnwrapRef<ListPageInstance<PO>>): void;
|
|
28
30
|
attrs: any;
|
|
29
|
-
slots:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
slots: Readonly<{
|
|
32
|
+
/** 头部插槽(无 scope) */
|
|
33
|
+
header?: () => VNode[];
|
|
34
|
+
/** 操作区插槽(无 scope) */
|
|
35
|
+
operation?: () => VNode[];
|
|
36
|
+
/** 自定义视图项插槽 */
|
|
37
|
+
"custom-view-item"?: (scope: DataListViewItemScope<T>) => VNode[];
|
|
38
|
+
} & { [K in `form-${Extract<keyof PO, string>}`]?: ((scope: FormScope<PO, SO, Extract<keyof PO, string>, any, any>) => VNode[]) | undefined; } & { [K_1 in `table-${Uppercase<string>}` | `table-${Exclude<Extract<keyof T, string>, "item" | "custom-view-item"> & {}}`]?: ((scope: TableColumnDefaultScope<T, ListPageInnerInjectInfo<PO, F>>) => VNode[]) | undefined; } & { [K_2 in `table-header-${Uppercase<string>}` | `table-header-${Exclude<Extract<keyof T, string>, "item" | "custom-view-item"> & {}}`]?: ((scope: TableColumnHeaderScope<T, ListPageInnerInjectInfo<PO, F>> & {
|
|
39
|
+
searchFormData: PO;
|
|
40
|
+
triggerSearch: (() => void) | undefined;
|
|
41
|
+
}) => VNode[]) | undefined; }> & {
|
|
42
|
+
/** 头部插槽(无 scope) */
|
|
43
|
+
header?: () => VNode[];
|
|
44
|
+
/** 操作区插槽(无 scope) */
|
|
45
|
+
operation?: () => VNode[];
|
|
46
|
+
/** 自定义视图项插槽 */
|
|
47
|
+
"custom-view-item"?: (scope: DataListViewItemScope<T>) => VNode[];
|
|
48
|
+
} & { [K in `form-${Extract<keyof PO, string>}`]?: ((scope: FormScope<PO, SO, Extract<keyof PO, string>, any, any>) => VNode[]) | undefined; } & { [K_1 in `table-${Uppercase<string>}` | `table-${Exclude<Extract<keyof T, string>, "item" | "custom-view-item"> & {}}`]?: ((scope: TableColumnDefaultScope<T, ListPageInnerInjectInfo<PO, F>>) => VNode[]) | undefined; } & { [K_2 in `table-header-${Uppercase<string>}` | `table-header-${Exclude<Extract<keyof T, string>, "item" | "custom-view-item"> & {}}`]?: ((scope: TableColumnHeaderScope<T, ListPageInnerInjectInfo<PO, F>> & {
|
|
36
49
|
searchFormData: PO;
|
|
37
50
|
triggerSearch: (() => void) | undefined;
|
|
38
|
-
|
|
39
|
-
$index: number;
|
|
40
|
-
injectInfo: ListPageInnerInjectInfo<PO, F>;
|
|
41
|
-
exposeInfo: TableMainInstance;
|
|
42
|
-
}) => any>> & {
|
|
43
|
-
header?(_: {}): any;
|
|
44
|
-
operation?(_: {}): any;
|
|
45
|
-
"custom-view-item"?(_: {
|
|
46
|
-
fieldComponentMap: Record<string, globalThis.Component>;
|
|
47
|
-
row: T;
|
|
48
|
-
index: number;
|
|
49
|
-
selected: boolean;
|
|
50
|
-
toggleSelect: () => void;
|
|
51
|
-
}): any;
|
|
52
|
-
}>;
|
|
51
|
+
}) => VNode[]) | undefined; };
|
|
53
52
|
emit: {
|
|
54
53
|
(e: "dataChange", data: T[]): void;
|
|
55
54
|
(e: "pageInfoChange", info: {
|
|
@@ -57,11 +56,11 @@ declare const _default: <T extends Record<string, any>, PO extends Record<string
|
|
|
57
56
|
currentPage: number;
|
|
58
57
|
total: number;
|
|
59
58
|
}): void;
|
|
60
|
-
};
|
|
59
|
+
} & ((evt: "update:isAutoRefresh", value: boolean) => void);
|
|
61
60
|
}>) => import('vue').VNode & {
|
|
62
61
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
63
62
|
};
|
|
64
63
|
export default _default;
|
|
65
|
-
type
|
|
64
|
+
type __VLS_PrettifyLocal<T> = {
|
|
66
65
|
[K in keyof T]: T[K];
|
|
67
66
|
} & {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ExtractFormStringifyFromObject, ExtractFormStringifyFromList, FormItemConfigList, FormSearchInstance, FormSearchProps, FormSearchSearchType } from '../form';
|
|
2
2
|
import { TableApiParams, TableApiResult, TableMainInstance, TableMainProps } from '../table';
|
|
3
|
-
|
|
4
3
|
export type FormSearchOptionsKey = "staticQuery";
|
|
5
4
|
export type FormSearchRewriteKey = "list";
|
|
6
5
|
export type TableMainOptionsKey = "refine" | "refineReduceHeight" | "viewportHeight" | "parentChannel";
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { RouteMetaResolveRaw } from '../../types';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
type __VLS_Props = {
|
|
4
3
|
menu: RouteMetaResolveRaw;
|
|
5
4
|
MenuItemSub: any;
|
|
6
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
-
menu: RouteMetaResolveRaw;
|
|
8
|
-
MenuItemSub: any;
|
|
9
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
-
export default _default;
|
|
11
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
-
} : {
|
|
16
|
-
type: import('vue').PropType<T[K]>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
5
|
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -1,28 +1,126 @@
|
|
|
1
1
|
import { RouteMetaResolveRaw } from '../../types';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
type __VLS_Props = {
|
|
4
3
|
menus: RouteMetaResolveRaw[];
|
|
5
4
|
menuFlatList: RouteMetaResolveRaw[];
|
|
6
5
|
routerMode?: boolean;
|
|
7
6
|
collapse?: boolean;
|
|
8
7
|
autoClose?: boolean;
|
|
9
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
10
10
|
open: (index: string) => void | undefined;
|
|
11
11
|
close: (index: string) => void | undefined;
|
|
12
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
+
elMenu: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
14
|
+
readonly mode: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
15
|
+
readonly defaultActive: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
16
|
+
readonly defaultOpeneds: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
17
|
+
readonly uniqueOpened: BooleanConstructor;
|
|
18
|
+
readonly router: BooleanConstructor;
|
|
19
|
+
readonly menuTrigger: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "click" | "hover", unknown, "hover", boolean>;
|
|
20
|
+
readonly collapse: BooleanConstructor;
|
|
21
|
+
readonly backgroundColor: StringConstructor;
|
|
22
|
+
readonly textColor: StringConstructor;
|
|
23
|
+
readonly activeTextColor: StringConstructor;
|
|
24
|
+
readonly closeOnClickOutside: BooleanConstructor;
|
|
25
|
+
readonly collapseTransition: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
26
|
+
readonly ellipsis: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
27
|
+
readonly popperOffset: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
28
|
+
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
29
|
+
readonly popperEffect: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
30
|
+
readonly popperClass: StringConstructor;
|
|
31
|
+
readonly popperStyle: {
|
|
32
|
+
readonly type: globalThis.PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').CSSProperties) | (() => string | import('vue').CSSProperties) | (((new (...args: any[]) => string | import('vue').CSSProperties) | (() => string | import('vue').CSSProperties)) | null)[], unknown, unknown>>;
|
|
33
|
+
readonly required: false;
|
|
34
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
|
+
__epPropKey: true;
|
|
36
|
+
};
|
|
37
|
+
readonly showTimeout: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
38
|
+
readonly hideTimeout: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
39
|
+
readonly persistent: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
42
|
+
onSelect?: ((index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | import('vue-router').NavigationFailure> | undefined) => any) | undefined;
|
|
43
|
+
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
44
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
|
+
close: (index: string, indexPath: string[]) => boolean;
|
|
48
|
+
open: (index: string, indexPath: string[]) => boolean;
|
|
49
|
+
select: (index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | import('vue-router').NavigationFailure>) => boolean;
|
|
50
|
+
}, import('vue').PublicProps, {
|
|
51
|
+
readonly collapse: boolean;
|
|
52
|
+
readonly ellipsis: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
53
|
+
readonly persistent: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
54
|
+
readonly mode: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
55
|
+
readonly showTimeout: number;
|
|
56
|
+
readonly hideTimeout: number;
|
|
57
|
+
readonly defaultActive: string;
|
|
58
|
+
readonly defaultOpeneds: string[];
|
|
59
|
+
readonly menuTrigger: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "click" | "hover", unknown>;
|
|
60
|
+
readonly collapseTransition: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
61
|
+
readonly popperOffset: number;
|
|
62
|
+
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>;
|
|
63
|
+
readonly popperEffect: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown>;
|
|
64
|
+
readonly uniqueOpened: boolean;
|
|
65
|
+
readonly router: boolean;
|
|
66
|
+
readonly closeOnClickOutside: boolean;
|
|
67
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
68
|
+
P: {};
|
|
69
|
+
B: {};
|
|
70
|
+
D: {};
|
|
71
|
+
C: {};
|
|
72
|
+
M: {};
|
|
73
|
+
Defaults: {};
|
|
74
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
75
|
+
readonly mode: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
76
|
+
readonly defaultActive: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
77
|
+
readonly defaultOpeneds: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
78
|
+
readonly uniqueOpened: BooleanConstructor;
|
|
79
|
+
readonly router: BooleanConstructor;
|
|
80
|
+
readonly menuTrigger: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "click" | "hover", unknown, "hover", boolean>;
|
|
81
|
+
readonly collapse: BooleanConstructor;
|
|
82
|
+
readonly backgroundColor: StringConstructor;
|
|
83
|
+
readonly textColor: StringConstructor;
|
|
84
|
+
readonly activeTextColor: StringConstructor;
|
|
85
|
+
readonly closeOnClickOutside: BooleanConstructor;
|
|
86
|
+
readonly collapseTransition: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
87
|
+
readonly ellipsis: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
88
|
+
readonly popperOffset: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
89
|
+
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
90
|
+
readonly popperEffect: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
91
|
+
readonly popperClass: StringConstructor;
|
|
92
|
+
readonly popperStyle: {
|
|
93
|
+
readonly type: globalThis.PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').CSSProperties) | (() => string | import('vue').CSSProperties) | (((new (...args: any[]) => string | import('vue').CSSProperties) | (() => string | import('vue').CSSProperties)) | null)[], unknown, unknown>>;
|
|
94
|
+
readonly required: false;
|
|
95
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
|
+
__epPropKey: true;
|
|
97
|
+
};
|
|
98
|
+
readonly showTimeout: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
99
|
+
readonly hideTimeout: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
100
|
+
readonly persistent: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
101
|
+
}>> & Readonly<{
|
|
102
|
+
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
103
|
+
onSelect?: ((index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | import('vue-router').NavigationFailure> | undefined) => any) | undefined;
|
|
104
|
+
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
105
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
}>, {}, {}, {}, {
|
|
108
|
+
readonly collapse: boolean;
|
|
109
|
+
readonly ellipsis: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
110
|
+
readonly persistent: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
111
|
+
readonly mode: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
112
|
+
readonly showTimeout: number;
|
|
113
|
+
readonly hideTimeout: number;
|
|
114
|
+
readonly defaultActive: string;
|
|
115
|
+
readonly defaultOpeneds: string[];
|
|
116
|
+
readonly menuTrigger: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "click" | "hover", unknown>;
|
|
117
|
+
readonly collapseTransition: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
118
|
+
readonly popperOffset: number;
|
|
119
|
+
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>;
|
|
120
|
+
readonly popperEffect: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown>;
|
|
121
|
+
readonly uniqueOpened: boolean;
|
|
122
|
+
readonly router: boolean;
|
|
123
|
+
readonly closeOnClickOutside: boolean;
|
|
124
|
+
}> | null;
|
|
125
|
+
}, any>;
|
|
19
126
|
export default _default;
|
|
20
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
-
} : {
|
|
25
|
-
type: import('vue').PropType<T[K]>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
1
|
+
import { ActionBtnProps } from './types';
|
|
2
|
+
declare const _default: <T = void>(__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<{
|
|
5
4
|
readonly onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
6
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>
|
|
7
|
-
confirmMode?: import('./types').ActionConfirmMode;
|
|
8
|
-
confirmConfig?: ActionBtnConfirmConfig | ((data: T) => ActionBtnConfirmConfig) | undefined;
|
|
9
|
-
beforeOpen?: (() => Promise<T>) | undefined;
|
|
10
|
-
}), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick"> & ActionBtnProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
11
6
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
12
7
|
attrs: any;
|
|
13
|
-
slots:
|
|
8
|
+
slots: {
|
|
14
9
|
default?(_: {}): any;
|
|
15
|
-
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
16
12
|
emit: (evt: "click", evt: MouseEvent) => void;
|
|
17
13
|
}>) => import('vue').VNode & {
|
|
18
14
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
15
|
};
|
|
20
16
|
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} & {};
|
|
@@ -1,67 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ActionConfirmProps } from './types';
|
|
2
|
+
type __VLS_Props = ActionConfirmProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
"show"?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
3
6
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
5
15
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type: globalThis.PropType<ActionConfirmTextResolver>;
|
|
13
|
-
};
|
|
14
|
-
content: {
|
|
15
|
-
type: globalThis.PropType<ActionConfirmTextResolver>;
|
|
16
|
-
};
|
|
17
|
-
cancelText: {
|
|
18
|
-
type: globalThis.PropType<string>;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
confirmText: {
|
|
22
|
-
type: globalThis.PropType<string>;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
mode: {
|
|
26
|
-
type: globalThis.PropType<import('./types').ActionConfirmMode>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
submitFn: {
|
|
30
|
-
type: globalThis.PropType<() => void | Promise<void>>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
34
|
-
show: import('vue').PropType<boolean>;
|
|
35
|
-
type: {
|
|
36
|
-
type: globalThis.PropType<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
37
|
-
};
|
|
38
|
-
title: {
|
|
39
|
-
type: globalThis.PropType<ActionConfirmTextResolver>;
|
|
40
|
-
};
|
|
41
|
-
content: {
|
|
42
|
-
type: globalThis.PropType<ActionConfirmTextResolver>;
|
|
43
|
-
};
|
|
44
|
-
cancelText: {
|
|
45
|
-
type: globalThis.PropType<string>;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
confirmText: {
|
|
49
|
-
type: globalThis.PropType<string>;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
mode: {
|
|
53
|
-
type: globalThis.PropType<import('./types').ActionConfirmMode>;
|
|
54
|
-
required: true;
|
|
55
|
-
};
|
|
56
|
-
submitFn: {
|
|
57
|
-
type: globalThis.PropType<() => void | Promise<void>>;
|
|
58
|
-
required: true;
|
|
59
|
-
};
|
|
60
|
-
}>> & Readonly<{}>, {
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:show": (value: boolean) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
61
22
|
cancelText: string;
|
|
62
23
|
confirmText: string;
|
|
63
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
64
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
65
26
|
export default _default;
|
|
66
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
28
|
new (): {
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
enabled: {
|
|
20
|
-
type: globalThis.PropType<boolean>;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
}>> & Readonly<{}>, {
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 刷新方法,返回 Promise。失败不影响下轮定时 */
|
|
3
|
+
refreshFn: () => Promise<unknown>;
|
|
4
|
+
/** 是否允许自动刷新。false 时清 timer 且不排下轮 */
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
"interval"?: number;
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
"update:interval": (value: number) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
"onUpdate:interval"?: ((value: number) => any) | undefined;
|
|
17
|
+
}>, {
|
|
24
18
|
enabled: boolean;
|
|
25
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
20
|
export default _default;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
3
8
|
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
4
10
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
6
12
|
export default _default;
|
|
7
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
14
|
new (): {
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import { Plugin } from 'vue';
|
|
2
1
|
import { default as TriggerAutoImport } from './TriggerAutoImport.vue';
|
|
3
2
|
import { default as AutoRefresh } from './AutoRefresh.vue';
|
|
4
|
-
import { default as ActionButton } from './ActionButton.vue';
|
|
5
|
-
import { default as ActionButtonDanger } from './ActionButtonDanger.vue';
|
|
6
|
-
import { default as ActionButtonWarn } from './ActionButtonWarn.vue';
|
|
7
3
|
import { default as ActionBtn } from './ActionBtn.vue';
|
|
8
4
|
import { default as ActionConfirm } from './ActionConfirm.vue';
|
|
9
5
|
import { default as SelectModule } from './SelectModule.vue';
|
|
10
|
-
|
|
11
6
|
export * from './types';
|
|
12
|
-
export {
|
|
7
|
+
export {
|
|
13
8
|
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
*
|
|
16
|
-
* 并对 ElButton 全部 props 透传。`ActionButton` / `ActionButtonDanger` / `ActionButtonWarn`
|
|
17
|
-
* 三个旧组件计划后续版本移除;新代码请直接使用 `ActionBtn`,
|
|
18
|
-
* 危险态用 `<ActionBtn type="danger" :confirm-config="{ type: 'danger', ... }">`,
|
|
19
|
-
* 警告态用 `<ActionBtn :confirm-config="{ type: 'warning', ... }">`。
|
|
9
|
+
* @deprecated 全局样式引入后已无用——main.ts `import "element-plus/dist/index.css"`
|
|
10
|
+
* + ElementPlusResolver `importStyle: false` 即可,无需本组件触发按需样式。下个 MAJOR 删除。
|
|
20
11
|
*/
|
|
21
|
-
|
|
22
|
-
export declare const miscInstall: Plugin;
|
|
12
|
+
TriggerAutoImport, AutoRefresh, ActionBtn, ActionConfirm, SelectModule, };
|