@pungfe/element 0.5.1 → 0.5.4
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/README.md +5 -0
- package/dist/{advance-CB0gWtLg.js → advance-BY7MMpvJ.js} +126 -126
- package/dist/{advance-D-QeX-GV.cjs → advance-C7GMTyVo.cjs} +1 -1
- package/dist/advance.cjs +1 -1
- package/dist/advance.d.ts +1 -1
- package/dist/advance.js +1 -1
- package/dist/{basic-C6A5vPPP.js → basic-7ajmoMou.js} +68 -63
- package/dist/basic-Ian9axAR.cjs +1 -0
- package/dist/basic.cjs +1 -1
- package/dist/basic.d.ts +1 -1
- package/dist/basic.js +1 -1
- package/dist/components/advance/XButtonAsync.vue.d.ts +7 -11
- package/dist/components/advance/XButtonConfirm.vue.d.ts +7 -11
- package/dist/components/advance/XCascaderRequest.vue.d.ts +28 -23
- package/dist/components/advance/XFormFlex.vue.d.ts +12 -8
- package/dist/components/advance/XFormRequestNext.vue.d.ts +26 -21
- package/dist/components/advance/XRequest.vue.d.ts +28 -32
- package/dist/components/advance/XSelectRequest.vue.d.ts +26 -21
- package/dist/components/advance/XTableConfig.vue.d.ts +23 -18
- package/dist/components/advance/XTableFlex.vue.d.ts +17 -13
- package/dist/components/advance/XTableRequestConfigNext.vue.d.ts +37 -32
- package/dist/components/advance/XTableRequestNext.vue.d.ts +41 -36
- package/dist/components/advance/XUploadOssNext.vue.d.ts +16 -14
- package/dist/components/basic/Button.vue.d.ts +8 -12
- package/dist/components/basic/Cascader.vue.d.ts +18 -13
- package/dist/components/basic/Checkbox.vue.d.ts +9 -7
- package/dist/components/basic/ConfigProvider.vue.d.ts +7 -11
- package/dist/components/basic/DatePicker.vue.d.ts +20 -14
- package/dist/components/basic/Dialog.vue.d.ts +18 -26
- package/dist/components/basic/Form.vue.d.ts +11 -6
- package/dist/components/basic/FormItem.vue.d.ts +12 -10
- package/dist/components/basic/Input.vue.d.ts +23 -23
- package/dist/components/basic/InputNumber.vue.d.ts +12 -19
- package/dist/components/basic/Pagination.vue.d.ts +19 -22
- package/dist/components/basic/Select.vue.d.ts +28 -23
- package/dist/components/basic/TabPane.vue.d.ts +7 -11
- package/dist/components/basic/Table.vue.d.ts +46 -40
- package/dist/components/basic/Tabs.vue.d.ts +23 -21
- package/dist/components/basic/Upload.vue.d.ts +18 -31
- package/dist/constants/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/{locales-Ci_7wNxx.js → locales-1sqaDY76.js} +463 -447
- package/dist/locales-BCty7For.cjs +1 -0
- package/dist/locales.cjs +1 -1
- package/dist/locales.d.ts +2 -2
- package/dist/locales.js +2 -2
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.js +5 -1
- package/dist/style.css +2 -2
- package/dist/types.d.ts +17 -17
- package/package.json +38 -29
- package/dist/basic-pOPUQrFu.cjs +0 -1
- package/dist/locales-CIRzA_S9.cjs +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TableColumnCtx } from 'element-plus';
|
|
2
2
|
import { CSSProperties } from 'vue';
|
|
3
3
|
import { XTableEvents, XTableProps } from '../../basic';
|
|
4
|
+
export type XTableFlexEvents<D> = XTableEvents<D>;
|
|
4
5
|
export interface XTableFlexProps<D> extends XTableProps<D> {
|
|
5
6
|
cellClassName?: ((scope: {
|
|
6
7
|
column: TableColumnCtx;
|
|
@@ -23,16 +24,16 @@ export interface XTableFlexProps<D> extends XTableProps<D> {
|
|
|
23
24
|
rowIndex: number;
|
|
24
25
|
}) => CSSProperties) | CSSProperties;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
27
|
+
declare const __VLS_export: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
28
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableFlexProps<D> & {
|
|
29
|
+
onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
30
|
+
onRowClick?: ((row: D) => any) | undefined;
|
|
31
|
+
onRowDblclick?: ((row: D) => any) | undefined;
|
|
32
|
+
onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
33
|
+
}> & (typeof globalThis extends {
|
|
34
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
35
|
+
} ? P : {});
|
|
36
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
36
37
|
clearSelection: () => void | undefined;
|
|
37
38
|
getSelectionRows: () => D[] | undefined;
|
|
38
39
|
scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void | undefined;
|
|
@@ -40,14 +41,17 @@ declare const _default: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
40
41
|
setScrollLeft: (left: number) => void | undefined;
|
|
41
42
|
setScrollTop: (top: number) => void | undefined;
|
|
42
43
|
toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => void | undefined;
|
|
43
|
-
}>)
|
|
44
|
+
}>) => void;
|
|
44
45
|
attrs: any;
|
|
45
46
|
slots: {};
|
|
46
47
|
emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void);
|
|
47
48
|
}>) => import('vue').VNode & {
|
|
48
49
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
49
50
|
};
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
50
52
|
export default _default;
|
|
51
|
-
type __VLS_PrettifyLocal<T> = {
|
|
53
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
52
54
|
[K in keyof T]: T[K];
|
|
53
|
-
}
|
|
55
|
+
} : {
|
|
56
|
+
[K in keyof T as K]: T[K];
|
|
57
|
+
}) & {};
|
|
@@ -3,57 +3,59 @@ import { Paging, TableColumnField } from '../../types';
|
|
|
3
3
|
import { XTableFlexEvents, XTableFlexProps, XTableRequestColumnsProps } from '../../advance';
|
|
4
4
|
export interface XTableRequestConfigColumnsProps<QR, D> extends Omit<XTableRequestColumnsProps<D>, 'content'> {
|
|
5
5
|
content?: (scope: {
|
|
6
|
-
row: D;
|
|
7
6
|
index: number;
|
|
7
|
+
row: D;
|
|
8
8
|
}) => VNodeChild;
|
|
9
9
|
search?: (scope: {
|
|
10
10
|
query: QR;
|
|
11
11
|
}) => VNodeChild;
|
|
12
12
|
}
|
|
13
|
+
export interface XTableRequestConfigEvents<PT, QR, D> extends XTableFlexEvents<D> {
|
|
14
|
+
prepare: [parameters: {
|
|
15
|
+
path: PT;
|
|
16
|
+
query: QR;
|
|
17
|
+
}];
|
|
18
|
+
}
|
|
13
19
|
export interface XTableRequestConfigProps<U, PT, QR, D> extends Omit<XTableFlexProps<D>, 'columns' | 'showOverflowTooltip'> {
|
|
14
|
-
|
|
15
|
-
data: Ref<D[]>;
|
|
16
|
-
execute: () => PromiseLike<unknown>;
|
|
17
|
-
isFetching: Ref<boolean>;
|
|
18
|
-
paging: Ref<Paging>;
|
|
19
|
-
path: Ref<PT>;
|
|
20
|
-
query: Ref<QR>;
|
|
21
|
-
url: U;
|
|
22
|
-
};
|
|
20
|
+
config: Record<string, XTableRequestConfigColumnsProps<QR, D>>;
|
|
23
21
|
fields: () => {
|
|
24
22
|
data: Ref<TableColumnField[]>;
|
|
25
|
-
update: (fields: TableColumnField[]) => PromiseLike<unknown>;
|
|
26
23
|
loading: Ref<boolean>;
|
|
24
|
+
update: (fields: TableColumnField[]) => PromiseLike<unknown>;
|
|
27
25
|
};
|
|
28
26
|
header?: (scope: {
|
|
29
27
|
data: D[];
|
|
30
|
-
query: QR;
|
|
31
|
-
path: PT;
|
|
32
28
|
isFetching: boolean;
|
|
33
29
|
paging: Paging;
|
|
30
|
+
path: PT;
|
|
31
|
+
query: QR;
|
|
34
32
|
}) => VNodeChild;
|
|
35
|
-
config: Record<string, XTableRequestConfigColumnsProps<QR, D>>;
|
|
36
33
|
pagination?: boolean;
|
|
37
34
|
paginationLayout?: string;
|
|
35
|
+
request: () => {
|
|
36
|
+
data: Ref<D[]>;
|
|
37
|
+
execute: () => PromiseLike<unknown>;
|
|
38
|
+
isFetching: Ref<boolean>;
|
|
39
|
+
paging: Ref<Paging>;
|
|
40
|
+
path: Ref<PT>;
|
|
41
|
+
query: Ref<QR>;
|
|
42
|
+
url: U;
|
|
43
|
+
};
|
|
38
44
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
47
|
-
readonly onHeaderDragend?: ((newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => any) | undefined;
|
|
48
|
-
readonly onRowClick?: ((row: D) => any) | undefined;
|
|
49
|
-
readonly onRowDblclick?: ((row: D) => any) | undefined;
|
|
50
|
-
readonly onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
51
|
-
readonly onPrepare?: ((parameters: {
|
|
45
|
+
declare const __VLS_export: <U, PT, QR, D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
46
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableRequestConfigProps<U, PT, QR, D> & {
|
|
47
|
+
onHeaderDragend?: ((newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => any) | undefined;
|
|
48
|
+
onRowClick?: ((row: D) => any) | undefined;
|
|
49
|
+
onRowDblclick?: ((row: D) => any) | undefined;
|
|
50
|
+
onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
51
|
+
onPrepare?: ((parameters: {
|
|
52
52
|
path: PT;
|
|
53
53
|
query: QR;
|
|
54
54
|
}) => any) | undefined;
|
|
55
|
-
} &
|
|
56
|
-
|
|
55
|
+
}> & (typeof globalThis extends {
|
|
56
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
57
|
+
} ? P : {});
|
|
58
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
57
59
|
data: Ref<D[], D[]>;
|
|
58
60
|
isFetching: Ref<boolean, boolean>;
|
|
59
61
|
paging: Ref<Paging, Paging>;
|
|
@@ -62,7 +64,7 @@ declare const _default: <U, PT, QR, D>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
62
64
|
reset: import('@vueuse/shared').UseDebounceFnReturn<() => Promise<void>>;
|
|
63
65
|
search: import('@vueuse/shared').UseDebounceFnReturn<() => Promise<void>>;
|
|
64
66
|
url: U;
|
|
65
|
-
}>)
|
|
67
|
+
}>) => void;
|
|
66
68
|
attrs: any;
|
|
67
69
|
slots: {};
|
|
68
70
|
emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void) & ((evt: "prepare", parameters: {
|
|
@@ -72,7 +74,10 @@ declare const _default: <U, PT, QR, D>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
72
74
|
}>) => import('vue').VNode & {
|
|
73
75
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
74
76
|
};
|
|
77
|
+
declare const _default: typeof __VLS_export;
|
|
75
78
|
export default _default;
|
|
76
|
-
type __VLS_PrettifyLocal<T> = {
|
|
79
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
77
80
|
[K in keyof T]: T[K];
|
|
78
|
-
}
|
|
81
|
+
} : {
|
|
82
|
+
[K in keyof T as K]: T[K];
|
|
83
|
+
}) & {};
|
|
@@ -9,24 +9,13 @@ export interface XTableRequestColumnsProps<D> extends XTableColumnProps<D> {
|
|
|
9
9
|
row: D;
|
|
10
10
|
}) => VNodeChild;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
execute: () => PromiseLike<unknown>;
|
|
16
|
-
isFetching: Ref<boolean>;
|
|
17
|
-
paging: Ref<Paging>;
|
|
18
|
-
path: Ref<PT>;
|
|
19
|
-
query: Ref<QR>;
|
|
20
|
-
url: U;
|
|
21
|
-
};
|
|
22
|
-
pagination?: boolean;
|
|
23
|
-
columns: XTableRequestColumnsProps<D>[];
|
|
24
|
-
header?: (scope: {
|
|
25
|
-
query: QR;
|
|
26
|
-
}) => VNodeChild;
|
|
27
|
-
footer?: (scope: {
|
|
12
|
+
export interface XTableRequestEvents<PT, QR, D> extends XTableFlexEvents<D> {
|
|
13
|
+
prepare: [parameters: {
|
|
14
|
+
path: PT;
|
|
28
15
|
query: QR;
|
|
29
|
-
}
|
|
16
|
+
}];
|
|
17
|
+
}
|
|
18
|
+
export interface XTableRequestProps<U, PT, QR, D> extends Omit<XTableFlexProps<D>, 'columns' | 'data'> {
|
|
30
19
|
cellClassName?: ((scope: {
|
|
31
20
|
column: TableColumnCtx;
|
|
32
21
|
columnIndex: number;
|
|
@@ -39,6 +28,24 @@ export interface XTableRequestProps<U, PT, QR, D> extends Omit<XTableFlexProps<D
|
|
|
39
28
|
row: D;
|
|
40
29
|
rowIndex: number;
|
|
41
30
|
}) => CSSProperties) | CSSProperties;
|
|
31
|
+
columns: XTableRequestColumnsProps<D>[];
|
|
32
|
+
footer?: (scope: {
|
|
33
|
+
query: QR;
|
|
34
|
+
}) => VNodeChild;
|
|
35
|
+
header?: (scope: {
|
|
36
|
+
query: QR;
|
|
37
|
+
}) => VNodeChild;
|
|
38
|
+
pagination?: boolean;
|
|
39
|
+
paginationLayout?: string;
|
|
40
|
+
request: () => {
|
|
41
|
+
data: Ref<D[]>;
|
|
42
|
+
execute: () => PromiseLike<unknown>;
|
|
43
|
+
isFetching: Ref<boolean>;
|
|
44
|
+
paging: Ref<Paging>;
|
|
45
|
+
path: Ref<PT>;
|
|
46
|
+
query: Ref<QR>;
|
|
47
|
+
url: U;
|
|
48
|
+
};
|
|
42
49
|
rowClassName?: ((scope: {
|
|
43
50
|
row: D;
|
|
44
51
|
rowIndex: number;
|
|
@@ -47,26 +54,21 @@ export interface XTableRequestProps<U, PT, QR, D> extends Omit<XTableFlexProps<D
|
|
|
47
54
|
row: D;
|
|
48
55
|
rowIndex: number;
|
|
49
56
|
}) => CSSProperties) | CSSProperties;
|
|
50
|
-
paginationLayout?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface XTableRequestEvents<PT, QR, D> extends XTableFlexEvents<D> {
|
|
53
|
-
prepare: [parameters: {
|
|
54
|
-
path: PT;
|
|
55
|
-
query: QR;
|
|
56
|
-
}];
|
|
57
57
|
}
|
|
58
|
-
declare const
|
|
59
|
-
props: __VLS_PrettifyLocal<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
declare const __VLS_export: <U, PT, QR, D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
59
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableRequestProps<U, PT, QR, D> & {
|
|
60
|
+
onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
61
|
+
onRowClick?: ((row: D) => any) | undefined;
|
|
62
|
+
onRowDblclick?: ((row: D) => any) | undefined;
|
|
63
|
+
onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
64
|
+
onPrepare?: ((parameters: {
|
|
65
65
|
path: PT;
|
|
66
66
|
query: QR;
|
|
67
67
|
}) => any) | undefined;
|
|
68
|
-
} &
|
|
69
|
-
|
|
68
|
+
}> & (typeof globalThis extends {
|
|
69
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
70
|
+
} ? P : {});
|
|
71
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
70
72
|
data: Ref<D[], D[]>;
|
|
71
73
|
isFetching: Ref<boolean, boolean>;
|
|
72
74
|
paging: Ref<Paging, Paging>;
|
|
@@ -75,7 +77,7 @@ declare const _default: <U, PT, QR, D>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
75
77
|
reset: import('@vueuse/shared').UseDebounceFnReturn<() => Promise<void>>;
|
|
76
78
|
search: import('@vueuse/shared').UseDebounceFnReturn<() => Promise<void>>;
|
|
77
79
|
url: U;
|
|
78
|
-
}>)
|
|
80
|
+
}>) => void;
|
|
79
81
|
attrs: any;
|
|
80
82
|
slots: {};
|
|
81
83
|
emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void) & ((evt: "prepare", parameters: {
|
|
@@ -85,7 +87,10 @@ declare const _default: <U, PT, QR, D>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
85
87
|
}>) => import('vue').VNode & {
|
|
86
88
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
87
89
|
};
|
|
90
|
+
declare const _default: typeof __VLS_export;
|
|
88
91
|
export default _default;
|
|
89
|
-
type __VLS_PrettifyLocal<T> = {
|
|
92
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
90
93
|
[K in keyof T]: T[K];
|
|
91
|
-
}
|
|
94
|
+
} : {
|
|
95
|
+
[K in keyof T as K]: T[K];
|
|
96
|
+
}) & {};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
2
|
import { XUploadProps } from '../../basic';
|
|
3
|
-
export interface XUploadOssProps extends Omit<XUploadProps, 'action' | '
|
|
3
|
+
export interface XUploadOssProps extends Omit<XUploadProps, 'action' | 'beforeUpload' | 'data' | 'fileList'> {
|
|
4
4
|
/** oss 接收文件最大 大约为50兆, 超过50兆应采取oss ststoken 分片上传 */
|
|
5
5
|
maxSize?: number;
|
|
6
6
|
}
|
|
7
|
-
declare const
|
|
8
|
-
props: __VLS_PrettifyLocal<
|
|
9
|
-
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
10
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
7
|
+
declare const __VLS_export: <V extends string, MV extends V | V[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XUploadOssProps & {
|
|
11
9
|
modelValue?: MV;
|
|
12
|
-
}
|
|
13
|
-
|
|
10
|
+
}) & {
|
|
11
|
+
"onUpdate:modelValue"?: ((value: MV | undefined) => any) | undefined;
|
|
12
|
+
}> & (typeof globalThis extends {
|
|
13
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
14
|
+
} ? P : {});
|
|
15
|
+
expose: (exposed: {}) => void;
|
|
14
16
|
attrs: any;
|
|
15
|
-
slots:
|
|
16
|
-
default: () => VNodeChild;
|
|
17
|
-
tip: () => VNodeChild;
|
|
18
|
-
}> & {
|
|
17
|
+
slots: {
|
|
19
18
|
default: () => VNodeChild;
|
|
20
19
|
tip: () => VNodeChild;
|
|
21
20
|
};
|
|
22
|
-
emit: (
|
|
21
|
+
emit: (event: "update:modelValue", value: MV | undefined) => void;
|
|
23
22
|
}>) => import('vue').VNode & {
|
|
24
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
24
|
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
27
|
-
type __VLS_PrettifyLocal<T> = {
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
28
|
[K in keyof T]: T[K];
|
|
29
|
-
}
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -8,29 +8,25 @@ export interface XButtonConfig {
|
|
|
8
8
|
}
|
|
9
9
|
export interface XButtonProps {
|
|
10
10
|
disabled?: ButtonProps['disabled'];
|
|
11
|
+
icon?: ButtonProps['icon'];
|
|
11
12
|
link?: ButtonProps['link'];
|
|
12
13
|
size?: ButtonProps['size'];
|
|
13
14
|
text?: ButtonProps['text'];
|
|
14
15
|
type?: ButtonProps['type'];
|
|
15
|
-
icon?: ButtonProps['icon'];
|
|
16
16
|
}
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
default?(_: {}): any;
|
|
21
|
-
};
|
|
22
|
-
refs: {};
|
|
23
|
-
rootEl: any;
|
|
17
|
+
declare var __VLS_10: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_10) => any;
|
|
24
20
|
};
|
|
25
|
-
|
|
26
|
-
declare const __VLS_component: import('vue').DefineComponent<XButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
declare const __VLS_base: import('vue').DefineComponent<XButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
22
|
click: (e: MouseEvent) => any;
|
|
28
23
|
}, string, import('vue').PublicProps, Readonly<XButtonProps> & Readonly<{
|
|
29
24
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
30
25
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
32
28
|
export default _default;
|
|
33
|
-
type
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
30
|
new (): {
|
|
35
31
|
$slots: S;
|
|
36
32
|
};
|
|
@@ -3,33 +3,38 @@ export interface XCascaderOptionProps<D, V> {
|
|
|
3
3
|
children?: D[];
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
label?: number | string;
|
|
6
|
-
value: V;
|
|
7
6
|
leaf?: boolean;
|
|
7
|
+
value: V;
|
|
8
8
|
}
|
|
9
9
|
export interface XCascaderProps<D, V> {
|
|
10
|
-
data?: D[];
|
|
11
|
-
factory?: (option: D, level: number) => XCascaderOptionProps<D, V>;
|
|
12
10
|
clearable?: CascaderComponentProps['clearable'];
|
|
11
|
+
data?: D[];
|
|
13
12
|
disabled?: CascaderComponentProps['disabled'];
|
|
13
|
+
factory?: (option: D, level: number) => XCascaderOptionProps<D, V>;
|
|
14
14
|
filterable?: CascaderComponentProps['filterable'];
|
|
15
|
-
size?: CascaderComponentProps['size'];
|
|
16
15
|
placeholder?: CascaderComponentProps['placeholder'];
|
|
17
16
|
props?: CascaderComponentProps['props'];
|
|
17
|
+
size?: CascaderComponentProps['size'];
|
|
18
18
|
}
|
|
19
|
-
declare const
|
|
20
|
-
props: __VLS_PrettifyLocal<
|
|
21
|
-
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
22
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
19
|
+
declare const __VLS_export: <D, V, MV extends V | V[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
20
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XCascaderProps<D, V> & {
|
|
23
21
|
modelValue?: MV;
|
|
24
|
-
}
|
|
25
|
-
|
|
22
|
+
}) & {
|
|
23
|
+
"onUpdate:modelValue"?: ((value: MV | undefined) => any) | undefined;
|
|
24
|
+
}> & (typeof globalThis extends {
|
|
25
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
26
|
+
} ? P : {});
|
|
27
|
+
expose: (exposed: {}) => void;
|
|
26
28
|
attrs: any;
|
|
27
29
|
slots: {};
|
|
28
|
-
emit: (
|
|
30
|
+
emit: (event: "update:modelValue", value: MV | undefined) => void;
|
|
29
31
|
}>) => import('vue').VNode & {
|
|
30
32
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
33
|
};
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
32
35
|
export default _default;
|
|
33
|
-
type __VLS_PrettifyLocal<T> = {
|
|
36
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
34
37
|
[K in keyof T]: T[K];
|
|
35
|
-
}
|
|
38
|
+
} : {
|
|
39
|
+
[K in keyof T as K]: T[K];
|
|
40
|
+
}) & {};
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { CheckboxProps, CheckboxValueType } from 'element-plus';
|
|
2
2
|
export interface XCheckboxProps {
|
|
3
3
|
disabled?: boolean;
|
|
4
|
-
|
|
4
|
+
falseValue?: CheckboxProps['falseValue'];
|
|
5
5
|
label?: CheckboxProps['label'];
|
|
6
|
+
size?: CheckboxProps['size'];
|
|
6
7
|
trueValue?: CheckboxProps['trueValue'];
|
|
7
|
-
falseValue?: CheckboxProps['falseValue'];
|
|
8
8
|
}
|
|
9
9
|
type __VLS_Props = XCheckboxProps;
|
|
10
|
-
type
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
11
|
modelValue?: CheckboxValueType;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: CheckboxValueType | undefined) => any;
|
|
15
16
|
focus: (e: FocusEvent) => any;
|
|
16
17
|
blur: (e: FocusEvent) => any;
|
|
17
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: ((value: CheckboxValueType) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((value: CheckboxValueType | undefined) => any) | undefined;
|
|
19
20
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
20
21
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
21
22
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
22
24
|
export default _default;
|
|
@@ -2,19 +2,15 @@ import { ConfigProviderProps } from 'element-plus';
|
|
|
2
2
|
export interface XConfigProviderProps {
|
|
3
3
|
locale?: ConfigProviderProps['locale'];
|
|
4
4
|
}
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
default?(_: {}): any;
|
|
9
|
-
};
|
|
10
|
-
refs: {};
|
|
11
|
-
rootEl: any;
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
12
8
|
};
|
|
13
|
-
|
|
14
|
-
declare const
|
|
15
|
-
declare const _default:
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<XConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
16
12
|
export default _default;
|
|
17
|
-
type
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
14
|
new (): {
|
|
19
15
|
$slots: S;
|
|
20
16
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DatePickerProps } from 'element-plus';
|
|
2
2
|
export interface XDateConfig {
|
|
3
|
+
teleported?: boolean;
|
|
3
4
|
valueFormat?: DatePickerProps['valueFormat'];
|
|
4
5
|
}
|
|
5
6
|
export interface XDatePickerProps extends XDateConfig {
|
|
@@ -8,30 +9,35 @@ export interface XDatePickerProps extends XDateConfig {
|
|
|
8
9
|
endPlaceholder?: DatePickerProps['endPlaceholder'];
|
|
9
10
|
placeholder?: DatePickerProps['placeholder'];
|
|
10
11
|
shortcuts?: DatePickerProps['shortcuts'];
|
|
12
|
+
size?: DatePickerProps['size'];
|
|
11
13
|
startPlaceholder?: DatePickerProps['startPlaceholder'];
|
|
12
14
|
type?: DatePickerProps['type'];
|
|
13
|
-
size?: DatePickerProps['size'];
|
|
14
15
|
}
|
|
15
|
-
declare const
|
|
16
|
-
props: __VLS_PrettifyLocal<
|
|
17
|
-
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
18
|
-
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
19
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
20
|
-
readonly "onUpdate:start"?: ((value: V) => any) | undefined;
|
|
21
|
-
readonly "onUpdate:end"?: ((value: V) => any) | undefined;
|
|
22
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:start" | "onUpdate:end"> & ({
|
|
16
|
+
declare const __VLS_export: <V extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XDatePickerProps & {
|
|
23
18
|
modelValue?: V;
|
|
24
19
|
start?: V;
|
|
25
20
|
end?: V;
|
|
26
|
-
}
|
|
27
|
-
|
|
21
|
+
}) & {
|
|
22
|
+
"onUpdate:modelValue"?: ((value: V | undefined) => any) | undefined;
|
|
23
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
24
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
25
|
+
"onUpdate:start"?: ((value: V | undefined) => any) | undefined;
|
|
26
|
+
"onUpdate:end"?: ((value: V | undefined) => any) | undefined;
|
|
27
|
+
}> & (typeof globalThis extends {
|
|
28
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
29
|
+
} ? P : {});
|
|
30
|
+
expose: (exposed: {}) => void;
|
|
28
31
|
attrs: any;
|
|
29
32
|
slots: {};
|
|
30
|
-
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void)) & (((
|
|
33
|
+
emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void)) & (((event: "update:modelValue", value: V | undefined) => void) & ((event: "update:start", value: V | undefined) => void) & ((event: "update:end", value: V | undefined) => void));
|
|
31
34
|
}>) => import('vue').VNode & {
|
|
32
35
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
33
36
|
};
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
34
38
|
export default _default;
|
|
35
|
-
type __VLS_PrettifyLocal<T> = {
|
|
39
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
36
40
|
[K in keyof T]: T[K];
|
|
37
|
-
}
|
|
41
|
+
} : {
|
|
42
|
+
[K in keyof T as K]: T[K];
|
|
43
|
+
}) & {};
|
|
@@ -1,43 +1,35 @@
|
|
|
1
1
|
import { DialogProps } from 'element-plus';
|
|
2
2
|
import { VNodeChild } from 'vue';
|
|
3
3
|
export interface XDialogProps {
|
|
4
|
+
alignCenter?: DialogProps['alignCenter'];
|
|
4
5
|
bodyClass?: DialogProps['bodyClass'];
|
|
5
|
-
width?: DialogProps['width'];
|
|
6
|
-
showClose?: DialogProps['showClose'];
|
|
7
|
-
title?: DialogProps['title'];
|
|
8
6
|
center?: DialogProps['center'];
|
|
9
|
-
alignCenter?: DialogProps['alignCenter'];
|
|
10
|
-
draggable?: DialogProps['draggable'];
|
|
11
7
|
closeOnClickModal?: DialogProps['closeOnClickModal'];
|
|
12
8
|
closeOnPressEscape?: DialogProps['closeOnPressEscape'];
|
|
9
|
+
draggable?: DialogProps['draggable'];
|
|
10
|
+
showClose?: DialogProps['showClose'];
|
|
11
|
+
title?: DialogProps['title'];
|
|
12
|
+
width?: DialogProps['width'];
|
|
13
13
|
}
|
|
14
14
|
type __VLS_Props = XDialogProps;
|
|
15
|
-
type
|
|
15
|
+
type __VLS_Slots = {
|
|
16
|
+
default?: () => VNodeChild;
|
|
17
|
+
footer?: () => VNodeChild;
|
|
18
|
+
header?: () => VNodeChild;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_ModelProps = {
|
|
16
21
|
modelValue?: boolean;
|
|
17
|
-
} & __VLS_Props;
|
|
18
|
-
declare function __VLS_template(): {
|
|
19
|
-
attrs: Partial<{}>;
|
|
20
|
-
slots: Readonly<{
|
|
21
|
-
default?: () => VNodeChild;
|
|
22
|
-
header?: () => VNodeChild;
|
|
23
|
-
footer?: () => VNodeChild;
|
|
24
|
-
}> & {
|
|
25
|
-
default?: () => VNodeChild;
|
|
26
|
-
header?: () => VNodeChild;
|
|
27
|
-
footer?: () => VNodeChild;
|
|
28
|
-
};
|
|
29
|
-
refs: {};
|
|
30
|
-
rootEl: any;
|
|
31
22
|
};
|
|
32
|
-
type
|
|
33
|
-
declare const
|
|
34
|
-
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
24
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
35
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
37
28
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
-
declare const
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
39
31
|
export default _default;
|
|
40
|
-
type
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
33
|
new (): {
|
|
42
34
|
$slots: S;
|
|
43
35
|
};
|
|
@@ -12,21 +12,26 @@ export interface XFormProps<D> {
|
|
|
12
12
|
labelWidth?: number | string;
|
|
13
13
|
size?: FormProps['size'];
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
16
|
-
props:
|
|
17
|
-
|
|
15
|
+
declare const __VLS_export: <D extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<XFormProps<D>> & (typeof globalThis extends {
|
|
17
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
18
|
+
} ? P : {});
|
|
19
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
18
20
|
clearValidate: () => void;
|
|
19
21
|
data: D | undefined;
|
|
20
22
|
resetFields: () => void;
|
|
21
23
|
validate: () => boolean;
|
|
22
|
-
}>)
|
|
24
|
+
}>) => void;
|
|
23
25
|
attrs: any;
|
|
24
26
|
slots: {};
|
|
25
27
|
emit: {};
|
|
26
28
|
}>) => import('vue').VNode & {
|
|
27
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
30
|
};
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
29
32
|
export default _default;
|
|
30
|
-
type __VLS_PrettifyLocal<T> = {
|
|
33
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
34
|
[K in keyof T]: T[K];
|
|
32
|
-
}
|
|
35
|
+
} : {
|
|
36
|
+
[K in keyof T as K]: T[K];
|
|
37
|
+
}) & {};
|