@done-coding/admin-core 0.5.0 → 0.5.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/es/bridge/index.mjs +30 -42
  2. package/es/components/app-layout/AppHeader.vue.mjs +2 -2
  3. package/es/components/app-layout/AppHeader.vue2.mjs +16 -19
  4. package/es/components/data-view/DataListView.vue.mjs +2 -2
  5. package/es/components/data-view/DataListView.vue2.mjs +63 -52
  6. package/es/components/data-view/utils.mjs +36 -0
  7. package/es/components/display/TabsMain.vue.mjs +1 -1
  8. package/es/components/list-page/ListPage.vue.mjs +2 -2
  9. package/es/components/list-page/ListPage.vue2.mjs +44 -44
  10. package/es/components/misc/ActionConfirm.vue2.mjs +16 -16
  11. package/es/components/modal/ConfirmModal.vue.mjs +3 -3
  12. package/es/components/modal/DetailModal.vue.mjs +10 -10
  13. package/es/components/table/TableMain.vue.mjs +3 -3
  14. package/es/components/table/TableMain.vue2.mjs +167 -177
  15. package/es/components/table/TableToolbar.vue.mjs +3 -3
  16. package/es/components/table/TableToolbar.vue2.mjs +8 -4
  17. package/es/index.mjs +150 -180
  18. package/es/style.css +1 -1
  19. package/package.json +6 -5
  20. package/types/bridge/index.d.ts +3 -6
  21. package/types/bridge/route.d.ts +0 -1
  22. package/types/components/app-layout/AppBody.vue.d.ts +14 -34
  23. package/types/components/app-layout/AppBreadcrumb.vue.d.ts +6 -19
  24. package/types/components/app-layout/AppFooter.vue.d.ts +1 -1
  25. package/types/components/app-layout/AppHeader.vue.d.ts +15 -39
  26. package/types/components/app-layout/AppLayout.vue.d.ts +17 -50
  27. package/types/components/app-layout/AppPage.vue.d.ts +14 -39
  28. package/types/components/app-layout/AppSidebar.vue.d.ts +15 -37
  29. package/types/components/app-layout/index.d.ts +1 -19
  30. package/types/components/app-layout/types.d.ts +0 -1
  31. package/types/components/data-view/DataListView.vue.d.ts +9 -9
  32. package/types/components/data-view/DataListViewItem.vue.d.ts +19 -17
  33. package/types/components/data-view/index.d.ts +0 -1
  34. package/types/components/data-view/types.d.ts +9 -18
  35. package/types/components/data-view/utils.d.ts +5 -0
  36. package/types/components/display/ActionBtnGroup.vue.d.ts +8 -6
  37. package/types/components/display/HeightProvider.vue.d.ts +15 -31
  38. package/types/components/display/TabsHeader.vue.d.ts +27 -34
  39. package/types/components/display/TabsMain.vue.d.ts +14 -75
  40. package/types/components/display/TabsNaturalFlow.vue.d.ts +11 -5
  41. package/types/components/display/TabsRefineFlow.vue.d.ts +13 -31
  42. package/types/components/display/WatchSize.vue.d.ts +20 -32
  43. package/types/components/display/index.d.ts +0 -3
  44. package/types/components/display/types.d.ts +1 -2
  45. package/types/components/form/FormItem.vue.d.ts +208 -33
  46. package/types/components/form/FormMain.vue.d.ts +6 -7
  47. package/types/components/form/FormRadioGroup.vue.d.ts +14 -31
  48. package/types/components/form/FormSearch.vue.d.ts +5 -6
  49. package/types/components/form/FormSelect.vue.d.ts +19 -40
  50. package/types/components/form/FormTree.vue.d.ts +2037 -32
  51. package/types/components/form/FormVerifyCode.vue.d.ts +6 -6
  52. package/types/components/form/FormVerifyImage.vue.d.ts +6 -6
  53. package/types/components/form/form-search-utils.d.ts +0 -1
  54. package/types/components/form/index.d.ts +0 -3
  55. package/types/components/form/types.d.ts +0 -1
  56. package/types/components/form/utils.d.ts +0 -1
  57. package/types/components/list-page/ListPage.vue.d.ts +32 -33
  58. package/types/components/list-page/index.d.ts +0 -3
  59. package/types/components/list-page/types.d.ts +0 -1
  60. package/types/components/menu/MenuItemSub.vue.d.ts +3 -15
  61. package/types/components/menu/MenuTree.vue.d.ts +117 -19
  62. package/types/components/menu/index.d.ts +0 -3
  63. package/types/components/misc/ActionBtn.vue.d.ts +10 -11
  64. package/types/components/misc/ActionConfirm.vue.d.ts +21 -60
  65. package/types/components/misc/AutoRefresh.vue.d.ts +18 -24
  66. package/types/components/misc/TriggerAutoImport.vue.d.ts +8 -2
  67. package/types/components/misc/index.d.ts +4 -14
  68. package/types/components/misc/types.d.ts +0 -1
  69. package/types/components/modal/DetailModal.vue.d.ts +5 -6
  70. package/types/components/modal/ModalPorter.vue.d.ts +13 -18
  71. package/types/components/modal/ModalShelf.vue.d.ts +13 -18
  72. package/types/components/modal/index.d.ts +0 -4
  73. package/types/components/modal/modal-shelf-core.d.ts +0 -1
  74. package/types/components/modal/modal-shelf-hierarchy.d.ts +0 -1
  75. package/types/components/modal/modal-shelf-types.d.ts +0 -1
  76. package/types/components/modal/types.d.ts +0 -1
  77. package/types/components/panel/PanelEditSwitch.vue.d.ts +17 -20
  78. package/types/components/panel/PanelItem.vue.d.ts +7 -16
  79. package/types/components/panel/PanelMain.vue.d.ts +5 -6
  80. package/types/components/panel/index.d.ts +0 -4
  81. package/types/components/panel/types.d.ts +0 -1
  82. package/types/components/table/TableMain.vue.d.ts +12 -12
  83. package/types/components/table/TableToolbar.vue.d.ts +17 -108
  84. package/types/components/table/ToolbarButtons.vue.d.ts +15 -17
  85. package/types/components/table/index.d.ts +0 -3
  86. package/types/components/table/types.d.ts +59 -19
  87. package/types/config/list-model.d.ts +0 -1
  88. package/types/helpers/form.d.ts +0 -1
  89. package/types/helpers/index.d.ts +0 -10
  90. package/types/helpers/list-helper.d.ts +0 -1
  91. package/types/hooks/menus-dispatch.d.ts +0 -1
  92. package/types/hooks/use-channel-viewport-height.d.ts +0 -1
  93. package/types/index.d.ts +0 -13
  94. package/types/inject/key.d.ts +0 -1
  95. package/types/router/guard/index.d.ts +0 -1
  96. package/types/router/guard/login.d.ts +0 -1
  97. package/types/router/guard/permission.d.ts +0 -1
  98. package/types/router/guard/types.d.ts +0 -1
  99. package/types/store/app.d.ts +1 -2
  100. package/types/store/router-permission.d.ts +0 -1
  101. package/types/store/user.d.ts +0 -1
  102. package/types/types/route.d.ts +0 -1
  103. package/types/utils/export.d.ts +11 -10
  104. package/types/utils/router.d.ts +0 -1
  105. package/es/components/app-layout/index.mjs +0 -32
  106. package/es/components/display/index.mjs +0 -18
  107. package/es/components/form/index.mjs +0 -32
  108. package/es/components/list-page/index.mjs +0 -14
  109. package/es/components/menu/index.mjs +0 -12
  110. package/es/components/misc/ActionButton.vue.mjs +0 -52
  111. package/es/components/misc/ActionButton.vue2.mjs +0 -4
  112. package/es/components/misc/ActionButtonDanger.vue.mjs +0 -32
  113. package/es/components/misc/ActionButtonDanger.vue2.mjs +0 -4
  114. package/es/components/misc/ActionButtonWarn.vue.mjs +0 -32
  115. package/es/components/misc/ActionButtonWarn.vue2.mjs +0 -4
  116. package/es/components/misc/index.mjs +0 -32
  117. package/es/components/modal/index.mjs +0 -23
  118. package/es/components/panel/index.mjs +0 -20
  119. package/es/components/table/index.mjs +0 -14
  120. package/types/components/misc/ActionButton.vue.d.ts +0 -24
  121. package/types/components/misc/ActionButtonDanger.vue.d.ts +0 -19
  122. package/types/components/misc/ActionButtonWarn.vue.d.ts +0 -19
  123. package/types/components/modal/ConfirmModal.vue.d.ts +0 -124
@@ -1,6 +1,5 @@
1
1
  import { VNode } from 'vue';
2
2
  import { ButtonProps } from 'element-plus';
3
-
4
3
  /** ActionConfirm 确认交互形态:弹层气泡 / 居中模态框 */
5
4
  export type ActionConfirmMode = "popconfirm" | "messageConfirm";
6
5
  /**
@@ -1,15 +1,14 @@
1
1
  import { ExtractFormStringifyFromObject } from '../form';
2
2
  import { DetailModalProps } from './types';
3
-
4
- declare const _default: <PO extends Record<string, any>, SO extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
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>) & DetailModalProps<PO, SO>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
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: ReturnType<() => {}>;
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 __VLS_Prettify<T> = {
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
- default?(_: {}): any;
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
6
13
  };
7
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- modalList: RegisterEntry[];
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<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
- modalList: RegisterEntry[];
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
- default?(_: {}): any;
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
6
13
  };
7
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- level: ModalLevel;
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<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
19
- level: ModalLevel;
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,6 +1,5 @@
1
1
  import { Ref } from 'vue';
2
2
  import { ModalLevel, ShelfController, ShelfItem } from './modal-shelf-types';
3
-
4
3
  /** ShelfController 内部扩展:额外暴露渲染用活跃实例列表 */
5
4
  export interface ShelfControllerInternal extends ShelfController {
6
5
  /** 渲染用:当前活跃实例列表(多例数组) */
@@ -1,5 +1,4 @@
1
1
  import { ModalLevel } from './modal-shelf-types';
2
-
3
2
  /**
4
3
  * 层级合法性:app 必最顶层;page 祖先允许 app/page(父子页面嵌套场景),仅禁止 custom;custom 可嵌套任何(含 custom 套 custom)。
5
4
  * 非法仅开发期 console.error,不抛、不静默。
@@ -1,5 +1,4 @@
1
1
  import { Component } from 'vue';
2
-
3
2
  /** 架子层级 */
4
3
  export type ModalLevel = "app" | "page" | "custom";
5
4
  /** 同 key 再 evoke 策略:recreate=关旧重建(默认);update=已开则整体替换 props 不 remount */
@@ -1,6 +1,5 @@
1
1
  import { ExtractFormStringifyFromObject, FormItemConfigList, FormMainProps } from '../form';
2
2
  import { FormProps } from 'element-plus';
3
-
4
3
  /** 详情页类型 */
5
4
  export type DetailType = "add" | "edit" | "read";
6
5
  export interface DetailModalProps<
@@ -1,29 +1,26 @@
1
1
  import { PanelEditSwitchProps } from './types';
2
-
2
+ type __VLS_Props = PanelEditSwitchProps;
3
3
  declare function __VLS_template(): {
4
- default?(_: {}): any;
5
- editor?(_: {
6
- data: Record<string, any>;
7
- }): any;
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
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PanelEditSwitchProps<Record<string, any>>>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- "update:editing": (value: boolean) => void;
11
- submitFinish: (success: boolean, data: Record<string, any>) => void;
12
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PanelEditSwitchProps<Record<string, any>>>>> & Readonly<{
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, true, {}, any>;
16
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
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<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PanelItemProps<Record<string, any>>>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
- "update:editing": (value: boolean) => void;
5
- submitFinish: (success: boolean, data: Record<string, any>) => void;
6
- refresh: () => void;
7
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PanelItemProps<Record<string, any>>>>> & 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, true, {}, any>;
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
- declare const _default: <T extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
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>) & PanelMainProps<T>, 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>, "onRefresh"> & PanelMainProps<T> & Partial<{}>> & import('vue').PublicProps;
7
6
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
8
7
  attrs: any;
9
- slots: ReturnType<() => {}>;
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 __VLS_Prettify<T> = {
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,6 +1,5 @@
1
1
  import { VNode } from 'vue';
2
2
  import { ColProps } from 'element-plus';
3
-
4
3
  /** Panel 只读渲染作用域(render 用) */
5
4
  export interface PanelScope<T extends Record<string, any> = Record<string, any>> {
6
5
  /** 原始数据(只读消费,[MUST NOT] 在 render 内修改) */
@@ -1,8 +1,8 @@
1
1
  import { TableMainProps, TableMainInstance, ElTableColumnProps } from './types';
2
-
3
- declare const _default: <T extends Record<string, any>, SQ extends Record<string, any>, F extends Record<string, any>>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
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>) & (TableMainProps<T, SQ, F> & {
14
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onLoadingChange" | "onUpdate:isAutoRefresh" | "onPageChange" | "onPageSizeChange" | "onDataChange" | "onPageInfoChange"> & ({
15
15
  isAutoRefresh?: boolean;
16
- }), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
16
+ } & TableMainProps<T, SQ, F>) & Partial<{}>> & import('vue').PublicProps;
17
17
  expose(exposed: import('vue').ShallowUnwrapRef<TableMainInstance>): void;
18
18
  attrs: any;
19
- slots: ReturnType<() => Partial<Record<NonNullable<Uppercase<string> | Extract<keyof T, string> | undefined>, (_: {
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
- "custom-view-item"?(_: {
32
- fieldComponentMap: Record<string, globalThis.Component>;
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 __VLS_Prettify<T> = {
53
+ type __VLS_PrettifyLocal<T> = {
54
54
  [K in keyof T]: T[K];
55
55
  } & {};
@@ -1,109 +1,18 @@
1
- import { ExportType, TableExportContext, TableMainInstance } from './types';
2
-
3
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
- isAutoRefresh: import('vue').PropType<boolean>;
5
- loading: {
6
- type: globalThis.PropType<boolean>;
7
- required: true;
8
- };
9
- pageSize: {
10
- type: globalThis.PropType<number>;
11
- required: true;
12
- };
13
- showRefresh: {
14
- type: globalThis.PropType<boolean>;
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
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
- buttons?: ToolbarButtonConfig[];
5
- ctx: ToolbarButtonContext;
6
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
- buttons?: ToolbarButtonConfig[];
8
- ctx: ToolbarButtonContext;
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
- };
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
+ } & {};
@@ -1,6 +1,3 @@
1
- import { Plugin } from 'vue';
2
1
  import { default as TableMain } from './TableMain.vue';
3
-
4
2
  export * from './types';
5
3
  export { TableMain };
6
- export declare const tableInstall: Plugin;