@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.
- package/es/src/ap-form/ap-form.vue.d.ts +2 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-table/ap-table.vue.d.ts +9 -2
- package/es/src/ap-table/ap-table.vue2.mjs +72 -68
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/interface.d.ts +9 -0
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/index.d.ts +48 -1
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +20 -1
- package/es/src/business/hooks/usePageListApTable.d.ts +14 -0
- package/es/src/business/hooks/useTableRefresh.d.ts +4 -1
- package/es/src/business/hooks/useTableRefresh.mjs +46 -11
- package/es/src/config-provider/config-provider-props.d.ts +3 -0
- package/es/src/config-provider/config-provider-props.mjs +3 -0
- package/es/src/config-provider/config-provider.d.ts +6 -0
- package/es/src/config-provider/config-provider.mjs +24 -23
- package/es/src/config-provider/hooks/use-global-config.d.ts +3 -0
- package/es/src/config-provider/index.d.ts +9 -0
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/scroll-bar/index.vue.d.ts +1 -1
- package/es/src/scroll-bar/index.vue.mjs +51 -49
- package/es/src/scroll-bar/internal.vue.mjs +11 -10
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/utils/index.d.ts +8 -0
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-table/ap-table.vue.d.ts +9 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/interface.d.ts +9 -0
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/index.d.ts +48 -1
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +20 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +14 -0
- package/lib/src/business/hooks/useTableRefresh.d.ts +4 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +3 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +6 -0
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -0
- package/lib/src/config-provider/index.d.ts +9 -0
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/scroll-bar/index.vue.d.ts +1 -1
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/index.d.ts +8 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/package.json +2 -2
- package/theme/ap-scroll-bar/index.css +0 -31
- package/theme/ap-scroll-bar/index.less +0 -39
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApExpandAlertProps } 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 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
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
@@ -23,7 +23,9 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
23
23
|
}): any;
|
|
24
24
|
};
|
|
25
25
|
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
26
|
-
}>) => VNode
|
|
26
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}> & {
|
|
27
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
30
|
};
|
|
29
31
|
export default _default;
|
|
@@ -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
|
|
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):
|
|
17
|
+
export declare function useTableRefresh(option?: UseTableRefreshOption): {
|
|
18
|
+
tableScrollX: Ref<number, number>;
|
|
19
|
+
tableScrollY: Ref<number, number>;
|
|
20
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue");require("../../index.js");const y=require("../../config-provider/hooks/use-global-config.js");function b(e){return document.querySelector(e)}function R(e=".demo"){const l=b(e);return l==null?void 0:l.scrollTop}function Y(e,l=".demo"){const s=b(l);s&&(s.scrollTop=e)}function q(e){const l=y.useGlobalConfig("scrollYDomName");let s=!0;const d=c.ref(0),v=c.ref(0),h=(["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);let n=!0;const S=u=>{if(s===!1)return;const r=u.target;v.value=r.scrollTop};return c.onMounted(()=>{c.nextTick(()=>{n=!1})}),c.onActivated(()=>{setTimeout(()=>{const r=b(l.value);r&&r.addEventListener("scroll",S)});const u=T==null?void 0:T();n||u&&setTimeout(()=>{var r,a,t,f,g,m,o;s=!0,(a=(r=e==null?void 0:e.apTableRef)==null?void 0:r.value)==null||a[h](),(o=(m=(g=(f=(t=e==null?void 0:e.apTableRef)==null?void 0:t.value)==null?void 0:f.scrollBar)==null?void 0:g.x)==null?void 0:m.scroll)==null||o.call(m,d.value),Y(v.value,l.value)})}),c.onDeactivated(()=>{var r,a,t,f;s=!1,d.value=((f=(t=(a=(r=e==null?void 0:e.apTableRef)==null?void 0:r.value)==null?void 0:a.scrollBar)==null?void 0:t.x)==null?void 0:f.currentScroll)??0,v.value=R(l.value)??0;const u=b(l.value);u&&u.removeEventListener("scroll",S)}),{tableScrollX:d,tableScrollY:v}}exports.useTableRefresh=q;
|
|
@@ -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>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/config-provider/context"),t=()=>({aplusLocale:{type:Object},namespace:{type:String},api:{type:Object,default:()=>({})},uiMode:{type:String},apUpload:{type:Object,default:()=>({})},apDescriptions:{type:Object,default:()=>({})},valueTypeMap:{type:Object,default:()=>({})},downloadCenterTriggerConfig:{type:Object,default:()=>({})},cssVar:{type:Object,default:()=>({})},exportField:{type:Object,default:!1},...e.configProviderProps()});exports.configProviderProps=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/config-provider/context"),t=()=>({aplusLocale:{type:Object},namespace:{type:String},api:{type:Object,default:()=>({})},uiMode:{type:String},apUpload:{type:Object,default:()=>({})},apDescriptions:{type:Object,default:()=>({})},valueTypeMap:{type:Object,default:()=>({})},downloadCenterTriggerConfig:{type:Object,default:()=>({})},cssVar:{type:Object,default:()=>({})},exportField:{type:Object,default:!1},scrollYDomName:{type:String},...e.configProviderProps()});exports.configProviderProps=t;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),v=require("@aplus-frontend/antdv"),i=require("./hooks/use-global-config.js"),P=require("./config-provider-props.js"),b=require("../utils/config-provider-preset.js"),o=require("./css-var.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),v=require("@aplus-frontend/antdv"),i=require("./hooks/use-global-config.js"),P=require("./config-provider-props.js"),b=require("../utils/config-provider-preset.js"),o=require("./css-var.js"),l=require("./constants.js");function V(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const a=r.ref({}),M=r.defineComponent({name:"AplusConfigProvider",props:P.configProviderProps(),setup(e,{slots:d}){const u=i.useGlobalConfig("namespace"),c=i.useGlobalConfig("uiMode"),f=r.computed(()=>e.namespace?e.namespace:r.unref(u)?r.unref(u):l.DEFAULT_NAMESPACE),s=r.computed(()=>e.uiMode?e.uiMode:r.unref(c)?r.unref(c):l.DEFAULT_UIMODE),g=r.computed(()=>({namespace:r.unref(f),aplusLocale:e.aplusLocale,api:e.api,uiMode:r.unref(s),apUpload:e.apUpload,apDescriptions:e.apDescriptions,valueTypeMap:e.valueTypeMap,downloadCenterTriggerConfig:e.downloadCenterTriggerConfig,exportField:e.exportField,scrollYDomName:e.scrollYDomName})),t=i.provideGlobalConfig(g);return r.watch(()=>e,n=>{a.value=b.mergeAntdProvideConfig(n)},{deep:!0,immediate:!0}),typeof window<"u"&&r.watch(()=>[r.unref(s),e.cssVar],([n,C])=>{const m=o.generateCssVar(C),p={...n==="aplus"?o.aplusCssVar:o.adminCssVar,...m};o.setCSSVariables(p)},{immediate:!0}),()=>{let n;return r.createVNode(v.ConfigProvider,a.value,V(n=r.renderSlot(d,"default",{config:t==null?void 0:t.value}))?n:{default:()=>[n]})}}});exports.ConfigProvider=M;exports.globalConfigCached=a;
|
|
@@ -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: (
|
|
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<{}>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue");require("./internal.vue2.js");const h=require("lodash-unified"),u=require("./utils/index.js"),_=require("@vueuse/core"),g=require("./internal.vue.js"),m=r.defineComponent({name:"ScrollBar",__name:"index",props:{scrollContainer:{},extraSize:{default:0},direction:{default:"vertical"},scroll:{},barLength:{default:30},width:{},barColor:{},trackColor:{},trackWidth:{},disabled:{type:Boolean,default:!1},showTrack:{type:Boolean,default:!0},trackSpeed:{default:2},onScrollStart:{},onScroll:{},onScrollEnd:{}},setup(f,{expose:d}){const l=f,n=r.toRef(l,"scrollContainer"),a=r.ref(),c=r.ref(l.barLength);function S(){if(!n.value||!a.value)return;const{totalSize:e,visibleSize:t,distance:o}=u.getScrollable(n.value,l.direction),i=o/(e+l.extraSize-t||1)*100;a.value.scroll(i)}function s(){const{visibleSize:e,totalSize:t}=u.getScrollable(n.value,l.direction);c.value=u.ensureRangeValue(e/(t+l.extraSize||1)*100)}_.useResizeObserver(n,()=>{s()}),r.watchEffect(()=>{const e=r.unref(n.value);e&&(s(),e.addEventListener("scroll",S))},{flush:"post"}),r.watch(()=>l.barLength,e=>{c.value=e});function v(e){const t=r.unref(n);if(!t)return;const{totalSize:o,visibleSize:i,topOrLeft:p}=u.getScrollable(t,l.direction);if(o<=i)return;const b=`scroll${p}`;t[b]=e*(o+l.extraSize-i)/100}return d({currentScroll:r.computed(()=>{var e;return r.unref((e=a.value)==null?void 0:e.currentScroll)}),scroll:e=>{var t,o;return(o=(t=a.value)==null?void 0:t.scroll)==null?void 0:o.call(t,e)},visible:r.computed(()=>c.value<100),rootElement:r.computed(()=>{var e;return r.unref((e=a.value)==null?void 0:e.container)})}),(e,t)=>c.value!==100?(r.openBlock(),r.createBlock(g.default,r.mergeProps({key:0,ref_key:"barRef",ref:a},r.unref(h.omit)(l,["onScroll","extraSize","scrollContainer"]),{"bar-length":c.value,onScroll:v}),null,16,["bar-length"])):r.createCommentVNode("",!0)}});exports.default=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../config-provider/index.js");const T=require("./hooks/use-track.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../config-provider/index.js");const T=require("./hooks/use-track.js"),y=require("./utils/index.js"),P=require("../config-provider/hooks/use-namespace.js"),B=t.defineComponent({__name:"internal",props:{direction:{default:"vertical"},scroll:{default:0},barLength:{default:35},width:{},barColor:{},trackColor:{},trackWidth:{},disabled:{type:Boolean,default:!1},showTrack:{type:Boolean,default:!0},trackSpeed:{default:2},onScrollStart:{},onScroll:{},onScrollEnd:{}},setup(E,{expose:p}){const n=E,h=t.ref(),c=t.ref(),l=t.ref(),{b:L,e:b,m:C,em:u,cssVar:R}=P.useNamespace("scroll-bar"),o=t.ref(n.scroll),{handleMouseDown:k}=T.useTrack({currentScroll:o,track:c,bar:l,type:t.toRef(n,"direction"),trackSpeed:t.toRef(n,"trackSpeed"),barLength:t.toRef(n,"barLength"),disabled:t.toRef(n,"disabled"),onDown:e=>{var r;(r=n.onScrollStart)==null||r.call(n,e)},onUp:e=>{var r;(r=n.onScrollEnd)==null||r.call(n,e)},onScroll:e=>{var r;(r=n.onScroll)==null||r.call(n,e)}});t.watch(()=>n.scroll,e=>{o.value=e}),t.watchEffect(()=>{if(!t.unref(l))return;const e=`${(100-n.barLength)*o.value/n.barLength}%`,r=`${n.barLength}%`;n.direction==="vertical"?(l.value.style.height=r,l.value.style.transform=`translate3d(0, ${e}, 0)`):(l.value.style.width=r,l.value.style.transform=`translate3d(${e}, 0, 0)`)});let f,s,d;function M(e){var w;if(n.disabled||e.button!==0)return;e.preventDefault(),e.stopPropagation();const r=t.unref(c),i=t.unref(l);if(!r||!i)return;document.addEventListener("pointermove",v),document.addEventListener("pointerup",m);const a=r.getBoundingClientRect(),S=i.getBoundingClientRect();n.direction==="vertical"?(f=a.height,s=S.top-a.top,d=e.clientY):(f=a.width,s=S.left-a.left,d=e.clientX),(w=n.onScrollStart)==null||w.call(n,t.unref(o))}function v(e){var a;e.stopPropagation(),e.preventDefault();let r;n.direction==="vertical"?r=s+e.clientY-d:r=s+e.clientX-d;const i=r/f/(100-n.barLength)*1e4;o.value=y.ensureRangeValue(i),(a=n.onScroll)==null||a.call(n,t.unref(o))}function m(e){var r;e.preventDefault(),document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",m),(r=n.onScrollEnd)==null||r.call(n,t.unref(o))}function g(e){e.cancelable&&(e.stopPropagation(),e.preventDefault())}function D(e){var r;Math.abs(t.unref(o)-e)<=.001||(o.value=y.ensureRangeValue(e),(r=n.onScroll)==null||r.call(n,e))}return p({currentScroll:o,container:h,bar:l,track:c,scroll:D}),(e,r)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"container",ref:h,class:t.normalizeClass([t.unref(L)(),t.unref(C)(e.direction)]),style:t.normalizeStyle(t.unref(R)({"bar-color":e.barColor,"track-color":e.trackColor,"bar-width":e.width?`${e.width}px`:void 0,"track-width":e.trackWidth?`${e.trackWidth}px`:void 0}))},[t.createElementVNode("div",{ref_key:"track",ref:c,class:t.normalizeClass([t.unref(b)("track"),e.disabled?t.unref(u)("track","disabled"):null,e.showTrack?null:t.unref(u)("track","hidden")]),onPointerdown:r[0]||(r[0]=(...i)=>t.unref(k)&&t.unref(k)(...i)),onTouchstart:g},null,34),t.createElementVNode("div",{ref_key:"bar",ref:l,class:t.normalizeClass([t.unref(b)("bar"),t.unref(u)("bar",e.direction),e.disabled?t.unref(u)("bar","disabled"):null]),onPointerdown:M,onTouchstart:g},null,34)],6))}});exports.default=B;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScrollOptions, ScrollViewProps } from './interface';
|
|
2
|
-
import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
|
|
2
|
+
import { ScrollBarDirection, InternalScrollBarProps, ColorType } from '../scroll-bar';
|
|
3
3
|
import { CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
|
|
4
4
|
declare function scroll(x?: number, y?: number): void;
|
|
5
5
|
declare function scrollTo({ smooth, left, top }: ScrollOptions): void;
|
|
@@ -106,8 +106,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
106
106
|
onScroll?: ((percent: number) => void) | undefined;
|
|
107
107
|
disabled?: boolean | undefined;
|
|
108
108
|
trackSpeed?: number | undefined;
|
|
109
|
-
barColor?:
|
|
110
|
-
trackColor?:
|
|
109
|
+
barColor?: ColorType;
|
|
110
|
+
trackColor?: ColorType;
|
|
111
111
|
trackWidth?: number | undefined;
|
|
112
112
|
showTrack?: boolean | undefined;
|
|
113
113
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -118,8 +118,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
118
118
|
onScroll?: ((percent: number) => void) | undefined;
|
|
119
119
|
disabled?: boolean | undefined;
|
|
120
120
|
trackSpeed?: number | undefined;
|
|
121
|
-
barColor?:
|
|
122
|
-
trackColor?:
|
|
121
|
+
barColor?: ColorType;
|
|
122
|
+
trackColor?: ColorType;
|
|
123
123
|
trackWidth?: number | undefined;
|
|
124
124
|
showTrack?: boolean | undefined;
|
|
125
125
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
export declare const Wrapper: DefineComponent<{
|
|
3
|
-
uiMode?: "admin" | "aplus" | undefined;
|
|
4
|
-
lang?: "en" | "zh-cn" | undefined;
|
|
3
|
+
uiMode?: ("admin" | "aplus") | undefined;
|
|
4
|
+
lang?: ("en" | "zh-cn") | undefined;
|
|
5
5
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
6
|
-
uiMode?: "admin" | "aplus" | undefined;
|
|
7
|
-
lang?: "en" | "zh-cn" | undefined;
|
|
6
|
+
uiMode?: ("admin" | "aplus") | undefined;
|
|
7
|
+
lang?: ("en" | "zh-cn") | undefined;
|
|
8
8
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
package/lib/src/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
import { Recordable } from '../type';
|
|
2
3
|
/**
|
|
3
4
|
* @description: Set ui mount node
|
|
@@ -40,3 +41,10 @@ export declare function runFunction<T extends any[]>(func: any, ...restParams: T
|
|
|
40
41
|
*/
|
|
41
42
|
export declare function getRouteType(): "history" | "hash";
|
|
42
43
|
export declare function getScrollbarSize(): number;
|
|
44
|
+
export type UnwrapRef<T> = T extends Ref<infer U> ? U : T;
|
|
45
|
+
/**
|
|
46
|
+
* 将传入的泛型中所有类型为 Ref<x> 转换为类型 x
|
|
47
|
+
*/
|
|
48
|
+
export type UnwrapRefProps<T> = {
|
|
49
|
+
[K in keyof T]: UnwrapRef<T[K]>;
|
|
50
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { WorkOrderModalProps } from './interfaces';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
4
|
-
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
7
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../type';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
11
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, ApFormInternalInstance, WatchFunc } from '..';
|
|
13
14
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -112,7 +113,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
112
113
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
113
114
|
readonly initialValues?: Recordable | undefined;
|
|
114
115
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
115
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
116
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
116
117
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
117
118
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
118
119
|
$attrs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.20",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
67
67
|
"vuedraggable": "^4.1.0",
|
|
68
68
|
"@aplus-frontend/hooks": "1.0.7",
|
|
69
|
-
"@aplus-frontend/utils": "1.0.
|
|
69
|
+
"@aplus-frontend/utils": "1.0.50"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@aplus-frontend/antdv": "^1.0.12",
|