@aplus-frontend/ui 0.4.18 → 0.4.20

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 (81) hide show
  1. package/es/src/ap-form/ap-form.vue.d.ts +2 -1
  2. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  3. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
  4. package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
  5. package/es/src/ap-list/index.vue.d.ts +4 -2
  6. package/es/src/ap-table/ap-table.vue.d.ts +9 -2
  7. package/es/src/ap-table/ap-table.vue2.mjs +72 -68
  8. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  9. package/es/src/ap-table/interface.d.ts +9 -0
  10. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  11. package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
  12. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  13. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  14. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  15. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  16. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  17. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
  18. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
  19. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
  20. package/es/src/business/ap-table-modal/index.d.ts +48 -1
  21. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +20 -1
  22. package/es/src/business/hooks/usePageListApTable.d.ts +14 -0
  23. package/es/src/business/hooks/useTableRefresh.d.ts +4 -1
  24. package/es/src/business/hooks/useTableRefresh.mjs +46 -11
  25. package/es/src/config-provider/config-provider-props.d.ts +3 -0
  26. package/es/src/config-provider/config-provider-props.mjs +3 -0
  27. package/es/src/config-provider/config-provider.d.ts +6 -0
  28. package/es/src/config-provider/config-provider.mjs +24 -23
  29. package/es/src/config-provider/hooks/use-global-config.d.ts +3 -0
  30. package/es/src/config-provider/index.d.ts +9 -0
  31. package/es/src/editable-table/form-item.vue.d.ts +4 -2
  32. package/es/src/editable-table/index.vue.d.ts +4 -2
  33. package/es/src/scroll-bar/index.vue.d.ts +1 -1
  34. package/es/src/scroll-bar/index.vue.mjs +51 -49
  35. package/es/src/scroll-bar/internal.vue.mjs +11 -10
  36. package/es/src/scroll-view/index.vue.d.ts +5 -5
  37. package/es/src/tests/wrapper.d.ts +4 -4
  38. package/es/src/utils/index.d.ts +8 -0
  39. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  40. package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
  41. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  42. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  43. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
  44. package/lib/src/ap-list/index.vue.d.ts +4 -2
  45. package/lib/src/ap-table/ap-table.vue.d.ts +9 -2
  46. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  47. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  48. package/lib/src/ap-table/interface.d.ts +9 -0
  49. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  50. package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
  51. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  52. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  53. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  54. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  55. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  56. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
  57. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
  58. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
  59. package/lib/src/business/ap-table-modal/index.d.ts +48 -1
  60. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +20 -1
  61. package/lib/src/business/hooks/usePageListApTable.d.ts +14 -0
  62. package/lib/src/business/hooks/useTableRefresh.d.ts +4 -1
  63. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  64. package/lib/src/config-provider/config-provider-props.d.ts +3 -0
  65. package/lib/src/config-provider/config-provider-props.js +1 -1
  66. package/lib/src/config-provider/config-provider.d.ts +6 -0
  67. package/lib/src/config-provider/config-provider.js +1 -1
  68. package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -0
  69. package/lib/src/config-provider/index.d.ts +9 -0
  70. package/lib/src/editable-table/form-item.vue.d.ts +4 -2
  71. package/lib/src/editable-table/index.vue.d.ts +4 -2
  72. package/lib/src/scroll-bar/index.vue.d.ts +1 -1
  73. package/lib/src/scroll-bar/index.vue.js +1 -1
  74. package/lib/src/scroll-bar/internal.vue.js +1 -1
  75. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  76. package/lib/src/tests/wrapper.d.ts +4 -4
  77. package/lib/src/utils/index.d.ts +8 -0
  78. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  79. package/package.json +2 -2
  80. package/theme/ap-scroll-bar/index.css +0 -31
  81. package/theme/ap-scroll-bar/index.less +0 -39
@@ -1,4 +1,4 @@
1
- import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
1
+ import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, RendererNode, RendererElement, Plugin } from 'vue';
2
2
  export * from './interface';
3
3
  declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
4
4
  attrs: any;
@@ -20,7 +20,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
20
20
  props: {
21
21
  readonly onExpand?: ((...args: any[]) => any) | undefined;
22
22
  readonly onChoose?: ((...args: any[]) => any) | undefined;
23
- type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
23
+ type?: "warning" | "error" | "success" | "info" | "card" | undefined;
24
24
  data?: string | T[] | undefined;
25
25
  prefix?: string | undefined;
26
26
  tipTitle?: string | undefined;
@@ -29,7 +29,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
29
29
  separatorStyle?: CSSProperties | undefined;
30
30
  contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
31
31
  prefixStyle?: CSSProperties | undefined;
32
- rows?: string | number | undefined;
32
+ rows?: (string | number) | undefined;
33
33
  defaultExpand?: boolean | undefined;
34
34
  showIcon?: boolean | undefined;
35
35
  } & PublicProps;
@@ -51,7 +51,9 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
51
51
  }): any;
52
52
  };
53
53
  emit: (event: "expand" | "choose", ...args: any[]) => void;
54
- }>) => VNode & {
54
+ }>) => VNode<RendererNode, RendererElement, {
55
+ [key: string]: any;
56
+ }> & {
55
57
  __ctx?: Awaited<typeof __VLS_setup>;
56
58
  }) & ( Plugin & (new (...args: any[]) => {
57
59
  $props: {
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem } from './interface';
2
- import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
2
+ import { PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, Plugin } from 'vue';
3
3
  export * from './interface';
4
4
  declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
5
5
  attrs: any;
@@ -38,7 +38,9 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
38
38
  (event: "afterEnter", el: Element): void;
39
39
  (event: "afterLeave", el: Element): void;
40
40
  };
41
- }>) => VNode & {
41
+ }>) => VNode<RendererNode, RendererElement, {
42
+ [key: string]: any;
43
+ }> & {
42
44
  __ctx?: Awaited<typeof __VLS_setup>;
43
45
  }) & ( Plugin & (new (...args: any[]) => {
44
46
  $props: {
@@ -1,5 +1,5 @@
1
1
  import { ApSelectItem, ApSelectLayoutProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
3
  declare const _default: <T extends ApSelectItem>(__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
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onOnSelect?: ((value: T) => any) | undefined;
@@ -19,7 +19,9 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
19
19
  (event: "afterEnter", el: Element): void;
20
20
  (event: "afterLeave", el: Element): void;
21
21
  };
22
- }>) => VNode & {
22
+ }>) => VNode<RendererNode, RendererElement, {
23
+ [key: string]: any;
24
+ }> & {
23
25
  __ctx?: Awaited<typeof __VLS_setup>;
24
26
  };
25
27
  export default _default;
@@ -25,6 +25,20 @@ export declare function useCreateTableModal(props: UseCreateTableModalProps): {
25
25
  toggleSelect: (item: any) => void;
26
26
  } | undefined;
27
27
  getShownColumns: () => TableColumnsType<any>;
28
+ scrollBar: {
29
+ x: {
30
+ scroll: (percent: number) => void;
31
+ currentScroll: number;
32
+ visible: boolean;
33
+ rootElement: HTMLElement;
34
+ };
35
+ y: {
36
+ scroll: (percent: number) => void;
37
+ currentScroll: number;
38
+ visible: boolean;
39
+ rootElement: HTMLElement;
40
+ };
41
+ };
28
42
  } | null | undefined;
29
43
  readonly isDestroyed: true;
30
44
  };
@@ -23,6 +23,20 @@ export declare function useTableModal<TableRowType = Record<string, any>>(props:
23
23
  toggleSelect: (item: any) => void;
24
24
  } | undefined;
25
25
  getShownColumns: () => TableColumnsType<any>;
26
+ scrollBar: {
27
+ x: {
28
+ scroll: (percent: number) => void;
29
+ currentScroll: number;
30
+ visible: boolean;
31
+ rootElement: HTMLElement;
32
+ };
33
+ y: {
34
+ scroll: (percent: number) => void;
35
+ currentScroll: number;
36
+ visible: boolean;
37
+ rootElement: HTMLElement;
38
+ };
39
+ };
26
40
  } | null | undefined;
27
41
  isDestroyed: true;
28
42
  open: (options?: OpenOptions) => Promise<void>;
@@ -22,6 +22,20 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
22
22
  toggleSelect: (item: any) => void;
23
23
  } | undefined;
24
24
  getShownColumns: () => TableColumnsType<any>;
25
+ scrollBar: {
26
+ x: {
27
+ scroll: (percent: number) => void;
28
+ currentScroll: number;
29
+ visible: boolean;
30
+ rootElement: HTMLElement;
31
+ };
32
+ y: {
33
+ scroll: (percent: number) => void;
34
+ currentScroll: number;
35
+ visible: boolean;
36
+ rootElement: HTMLElement;
37
+ };
38
+ };
25
39
  } | null | undefined;
26
40
  isDestroyed: true;
27
41
  open: (selected?: any[], options?: OpenOptions) => Promise<{
@@ -1,9 +1,10 @@
1
1
  import { useTableModal } from './hooks/use-table-modal';
2
2
  import { useTableSelectModal } from './hooks/use-table-select-modal';
3
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ShallowUnwrapRef, ComputedRef, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
3
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ShallowUnwrapRef, ComputedRef, Ref, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
4
4
  import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
5
5
  import { Recordable } from '../../type';
6
6
  import { TableColumnsType } from '@aplus-frontend/antdv';
7
+ import { ScrollBarExpose } from '../..';
7
8
  /**
8
9
  *
9
10
  */
@@ -31,6 +32,20 @@ declare const ApTableModal: {
31
32
  toggleSelect: (item: any) => void;
32
33
  } | undefined;
33
34
  getShownColumns: () => TableColumnsType<any>;
35
+ scrollBar: {
36
+ x: {
37
+ scroll: (percent: number) => void;
38
+ currentScroll: number;
39
+ visible: boolean;
40
+ rootElement: HTMLElement;
41
+ };
42
+ y: {
43
+ scroll: (percent: number) => void;
44
+ currentScroll: number;
45
+ visible: boolean;
46
+ rootElement: HTMLElement;
47
+ };
48
+ };
34
49
  } | null;
35
50
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
36
51
  finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
@@ -70,6 +85,10 @@ declare const ApTableModal: {
70
85
  toggleSelect: (item: any) => void;
71
86
  selectedRows: ComputedRef<any[]>;
72
87
  };
88
+ scrollBar: {
89
+ x: Ref< ScrollBarExpose | undefined, ScrollBarExpose | undefined>;
90
+ y: undefined;
91
+ };
73
92
  }> | null;
74
93
  }, any, ComponentProvideOptions, {
75
94
  P: {};
@@ -101,6 +120,20 @@ declare const ApTableModal: {
101
120
  toggleSelect: (item: any) => void;
102
121
  } | undefined;
103
122
  getShownColumns: () => TableColumnsType<any>;
123
+ scrollBar: {
124
+ x: {
125
+ scroll: (percent: number) => void;
126
+ currentScroll: number;
127
+ visible: boolean;
128
+ rootElement: HTMLElement;
129
+ };
130
+ y: {
131
+ scroll: (percent: number) => void;
132
+ currentScroll: number;
133
+ visible: boolean;
134
+ rootElement: HTMLElement;
135
+ };
136
+ };
104
137
  } | null;
105
138
  }, {}, {}, {}, {
106
139
  mask: boolean;
@@ -146,6 +179,20 @@ declare const ApTableModal: {
146
179
  toggleSelect: (item: any) => void;
147
180
  } | undefined;
148
181
  getShownColumns: () => TableColumnsType<any>;
182
+ scrollBar: {
183
+ x: {
184
+ scroll: (percent: number) => void;
185
+ currentScroll: number;
186
+ visible: boolean;
187
+ rootElement: HTMLElement;
188
+ };
189
+ y: {
190
+ scroll: (percent: number) => void;
191
+ currentScroll: number;
192
+ visible: boolean;
193
+ rootElement: HTMLElement;
194
+ };
195
+ };
149
196
  } | null;
150
197
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
151
198
  finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
@@ -1,7 +1,8 @@
1
1
  import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ShallowUnwrapRef, ComputedRef } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ShallowUnwrapRef, ComputedRef, Ref } from 'vue';
3
3
  import { Recordable } from '../../type';
4
4
  import { TableColumnsType } from '@aplus-frontend/antdv';
5
+ import { ScrollBarExpose } from '../../scroll-bar';
5
6
  type __VLS_Props = ApTableModalProps;
6
7
  declare const _default: DefineComponent<__VLS_Props, {
7
8
  open: <T>(selected?: any[], options?: OpenOptions) => Promise<OpenReturnType<T>>;
@@ -24,6 +25,20 @@ declare const _default: DefineComponent<__VLS_Props, {
24
25
  toggleSelect: (item: any) => void;
25
26
  } | undefined;
26
27
  getShownColumns: () => TableColumnsType<any>;
28
+ scrollBar: {
29
+ x: {
30
+ scroll: (percent: number) => void;
31
+ currentScroll: number;
32
+ visible: boolean;
33
+ rootElement: HTMLElement;
34
+ };
35
+ y: {
36
+ scroll: (percent: number) => void;
37
+ currentScroll: number;
38
+ visible: boolean;
39
+ rootElement: HTMLElement;
40
+ };
41
+ };
27
42
  } | null;
28
43
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
29
44
  finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
@@ -65,6 +80,10 @@ declare const _default: DefineComponent<__VLS_Props, {
65
80
  toggleSelect: (item: any) => void;
66
81
  selectedRows: ComputedRef<any[]>;
67
82
  };
83
+ scrollBar: {
84
+ x: Ref< ScrollBarExpose | undefined, ScrollBarExpose | undefined>;
85
+ y: undefined;
86
+ };
68
87
  }> | null;
69
88
  }, any>;
70
89
  export default _default;
@@ -49,6 +49,20 @@ export declare function usePageListApTable(props?: UsePageListApTable): [ApTable
49
49
  toggleSelect: (item: any) => void;
50
50
  } | undefined;
51
51
  getShownColumns: () => TableColumnsType<any>;
52
+ scrollBar: {
53
+ x: {
54
+ scroll: (percent: number) => void;
55
+ currentScroll: number;
56
+ visible: boolean;
57
+ rootElement: HTMLElement;
58
+ };
59
+ y: {
60
+ scroll: (percent: number) => void;
61
+ currentScroll: number;
62
+ visible: boolean;
63
+ rootElement: HTMLElement;
64
+ };
65
+ };
52
66
  } | null | undefined;
53
67
  getSearchFormValuesAndSorted: (transform?: boolean) => any;
54
68
  clearSelection: () => void;
@@ -14,4 +14,7 @@ export interface UseTableRefreshOption {
14
14
  */
15
15
  refreshBefore?: () => boolean;
16
16
  }
17
- export declare function useTableRefresh(option?: UseTableRefreshOption): void;
17
+ export declare function useTableRefresh(option?: UseTableRefreshOption): {
18
+ tableScrollX: Ref<number, number>;
19
+ tableScrollY: Ref<number, number>;
20
+ };
@@ -1,16 +1,51 @@
1
- import { onMounted as c, nextTick as l, onActivated as T } from "vue";
2
- function m(e) {
3
- const a = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", r = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
1
+ import { ref as h, onMounted as R, nextTick as g, onActivated as x, onDeactivated as y } from "vue";
2
+ import "../../index.mjs";
3
+ import { useGlobalConfig as D } from "../../config-provider/hooks/use-global-config.mjs";
4
+ function v(e) {
5
+ return document.querySelector(e);
6
+ }
7
+ function q(e = ".demo") {
8
+ const l = v(e);
9
+ return l == null ? void 0 : l.scrollTop;
10
+ }
11
+ function A(e, l = ".demo") {
12
+ const s = v(l);
13
+ s && (s.scrollTop = e);
14
+ }
15
+ function N(e) {
16
+ const l = D("scrollYDomName");
4
17
  let s = !0;
5
- c(() => {
6
- l(() => {
7
- s = !1;
18
+ const d = h(0), f = h(0), o = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", T = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
19
+ let b = !0;
20
+ const n = (c) => {
21
+ if (s === !1) return;
22
+ const r = c.target;
23
+ f.value = r.scrollTop;
24
+ };
25
+ return R(() => {
26
+ g(() => {
27
+ b = !1;
28
+ });
29
+ }), x(() => {
30
+ setTimeout(() => {
31
+ const r = v(l.value);
32
+ r && r.addEventListener("scroll", n);
33
+ });
34
+ const c = T == null ? void 0 : T();
35
+ b || c && setTimeout(() => {
36
+ var r, a, u, t, S, m, Y;
37
+ s = !0, (a = (r = e == null ? void 0 : e.apTableRef) == null ? void 0 : r.value) == null || a[o](), (Y = (m = (S = (t = (u = e == null ? void 0 : e.apTableRef) == null ? void 0 : u.value) == null ? void 0 : t.scrollBar) == null ? void 0 : S.x) == null ? void 0 : m.scroll) == null || Y.call(m, d.value), A(f.value, l.value);
8
38
  });
9
- }), T(() => {
10
- var u, f;
11
- s || r != null && r() && ((f = (u = e == null ? void 0 : e.apTableRef) == null ? void 0 : u.value) == null || f[a]());
12
- });
39
+ }), y(() => {
40
+ var r, a, u, t;
41
+ s = !1, d.value = ((t = (u = (a = (r = e == null ? void 0 : e.apTableRef) == null ? void 0 : r.value) == null ? void 0 : a.scrollBar) == null ? void 0 : u.x) == null ? void 0 : t.currentScroll) ?? 0, f.value = q(l.value) ?? 0;
42
+ const c = v(l.value);
43
+ c && c.removeEventListener("scroll", n);
44
+ }), {
45
+ tableScrollX: d,
46
+ tableScrollY: f
47
+ };
13
48
  }
14
49
  export {
15
- m as useTableRefresh
50
+ N as useTableRefresh
16
51
  };
@@ -163,5 +163,8 @@ export declare const configProviderProps: () => {
163
163
  type: PropType<ExportField>;
164
164
  default: boolean;
165
165
  };
166
+ scrollYDomName: {
167
+ type: StringConstructor;
168
+ };
166
169
  };
167
170
  export type ConfigProviderProps = Partial<ExtractPropTypes<ReturnType<typeof configProviderProps>>>;
@@ -40,6 +40,9 @@ const p = () => ({
40
40
  type: Object,
41
41
  default: !1
42
42
  },
43
+ scrollYDomName: {
44
+ type: String
45
+ },
43
46
  ...e()
44
47
  });
45
48
  export {
@@ -163,6 +163,9 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
163
163
  type: PropType<ExportField>;
164
164
  default: boolean;
165
165
  };
166
+ scrollYDomName: {
167
+ type: StringConstructor;
168
+ };
166
169
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
167
170
  iconPrefixCls: StringConstructor;
168
171
  getTargetContainer: {
@@ -313,6 +316,9 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
313
316
  type: PropType<ExportField>;
314
317
  default: boolean;
315
318
  };
319
+ scrollYDomName: {
320
+ type: StringConstructor;
321
+ };
316
322
  }>> & Readonly<{}>, {
317
323
  input: {
318
324
  autocomplete?: string;
@@ -1,46 +1,47 @@
1
- import { isVNode as v, ref as V, defineComponent as M, computed as n, unref as r, watch as d, createVNode as P, renderSlot as b } from "vue";
2
- import { ConfigProvider as U } from "@aplus-frontend/antdv";
3
- import { useGlobalConfig as f, provideGlobalConfig as A } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as S } from "./config-provider-props.mjs";
5
- import { mergeAntdProvideConfig as T } from "../utils/config-provider-preset.mjs";
6
- import { generateCssVar as w, aplusCssVar as y, adminCssVar as D, setCSSVariables as E } from "./css-var.mjs";
7
- import { DEFAULT_NAMESPACE as N, DEFAULT_UIMODE as F } from "./constants.mjs";
1
+ import { isVNode as v, ref as V, defineComponent as M, computed as n, unref as r, watch as u, createVNode as P, renderSlot as b } from "vue";
2
+ import { ConfigProvider as D } from "@aplus-frontend/antdv";
3
+ import { useGlobalConfig as c, provideGlobalConfig as N } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as U } from "./config-provider-props.mjs";
5
+ import { mergeAntdProvideConfig as A } from "../utils/config-provider-preset.mjs";
6
+ import { generateCssVar as S, aplusCssVar as T, adminCssVar as w, setCSSVariables as y } from "./css-var.mjs";
7
+ import { DEFAULT_NAMESPACE as E, DEFAULT_UIMODE as F } from "./constants.mjs";
8
8
  function L(e) {
9
9
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !v(e);
10
10
  }
11
- const c = V({}), $ = /* @__PURE__ */ M({
11
+ const d = V({}), I = /* @__PURE__ */ M({
12
12
  name: "AplusConfigProvider",
13
- props: S(),
13
+ props: U(),
14
14
  setup(e, {
15
- slots: l
15
+ slots: f
16
16
  }) {
17
- const i = f("namespace"), a = f("uiMode"), s = n(() => e.namespace ? e.namespace : r(i) ? r(i) : N), u = n(() => e.uiMode ? e.uiMode : r(a) ? r(a) : F), m = n(() => ({
17
+ const a = c("namespace"), i = c("uiMode"), s = n(() => e.namespace ? e.namespace : r(a) ? r(a) : E), l = n(() => e.uiMode ? e.uiMode : r(i) ? r(i) : F), m = n(() => ({
18
18
  namespace: r(s),
19
19
  aplusLocale: e.aplusLocale,
20
20
  api: e.api,
21
- uiMode: r(u),
21
+ uiMode: r(l),
22
22
  apUpload: e.apUpload,
23
23
  apDescriptions: e.apDescriptions,
24
24
  valueTypeMap: e.valueTypeMap,
25
25
  downloadCenterTriggerConfig: e.downloadCenterTriggerConfig,
26
- exportField: e.exportField
27
- })), t = A(m);
28
- return d(() => e, (o) => {
29
- c.value = T(o);
26
+ exportField: e.exportField,
27
+ scrollYDomName: e.scrollYDomName
28
+ })), t = N(m);
29
+ return u(() => e, (o) => {
30
+ d.value = A(o);
30
31
  }, {
31
32
  deep: !0,
32
33
  immediate: !0
33
- }), typeof window < "u" && d(() => [r(u), e.cssVar], ([o, p]) => {
34
- const C = w(p), g = {
35
- ...o === "aplus" ? y : D,
34
+ }), typeof window < "u" && u(() => [r(l), e.cssVar], ([o, p]) => {
35
+ const C = S(p), g = {
36
+ ...o === "aplus" ? T : w,
36
37
  ...C
37
38
  };
38
- E(g);
39
+ y(g);
39
40
  }, {
40
41
  immediate: !0
41
42
  }), () => {
42
43
  let o;
43
- return P(U, c.value, L(o = b(l, "default", {
44
+ return P(D, d.value, L(o = b(f, "default", {
44
45
  config: t == null ? void 0 : t.value
45
46
  })) ? o : {
46
47
  default: () => [o]
@@ -49,6 +50,6 @@ const c = V({}), $ = /* @__PURE__ */ M({
49
50
  }
50
51
  });
51
52
  export {
52
- $ as ConfigProvider,
53
- c as globalConfigCached
53
+ I as ConfigProvider,
54
+ d as globalConfigCached
54
55
  };
@@ -165,4 +165,7 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
165
165
  type: PropType<ExportField>;
166
166
  default: boolean;
167
167
  };
168
+ scrollYDomName: {
169
+ type: StringConstructor;
170
+ };
168
171
  }>>>> | undefined;
@@ -273,6 +273,9 @@ export declare const APConfigProvider: {
273
273
  type: PropType<ExportField>;
274
274
  default: boolean;
275
275
  };
276
+ scrollYDomName: {
277
+ type: StringConstructor;
278
+ };
276
279
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
277
280
  input: {
278
281
  autocomplete?: string;
@@ -679,6 +682,9 @@ export declare const APConfigProvider: {
679
682
  type: PropType<ExportField>;
680
683
  default: boolean;
681
684
  };
685
+ scrollYDomName: {
686
+ type: StringConstructor;
687
+ };
682
688
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
683
689
  input: {
684
690
  autocomplete?: string;
@@ -977,6 +983,9 @@ export declare const APConfigProvider: {
977
983
  type: PropType<ExportField>;
978
984
  default: boolean;
979
985
  };
986
+ scrollYDomName: {
987
+ type: StringConstructor;
988
+ };
980
989
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
981
990
  input: {
982
991
  autocomplete?: string;
@@ -1,6 +1,6 @@
1
1
  import { EditableColumnType, EditableTableFormItemProps } from './interface';
2
2
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
4
4
  import { UnwrapRefSimple } from '@vue/reactivity';
5
5
  declare const _default: <RecordType = 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<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
@@ -48,7 +48,9 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
48
48
  }) => void;
49
49
  };
50
50
  emit: {};
51
- }>) => VNode & {
51
+ }>) => VNode<RendererNode, RendererElement, {
52
+ [key: string]: any;
53
+ }> & {
52
54
  __ctx?: Awaited<typeof __VLS_setup>;
53
55
  };
54
56
  export default _default;
@@ -2,7 +2,7 @@ import { EditableTableProps, EditableColumnType } from './interface';
2
2
  import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
3
3
  import { Recordable } from '../type';
4
4
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
5
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
5
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
6
6
  declare const _default: <RecordType extends Recordable = 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
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
8
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -53,7 +53,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
53
53
  }) => void;
54
54
  };
55
55
  emit: (event: "update:value", ...args: any[]) => void;
56
- }>) => VNode & {
56
+ }>) => VNode<RendererNode, RendererElement, {
57
+ [key: string]: any;
58
+ }> & {
57
59
  __ctx?: Awaited<typeof __VLS_setup>;
58
60
  };
59
61
  export default _default;
@@ -2,7 +2,7 @@ import { ScrollBarProps, ScrollBarDirection, InternalScrollBarProps } from './in
2
2
  import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives } from 'vue';
3
3
  declare const _default: DefineComponent<ScrollBarProps, {
4
4
  currentScroll: ComputedRef<number | undefined>;
5
- scroll: ((percent: number) => void) | undefined;
5
+ scroll: (percent: number) => void | undefined;
6
6
  visible: ComputedRef<boolean>;
7
7
  rootElement: ComputedRef<HTMLElement | undefined>;
8
8
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ScrollBarProps> & Readonly<{}>, {