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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/es/bridge/index.mjs +30 -42
  2. package/es/components/app-layout/AppHeader.vue.mjs +2 -2
  3. package/es/components/app-layout/AppHeader.vue2.mjs +16 -19
  4. package/es/components/data-view/DataListView.vue.mjs +2 -2
  5. package/es/components/data-view/DataListView.vue2.mjs +63 -52
  6. package/es/components/data-view/utils.mjs +36 -0
  7. package/es/components/display/TabsMain.vue.mjs +1 -1
  8. package/es/components/list-page/ListPage.vue.mjs +2 -2
  9. package/es/components/list-page/ListPage.vue2.mjs +44 -44
  10. package/es/components/misc/ActionConfirm.vue2.mjs +16 -16
  11. package/es/components/modal/ConfirmModal.vue.mjs +3 -3
  12. package/es/components/modal/DetailModal.vue.mjs +10 -10
  13. package/es/components/table/TableMain.vue.mjs +3 -3
  14. package/es/components/table/TableMain.vue2.mjs +167 -177
  15. package/es/components/table/TableToolbar.vue.mjs +3 -3
  16. package/es/components/table/TableToolbar.vue2.mjs +8 -4
  17. package/es/index.mjs +150 -180
  18. package/es/style.css +1 -1
  19. package/package.json +6 -5
  20. package/types/bridge/index.d.ts +3 -6
  21. package/types/bridge/route.d.ts +0 -1
  22. package/types/components/app-layout/AppBody.vue.d.ts +14 -34
  23. package/types/components/app-layout/AppBreadcrumb.vue.d.ts +6 -19
  24. package/types/components/app-layout/AppFooter.vue.d.ts +1 -1
  25. package/types/components/app-layout/AppHeader.vue.d.ts +15 -39
  26. package/types/components/app-layout/AppLayout.vue.d.ts +17 -50
  27. package/types/components/app-layout/AppPage.vue.d.ts +14 -39
  28. package/types/components/app-layout/AppSidebar.vue.d.ts +15 -37
  29. package/types/components/app-layout/index.d.ts +1 -19
  30. package/types/components/app-layout/types.d.ts +0 -1
  31. package/types/components/data-view/DataListView.vue.d.ts +9 -9
  32. package/types/components/data-view/DataListViewItem.vue.d.ts +19 -17
  33. package/types/components/data-view/index.d.ts +0 -1
  34. package/types/components/data-view/types.d.ts +9 -18
  35. package/types/components/data-view/utils.d.ts +5 -0
  36. package/types/components/display/ActionBtnGroup.vue.d.ts +8 -6
  37. package/types/components/display/HeightProvider.vue.d.ts +15 -31
  38. package/types/components/display/TabsHeader.vue.d.ts +27 -34
  39. package/types/components/display/TabsMain.vue.d.ts +14 -75
  40. package/types/components/display/TabsNaturalFlow.vue.d.ts +11 -5
  41. package/types/components/display/TabsRefineFlow.vue.d.ts +13 -31
  42. package/types/components/display/WatchSize.vue.d.ts +20 -32
  43. package/types/components/display/index.d.ts +0 -3
  44. package/types/components/display/types.d.ts +1 -2
  45. package/types/components/form/FormItem.vue.d.ts +208 -33
  46. package/types/components/form/FormMain.vue.d.ts +6 -7
  47. package/types/components/form/FormRadioGroup.vue.d.ts +14 -31
  48. package/types/components/form/FormSearch.vue.d.ts +5 -6
  49. package/types/components/form/FormSelect.vue.d.ts +19 -40
  50. package/types/components/form/FormTree.vue.d.ts +2037 -32
  51. package/types/components/form/FormVerifyCode.vue.d.ts +6 -6
  52. package/types/components/form/FormVerifyImage.vue.d.ts +6 -6
  53. package/types/components/form/form-search-utils.d.ts +0 -1
  54. package/types/components/form/index.d.ts +0 -3
  55. package/types/components/form/types.d.ts +2 -3
  56. package/types/components/form/utils.d.ts +0 -1
  57. package/types/components/list-page/ListPage.vue.d.ts +32 -33
  58. package/types/components/list-page/index.d.ts +0 -3
  59. package/types/components/list-page/types.d.ts +0 -1
  60. package/types/components/menu/MenuItemSub.vue.d.ts +3 -15
  61. package/types/components/menu/MenuTree.vue.d.ts +117 -19
  62. package/types/components/menu/index.d.ts +0 -3
  63. package/types/components/misc/ActionBtn.vue.d.ts +10 -11
  64. package/types/components/misc/ActionConfirm.vue.d.ts +21 -60
  65. package/types/components/misc/AutoRefresh.vue.d.ts +18 -24
  66. package/types/components/misc/TriggerAutoImport.vue.d.ts +8 -2
  67. package/types/components/misc/index.d.ts +4 -14
  68. package/types/components/misc/types.d.ts +0 -1
  69. package/types/components/modal/DetailModal.vue.d.ts +5 -6
  70. package/types/components/modal/ModalPorter.vue.d.ts +13 -18
  71. package/types/components/modal/ModalShelf.vue.d.ts +13 -18
  72. package/types/components/modal/index.d.ts +0 -4
  73. package/types/components/modal/modal-shelf-core.d.ts +0 -1
  74. package/types/components/modal/modal-shelf-hierarchy.d.ts +0 -1
  75. package/types/components/modal/modal-shelf-types.d.ts +0 -1
  76. package/types/components/modal/types.d.ts +0 -1
  77. package/types/components/panel/PanelEditSwitch.vue.d.ts +17 -20
  78. package/types/components/panel/PanelItem.vue.d.ts +7 -16
  79. package/types/components/panel/PanelMain.vue.d.ts +5 -6
  80. package/types/components/panel/index.d.ts +0 -4
  81. package/types/components/panel/types.d.ts +0 -1
  82. package/types/components/table/TableMain.vue.d.ts +12 -12
  83. package/types/components/table/TableToolbar.vue.d.ts +17 -108
  84. package/types/components/table/ToolbarButtons.vue.d.ts +15 -17
  85. package/types/components/table/index.d.ts +0 -3
  86. package/types/components/table/types.d.ts +59 -19
  87. package/types/config/list-model.d.ts +2 -1
  88. package/types/helpers/form.d.ts +0 -1
  89. package/types/helpers/index.d.ts +0 -10
  90. package/types/helpers/list-helper.d.ts +0 -1
  91. package/types/hooks/menus-dispatch.d.ts +0 -1
  92. package/types/hooks/use-channel-viewport-height.d.ts +0 -1
  93. package/types/index.d.ts +0 -13
  94. package/types/inject/key.d.ts +0 -1
  95. package/types/router/guard/index.d.ts +0 -1
  96. package/types/router/guard/login.d.ts +0 -1
  97. package/types/router/guard/permission.d.ts +0 -1
  98. package/types/router/guard/types.d.ts +0 -1
  99. package/types/store/app.d.ts +1 -2
  100. package/types/store/router-permission.d.ts +0 -1
  101. package/types/store/user.d.ts +0 -1
  102. package/types/types/route.d.ts +0 -1
  103. package/types/utils/export.d.ts +11 -10
  104. package/types/utils/router.d.ts +0 -1
  105. package/es/components/app-layout/index.mjs +0 -32
  106. package/es/components/display/index.mjs +0 -18
  107. package/es/components/form/index.mjs +0 -32
  108. package/es/components/list-page/index.mjs +0 -14
  109. package/es/components/menu/index.mjs +0 -12
  110. package/es/components/misc/ActionButton.vue.mjs +0 -52
  111. package/es/components/misc/ActionButton.vue2.mjs +0 -4
  112. package/es/components/misc/ActionButtonDanger.vue.mjs +0 -32
  113. package/es/components/misc/ActionButtonDanger.vue2.mjs +0 -4
  114. package/es/components/misc/ActionButtonWarn.vue.mjs +0 -32
  115. package/es/components/misc/ActionButtonWarn.vue2.mjs +0 -4
  116. package/es/components/misc/index.mjs +0 -32
  117. package/es/components/modal/index.mjs +0 -23
  118. package/es/components/panel/index.mjs +0 -20
  119. package/es/components/table/index.mjs +0 -14
  120. package/types/components/misc/ActionButton.vue.d.ts +0 -24
  121. package/types/components/misc/ActionButtonDanger.vue.d.ts +0 -19
  122. package/types/components/misc/ActionButtonWarn.vue.d.ts +0 -19
  123. package/types/components/modal/ConfirmModal.vue.d.ts +0 -124
@@ -1,7 +1,7 @@
1
- declare const _default: <P 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<{
2
- props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
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
- }, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
21
+ } & Partial<{}>> & import('vue').PublicProps;
22
22
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
23
23
  attrs: any;
24
- slots: ReturnType<() => {}>;
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 __VLS_Prettify<T> = {
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>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
- props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
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
- }, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
11
+ } & Partial<{}>> & import('vue').PublicProps;
12
12
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
13
13
  attrs: any;
14
- slots: ReturnType<() => {}>;
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 __VLS_Prettify<T> = {
20
+ type __VLS_PrettifyLocal<T> = {
21
21
  [K in keyof T]: T[K];
22
22
  } & {};
@@ -1,6 +1,5 @@
1
1
  import { ColProps } from 'element-plus';
2
2
  import { Breakpoint } from '../../hooks/use-breakpoint';
3
-
4
3
  export declare const computeItemsPerRow: (span: number) => number;
5
4
  /**
6
5
  * 计算按钮 ElCol 的 offset,使其推到当前行最右。
@@ -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,6 +1,5 @@
1
1
  import { FormItemRule, ColProps, FormItemProps } from 'element-plus';
2
2
  import { VNode, ComputedRef } from 'vue';
3
-
4
3
  export type OnlyOneKey<T extends Record<string, any>> = {
5
4
  [K in keyof T]: {
6
5
  [P in K]?: T[P];
@@ -75,9 +74,9 @@ SV extends PK extends keyof SO ? SO[PK] : PV = PK extends keyof SO ? SO[PK] : PV
75
74
  /** 表单初始值 */
76
75
  init?: (() => PV) | PV;
77
76
  /** 表单回显解析处理 */
78
- parse?: (value: any, parseData: Partial<PO>, originData: ExtractFormStringifyFromObject<PO, SO>) => PV | undefined;
77
+ parse?: (value: any, parseData: Partial<PO>, originData: ExtractFormStringifyFromObject<PO, SO>) => PV | void;
79
78
  /** 表单序列化处理 */
80
- stringify?: (value: any, stringifyData: Partial<ExtractFormStringifyFromObject<PO, SO>>, originData: PO) => SV | undefined;
79
+ stringify?: (value: any, stringifyData: Partial<ExtractFormStringifyFromObject<PO, SO>>, originData: PO) => SV | void;
81
80
  /**
82
81
  * 是否在初始化数据、解析数据、序列化数据时忽略处理
83
82
  */
@@ -1,6 +1,5 @@
1
1
  import { DatePickerShortcut, FormItemConfig, FormItemConfigList, ExtractFormStringifyFromObject, FormItemConfigSwiftOptions } from './types';
2
2
  import { ColProps } from 'element-plus';
3
-
4
3
  /**
5
4
  * 将 layout 解析为各屏幕尺寸的显式值:
6
5
  * - 配置 span: xxx 时,xs/sm/md/lg/xl 默认全部视为 xxx
@@ -1,16 +1,20 @@
1
- import { FormItemConfigList, FormSearchSearchType } from '../form';
2
- import { TableMainInstance } from '../table';
1
+ import { FormItemConfigList, FormScope, FormSearchSearchType } from '../form';
2
+ import { TableColumnDefaultScope, TableColumnHeaderScope } from '../table';
3
3
  import { ListPageInnerInjectInfo, ListPageInstance } from './types';
4
-
5
- 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: 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<{
6
- props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
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>) & (Partial<Pick<import('../form').FormSearchProps<PO, SO, {}>, "staticQuery">> & {
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: ReturnType<() => Partial<Record<`form-${Extract<keyof PO, string>}`, (_: any) => any>> & Partial<Record<NonNullable<"table-undefined" | `table-${Uppercase<string>}` | `table-${Extract<keyof T, string>}`>, (_: {
30
- row: T;
31
- column: import('../table').ElTableColumnProps<T, ListPageInnerInjectInfo<PO, F>>;
32
- $index: number;
33
- injectInfo: ListPageInnerInjectInfo<PO, F>;
34
- exposeInfo: TableMainInstance;
35
- }) => any>> & Partial<Record<NonNullable<"table-header-undefined" | `table-header-${Uppercase<string>}` | `table-header-${Extract<keyof T, string>}`>, (_: {
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
- column: import('../table').ElTableColumnProps<T, ListPageInnerInjectInfo<PO, F>>;
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 __VLS_Prettify<T> = {
64
+ type __VLS_PrettifyLocal<T> = {
66
65
  [K in keyof T]: T[K];
67
66
  } & {};
@@ -1,6 +1,3 @@
1
- import { Plugin } from 'vue';
2
1
  import { default as ListPage } from './ListPage.vue';
3
-
4
2
  export * from './types';
5
3
  export { ListPage };
6
- export declare const listPageInstall: Plugin;
@@ -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<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
- menus: RouteMetaResolveRaw[];
14
- menuFlatList: RouteMetaResolveRaw[];
15
- routerMode?: boolean;
16
- collapse?: boolean;
17
- autoClose?: boolean;
18
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
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,6 +1,3 @@
1
- import { Plugin } from 'vue';
2
1
  import { default as MenuTree } from './MenuTree.vue';
3
2
  import { default as MenuItemSub } from './MenuItemSub.vue';
4
-
5
3
  export { MenuTree, MenuItemSub };
6
- export declare const menuInstall: Plugin;
@@ -1,20 +1,19 @@
1
- import { ActionBtnConfirmConfig } from './types';
2
-
3
- declare const _default: <T = void>(__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<{
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>) & (Omit<import('element-plus').ButtonProps, "loading"> & {
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: ReturnType<() => {
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 { ActionConfirmTextResolver } from './types';
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
- default?(_: {}): any;
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ default?(_: {}): any;
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
5
15
  };
6
- declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
7
- show: import('vue').PropType<boolean>;
8
- type: {
9
- type: globalThis.PropType<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
10
- };
11
- title: {
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, true, {}, any>;
64
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
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
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<boolean>;
3
- interval: import('vue').PropType<number>;
4
- refreshFn: {
5
- type: globalThis.PropType<() => Promise<unknown>>;
6
- required: true;
7
- };
8
- enabled: {
9
- type: globalThis.PropType<boolean>;
10
- default: boolean;
11
- };
12
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
13
- modelValue: import('vue').PropType<boolean>;
14
- interval: import('vue').PropType<number>;
15
- refreshFn: {
16
- type: globalThis.PropType<() => Promise<unknown>>;
17
- required: true;
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, true, {}, any>;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
26
20
  export default _default;
@@ -1,8 +1,14 @@
1
1
  declare function __VLS_template(): {
2
- default?(_: {}): any;
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, ReturnType<typeof __VLS_template>>;
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 (): {