@gx-design-vue/pro-utils 0.2.0-beta.38 → 0.2.0-beta.39
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/dist/slots/index.d.ts +11 -5
- package/dist/typings/index.d.ts +6 -6
- package/dist/utils/index.d.ts +11 -3
- package/package.json +1 -1
package/dist/slots/index.d.ts
CHANGED
|
@@ -20,11 +20,17 @@ export declare function getSlot<T = undefined, R extends boolean | undefined = u
|
|
|
20
20
|
* @description () => WithFalse<VNode | VNode[]>
|
|
21
21
|
*/
|
|
22
22
|
export declare function getSlotVNode<T = undefined>(slots: Readonly<Record<string, any>>, props: Record<string, unknown>, keys: string | string[], options?: any): T extends undefined ? WithFalse<VNode | VNode[]> : T;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @Author gx12358
|
|
25
|
+
* @DateTime 2024/10/13
|
|
26
|
+
* @lastTime 2024/10/13
|
|
27
|
+
* @description 获取names的slots或者props的VNode
|
|
28
|
+
*/
|
|
29
|
+
export declare function getSlotsProps<T extends string, K = undefined>(names: string[], slots: Readonly<Record<string, any>>, props: Record<string, unknown>, options?: {
|
|
28
30
|
render?: false;
|
|
29
31
|
params?: any;
|
|
30
32
|
}): K extends undefined ? Record<T, any> : K;
|
|
33
|
+
export declare function getSlotsProps<T extends string, K = undefined>(names: string[], slots: Readonly<Record<string, any>>, props: Record<string, unknown>, options?: {
|
|
34
|
+
render?: true;
|
|
35
|
+
params?: any;
|
|
36
|
+
}): K extends undefined ? Record<T, WithFalse<VNode | VNode[]>> : K;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type BasicTablePageConfig = {
|
|
|
13
13
|
pageSize: number;
|
|
14
14
|
total?: number;
|
|
15
15
|
} | boolean;
|
|
16
|
-
export type ProColumn<T extends undefined> = T extends undefined ? {
|
|
16
|
+
export type ProColumn<T extends undefined = undefined> = T extends undefined ? {
|
|
17
17
|
title?: string;
|
|
18
18
|
align?: AlignType;
|
|
19
19
|
fixed?: boolean;
|
|
@@ -31,11 +31,11 @@ export type ProColumn<T extends undefined> = T extends undefined ? {
|
|
|
31
31
|
width?: number;
|
|
32
32
|
} & T;
|
|
33
33
|
export interface MaterialOptions {
|
|
34
|
-
play
|
|
35
|
-
width
|
|
36
|
-
height
|
|
37
|
-
duration
|
|
38
|
-
size
|
|
34
|
+
play?: boolean;
|
|
35
|
+
width?: number;
|
|
36
|
+
height?: number;
|
|
37
|
+
duration?: number;
|
|
38
|
+
size?: string;
|
|
39
39
|
}
|
|
40
40
|
export type OmitUndefined<T> = {
|
|
41
41
|
[P in keyof T]: NonNullable<T[P]>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AlignType, BasicTablePageConfig,
|
|
1
|
+
import type { AlignType, BasicTablePageConfig, MaterialOptions, ProColumn } from '../typings';
|
|
2
2
|
export interface PrefixCls {
|
|
3
3
|
suffixCls?: string;
|
|
4
4
|
customizePrefixCls?: string;
|
|
@@ -17,7 +17,15 @@ export declare const genColumnKey: (key?: string | number | undefined, index?: n
|
|
|
17
17
|
export declare function handleShowIndex(columns: ProColumn[], { align, showIndex }: {
|
|
18
18
|
align: AlignType;
|
|
19
19
|
showIndex: boolean;
|
|
20
|
-
}):
|
|
20
|
+
}): {
|
|
21
|
+
title?: string;
|
|
22
|
+
align?: AlignType;
|
|
23
|
+
fixed?: boolean;
|
|
24
|
+
uuid?: string;
|
|
25
|
+
key: string;
|
|
26
|
+
dataIndex: string;
|
|
27
|
+
width?: number;
|
|
28
|
+
}[];
|
|
21
29
|
/**
|
|
22
30
|
* @Author gx12358
|
|
23
31
|
* @DateTime 2021/11/3
|
|
@@ -177,7 +185,7 @@ export declare function checkFileType(url: any, type?: '1' | '2' | '3' | '4'): "
|
|
|
177
185
|
export declare function getMediaInfos(mediaInfo: {
|
|
178
186
|
url: any;
|
|
179
187
|
fileType?: string;
|
|
180
|
-
}): Promise<
|
|
188
|
+
}): Promise<MaterialOptions>;
|
|
181
189
|
/**
|
|
182
190
|
* @Author gaoxiang
|
|
183
191
|
* @DateTime 2020/11/13
|