@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,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, };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ExtractFormStringifyFromObject } from '../form';
|
|
2
2
|
import { DetailModalProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
3
|
+
declare const _default: <PO extends Record<string, any>, SO 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 "onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
7
6
|
readonly onAfterAdd?: ((data: import('../form').ExcludeNeverProperties<import('../form').ExtractFormStringifyRawFromObject<PO, SO>>) => any) | undefined;
|
|
8
7
|
readonly onAfterEdit?: ((data: import('../form').ExcludeNeverProperties<import('../form').ExtractFormStringifyRawFromObject<PO, SO>>) => any) | undefined;
|
|
9
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>
|
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:show" | "onAfterAdd" | "onAfterEdit"> & DetailModalProps<PO, SO> & Partial<{}>> & import('vue').PublicProps;
|
|
10
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
10
|
attrs: any;
|
|
12
|
-
slots:
|
|
11
|
+
slots: {};
|
|
13
12
|
emit: {
|
|
14
13
|
(e: "update:show", value: boolean): void;
|
|
15
14
|
(e: "afterAdd" | "afterEdit", data: ExtractFormStringifyFromObject<PO, SO>): void;
|
|
@@ -18,6 +17,6 @@ declare const _default: <PO extends Record<string, any>, SO extends Record<strin
|
|
|
18
17
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
18
|
};
|
|
20
19
|
export default _default;
|
|
21
|
-
type
|
|
20
|
+
type __VLS_PrettifyLocal<T> = {
|
|
22
21
|
[K in keyof T]: T[K];
|
|
23
22
|
} & {};
|
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
import { EvokeHandle, ModalShelfMap, RegisterEntry } from './modal-shelf-types';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modalList: RegisterEntry[];
|
|
4
|
+
};
|
|
3
5
|
declare function evoke<K extends keyof ModalShelfMap>(key: K, payload: ModalShelfMap[K]): EvokeHandle | null;
|
|
4
6
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
6
13
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}>>, {
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
10
16
|
evoke: typeof evoke;
|
|
11
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
12
|
-
|
|
13
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
19
|
export default _default;
|
|
16
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
-
} : {
|
|
21
|
-
type: import('vue').PropType<T[K]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
21
|
new (): {
|
|
27
22
|
$slots: S;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { ModalLevel } from './modal-shelf-types';
|
|
3
|
-
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
level: ModalLevel;
|
|
5
|
+
};
|
|
4
6
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
6
13
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}>>, {
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
10
16
|
items: Ref<import('./modal-shelf-types').ShelfItem[]>;
|
|
11
17
|
level: ModalLevel;
|
|
12
18
|
evoke: (nsKey: string, component: Component | (() => Promise<Component>), options: {
|
|
@@ -15,20 +21,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
15
21
|
}) => import('./modal-shelf-types').EvokeHandle;
|
|
16
22
|
remove: (nsKey: string | string[]) => void;
|
|
17
23
|
close: (item: import('./modal-shelf-types').ShelfItem) => void;
|
|
18
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
19
|
-
|
|
20
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
26
|
export default _default;
|
|
23
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: import('vue').PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
28
|
new (): {
|
|
34
29
|
$slots: S;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { Plugin } from 'vue';
|
|
2
1
|
import { default as ConfirmModal } from './ConfirmModal.vue';
|
|
3
2
|
import { default as DetailModal } from './DetailModal.vue';
|
|
4
3
|
import { default as ModalShelf } from './ModalShelf.vue';
|
|
5
4
|
import { default as ModalPorter } from './ModalPorter.vue';
|
|
6
|
-
|
|
7
5
|
export * from './types';
|
|
8
6
|
export * from './modal-shelf-types';
|
|
9
7
|
export { ConfirmModal, DetailModal, ModalShelf, ModalPorter };
|
|
10
|
-
/** 弹窗子模块批量注册插件 */
|
|
11
|
-
export declare const modalInstall: Plugin;
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import { PanelEditSwitchProps } from './types';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = PanelEditSwitchProps;
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
editor?(_: {
|
|
8
|
+
data: Record<string, any>;
|
|
9
|
+
}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
8
13
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
"update:editing": (value: boolean) => any;
|
|
17
|
+
submitFinish: (success: boolean, data: Record<string, any>) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
19
|
"onUpdate:editing"?: ((value: boolean) => any) | undefined;
|
|
14
20
|
onSubmitFinish?: ((success: boolean, data: Record<string, any>) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
23
|
export default _default;
|
|
18
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
-
} : {
|
|
23
|
-
type: import('vue').PropType<T[K]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
25
|
new (): {
|
|
29
26
|
$slots: S;
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import { PanelItemProps } from './types';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
2
|
+
type __VLS_Props = PanelItemProps;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
|
+
refresh: () => any;
|
|
5
|
+
"update:editing": (value: boolean) => any;
|
|
6
|
+
submitFinish: (success: boolean, data: Record<string, any>) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
8
|
onRefresh?: (() => any) | undefined;
|
|
9
9
|
"onUpdate:editing"?: ((value: boolean) => any) | undefined;
|
|
10
10
|
onSubmitFinish?: ((success: boolean, data: Record<string, any>) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
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;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { PanelMainProps } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
2
|
+
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<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
4
|
readonly onRefresh?: ((data: T) => any) | undefined;
|
|
6
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>
|
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onRefresh"> & PanelMainProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
7
6
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
8
7
|
attrs: any;
|
|
9
|
-
slots:
|
|
8
|
+
slots: {};
|
|
10
9
|
emit: (e: "refresh", data: T) => void;
|
|
11
10
|
}>) => import('vue').VNode & {
|
|
12
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
12
|
};
|
|
14
13
|
export default _default;
|
|
15
|
-
type
|
|
14
|
+
type __VLS_PrettifyLocal<T> = {
|
|
16
15
|
[K in keyof T]: T[K];
|
|
17
16
|
} & {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { Plugin } from 'vue';
|
|
2
1
|
import { default as PanelMain } from './PanelMain.vue';
|
|
3
2
|
import { default as PanelItem } from './PanelItem.vue';
|
|
4
3
|
import { default as PanelEditSwitch } from './PanelEditSwitch.vue';
|
|
5
|
-
|
|
6
4
|
export * from './types';
|
|
7
5
|
export { PanelMain, PanelItem, PanelEditSwitch };
|
|
8
|
-
/** Panel 组件族一键注册插件(app.use(panelInstall)) */
|
|
9
|
-
export declare const panelInstall: Plugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TableMainProps, TableMainInstance, ElTableColumnProps } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
2
|
+
declare const _default: <T 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<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
4
|
readonly onLoadingChange?: ((value: boolean) => any) | undefined;
|
|
5
|
+
readonly "onUpdate:isAutoRefresh"?: ((value: boolean) => any) | undefined;
|
|
6
6
|
readonly onPageChange?: ((value: number) => any) | undefined;
|
|
7
7
|
readonly onPageSizeChange?: ((value: number) => any) | undefined;
|
|
8
8
|
readonly onDataChange?: ((data: T[]) => any) | undefined;
|
|
@@ -11,31 +11,31 @@ declare const _default: <T extends Record<string, any>, SQ extends Record<string
|
|
|
11
11
|
currentPage: number;
|
|
12
12
|
total: number;
|
|
13
13
|
}) => any) | undefined;
|
|
14
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never
|
|
14
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onLoadingChange" | "onUpdate:isAutoRefresh" | "onPageChange" | "onPageSizeChange" | "onDataChange" | "onPageInfoChange"> & ({
|
|
15
15
|
isAutoRefresh?: boolean;
|
|
16
|
-
}
|
|
16
|
+
} & TableMainProps<T, SQ, F>) & Partial<{}>> & import('vue').PublicProps;
|
|
17
17
|
expose(exposed: import('vue').ShallowUnwrapRef<TableMainInstance>): void;
|
|
18
18
|
attrs: any;
|
|
19
|
-
slots:
|
|
19
|
+
slots: Partial<Record<NonNullable<Uppercase<string> | Exclude<Extract<keyof T, string>, "item" | "custom-view-item"> | undefined>, (_: {
|
|
20
20
|
row: T;
|
|
21
21
|
column: ElTableColumnProps<T, F>;
|
|
22
22
|
$index: number;
|
|
23
23
|
injectInfo: F;
|
|
24
24
|
exposeInfo: TableMainInstance;
|
|
25
|
-
}) => any>> & Partial<Record<NonNullable<"header-undefined" | `header-${Uppercase<string>}` | `header-${Extract<keyof T, string>}`>, (_: {
|
|
25
|
+
}) => any>> & Partial<Record<NonNullable<"header-undefined" | `header-${Uppercase<string>}` | `header-${Exclude<Extract<keyof T, string>, "item" | "custom-view-item">}`>, (_: {
|
|
26
26
|
column: ElTableColumnProps<T, F>;
|
|
27
27
|
$index: number;
|
|
28
28
|
injectInfo: F;
|
|
29
29
|
exposeInfo: TableMainInstance;
|
|
30
30
|
}) => any>> & {
|
|
31
|
-
|
|
32
|
-
fieldComponentMap: Record<string,
|
|
31
|
+
'custom-view-item'?(_: {
|
|
32
|
+
fieldComponentMap: Record<string, Component>;
|
|
33
33
|
row: T;
|
|
34
34
|
index: number;
|
|
35
35
|
selected: boolean;
|
|
36
36
|
toggleSelect: () => void;
|
|
37
37
|
}): any;
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
39
|
emit: {
|
|
40
40
|
(e: "pageChange" | "pageSizeChange", value: number): void;
|
|
41
41
|
(e: "dataChange", data: T[]): void;
|
|
@@ -45,11 +45,11 @@ declare const _default: <T extends Record<string, any>, SQ extends Record<string
|
|
|
45
45
|
currentPage: number;
|
|
46
46
|
total: number;
|
|
47
47
|
}): void;
|
|
48
|
-
};
|
|
48
|
+
} & ((evt: "update:isAutoRefresh", value: boolean) => void);
|
|
49
49
|
}>) => import('vue').VNode & {
|
|
50
50
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
51
51
|
};
|
|
52
52
|
export default _default;
|
|
53
|
-
type
|
|
53
|
+
type __VLS_PrettifyLocal<T> = {
|
|
54
54
|
[K in keyof T]: T[K];
|
|
55
55
|
} & {};
|
|
@@ -1,109 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
17
|
-
showAutoRefresh: {
|
|
18
|
-
type: globalThis.PropType<boolean>;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
refreshInterval: {
|
|
22
|
-
type: globalThis.PropType<number>;
|
|
23
|
-
default: number;
|
|
24
|
-
};
|
|
25
|
-
exportByFe: {
|
|
26
|
-
type: globalThis.PropType<boolean>;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
exportFn: {
|
|
30
|
-
type: globalThis.PropType<(type: ExportType) => Promise<unknown>>;
|
|
31
|
-
};
|
|
32
|
-
exportColumns: {
|
|
33
|
-
type: globalThis.PropType<import('../../utils').ExportColumnConfig[]>;
|
|
34
|
-
};
|
|
35
|
-
leftExtraButtons: {
|
|
36
|
-
type: globalThis.PropType<import('./types').ToolbarButtonConfig<Record<string, any>>[]>;
|
|
37
|
-
};
|
|
38
|
-
rightExtraButtons: {
|
|
39
|
-
type: globalThis.PropType<import('./types').ToolbarButtonConfig<Record<string, any>>[]>;
|
|
40
|
-
};
|
|
41
|
-
tableExpose: {
|
|
42
|
-
type: globalThis.PropType<TableMainInstance>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
exportContext: {
|
|
46
|
-
type: globalThis.PropType<TableExportContext>;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
currentPage: {
|
|
50
|
-
type: globalThis.PropType<number>;
|
|
51
|
-
required: true;
|
|
52
|
-
};
|
|
53
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
54
|
-
isAutoRefresh: import('vue').PropType<boolean>;
|
|
55
|
-
loading: {
|
|
56
|
-
type: globalThis.PropType<boolean>;
|
|
57
|
-
required: true;
|
|
58
|
-
};
|
|
59
|
-
pageSize: {
|
|
60
|
-
type: globalThis.PropType<number>;
|
|
61
|
-
required: true;
|
|
62
|
-
};
|
|
63
|
-
showRefresh: {
|
|
64
|
-
type: globalThis.PropType<boolean>;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
showAutoRefresh: {
|
|
68
|
-
type: globalThis.PropType<boolean>;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
|
-
refreshInterval: {
|
|
72
|
-
type: globalThis.PropType<number>;
|
|
73
|
-
default: number;
|
|
74
|
-
};
|
|
75
|
-
exportByFe: {
|
|
76
|
-
type: globalThis.PropType<boolean>;
|
|
77
|
-
default: boolean;
|
|
78
|
-
};
|
|
79
|
-
exportFn: {
|
|
80
|
-
type: globalThis.PropType<(type: ExportType) => Promise<unknown>>;
|
|
81
|
-
};
|
|
82
|
-
exportColumns: {
|
|
83
|
-
type: globalThis.PropType<import('../../utils').ExportColumnConfig[]>;
|
|
84
|
-
};
|
|
85
|
-
leftExtraButtons: {
|
|
86
|
-
type: globalThis.PropType<import('./types').ToolbarButtonConfig<Record<string, any>>[]>;
|
|
87
|
-
};
|
|
88
|
-
rightExtraButtons: {
|
|
89
|
-
type: globalThis.PropType<import('./types').ToolbarButtonConfig<Record<string, any>>[]>;
|
|
90
|
-
};
|
|
91
|
-
tableExpose: {
|
|
92
|
-
type: globalThis.PropType<TableMainInstance>;
|
|
93
|
-
required: true;
|
|
94
|
-
};
|
|
95
|
-
exportContext: {
|
|
96
|
-
type: globalThis.PropType<TableExportContext>;
|
|
97
|
-
required: true;
|
|
98
|
-
};
|
|
99
|
-
currentPage: {
|
|
100
|
-
type: globalThis.PropType<number>;
|
|
101
|
-
required: true;
|
|
102
|
-
};
|
|
103
|
-
}>> & Readonly<{}>, {
|
|
104
|
-
showRefresh: boolean;
|
|
105
|
-
showAutoRefresh: boolean;
|
|
106
|
-
refreshInterval: number;
|
|
107
|
-
exportByFe: boolean;
|
|
108
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
import { TableToolbarProps } from './types';
|
|
2
|
+
declare const _default: <T 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<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:isAutoRefresh"?: ((value: boolean) => any) | undefined;
|
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:isAutoRefresh"> & ({
|
|
6
|
+
isAutoRefresh?: boolean;
|
|
7
|
+
} & TableToolbarProps<T, SQ, F>) & Partial<{}>> & import('vue').PublicProps;
|
|
8
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: (evt: "update:isAutoRefresh", value: boolean) => void;
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
|
+
};
|
|
109
15
|
export default _default;
|
|
16
|
+
type __VLS_PrettifyLocal<T> = {
|
|
17
|
+
[K in keyof T]: T[K];
|
|
18
|
+
} & {};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { ToolbarButtonConfig, ToolbarButtonContext } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
};
|
|
2
|
+
declare const _default: <T 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<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
4
|
+
buttons: ToolbarButtonConfig<T, SQ, F>[];
|
|
5
|
+
ctx: ToolbarButtonContext<T, SQ, F>;
|
|
6
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
7
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => import('vue').VNode & {
|
|
12
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
13
|
};
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_PrettifyLocal<T> = {
|
|
16
|
+
[K in keyof T]: T[K];
|
|
17
|
+
} & {};
|