@pungfe/element 0.5.2 → 0.5.5
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/{advance-BtiI894G.js → advance-BrUQo-Pm.js} +118 -118
- package/dist/{advance-DfVR2Qm0.cjs → advance-DrHYYcdo.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-KTA4sDP3.js → basic-B4szF9wy.js} +82 -82
- package/dist/{basic-BGb_tawM.cjs → basic-BHdwt1Pu.cjs} +1 -1
- package/dist/basic.cjs +1 -1
- package/dist/basic.d.ts +1 -1
- package/dist/basic.js +1 -1
- package/dist/components/advance/XCascaderRequest.vue.d.ts +10 -10
- package/dist/components/advance/XFormFlex.vue.d.ts +1 -2
- package/dist/components/advance/XFormRequestNext.vue.d.ts +13 -13
- package/dist/components/advance/XRequest.vue.d.ts +15 -15
- package/dist/components/advance/XSelectRequest.vue.d.ts +6 -6
- package/dist/components/advance/XTableConfig.vue.d.ts +7 -7
- package/dist/components/advance/XTableFlex.vue.d.ts +2 -3
- package/dist/components/advance/XTableRequestConfigNext.vue.d.ts +20 -20
- package/dist/components/advance/XTableRequestNext.vue.d.ts +24 -24
- package/dist/components/advance/XUploadOssNext.vue.d.ts +1 -1
- package/dist/components/basic/Button.vue.d.ts +1 -1
- package/dist/components/basic/Cascader.vue.d.ts +4 -4
- package/dist/components/basic/Checkbox.vue.d.ts +2 -2
- package/dist/components/basic/DatePicker.vue.d.ts +2 -2
- package/dist/components/basic/Dialog.vue.d.ts +6 -6
- package/dist/components/basic/FormItem.vue.d.ts +1 -1
- package/dist/components/basic/Input.vue.d.ts +5 -5
- package/dist/components/basic/Pagination.vue.d.ts +5 -5
- package/dist/components/basic/Select.vue.d.ts +11 -11
- package/dist/components/basic/Table.vue.d.ts +30 -31
- package/dist/components/basic/Tabs.vue.d.ts +6 -6
- package/dist/components/basic/Upload.vue.d.ts +6 -6
- package/dist/constants/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- 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/types.d.ts +17 -17
- package/package.json +23 -23
- package/dist/locales-CZYsFcwB.cjs +0 -1
- package/dist/{locales-B6gZPoUb.js → locales-1sqaDY76.js} +452 -452
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { Ref, VNodeChild } from 'vue';
|
|
2
2
|
import { Paging } from '../../types';
|
|
3
|
+
export interface XRequestEvents<PT, QR> {
|
|
4
|
+
prepare: [parameters: {
|
|
5
|
+
path: PT;
|
|
6
|
+
query: QR;
|
|
7
|
+
}];
|
|
8
|
+
}
|
|
3
9
|
export interface XRequestProps<U, PT, QR, D> {
|
|
10
|
+
content?: (scope: {
|
|
11
|
+
data: D;
|
|
12
|
+
isFetching: boolean;
|
|
13
|
+
paging: Paging;
|
|
14
|
+
path: PT;
|
|
15
|
+
query: QR;
|
|
16
|
+
search: () => PromiseLike<unknown>;
|
|
17
|
+
}) => VNodeChild;
|
|
4
18
|
request: () => {
|
|
5
19
|
data: Ref<D>;
|
|
6
20
|
execute: () => PromiseLike<unknown>;
|
|
@@ -10,20 +24,6 @@ export interface XRequestProps<U, PT, QR, D> {
|
|
|
10
24
|
query: Ref<QR>;
|
|
11
25
|
url: U;
|
|
12
26
|
};
|
|
13
|
-
content?: (scope: {
|
|
14
|
-
data: D;
|
|
15
|
-
query: QR;
|
|
16
|
-
path: PT;
|
|
17
|
-
isFetching: boolean;
|
|
18
|
-
paging: Paging;
|
|
19
|
-
search: () => PromiseLike<unknown>;
|
|
20
|
-
}) => VNodeChild;
|
|
21
|
-
}
|
|
22
|
-
export interface XRequestEvents<PT, QR> {
|
|
23
|
-
prepare: [parameters: {
|
|
24
|
-
path: PT;
|
|
25
|
-
query: QR;
|
|
26
|
-
}];
|
|
27
27
|
}
|
|
28
28
|
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<{
|
|
29
29
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<XRequestProps<U, PT, QR, D> & {
|
|
@@ -48,11 +48,11 @@ declare const __VLS_export: <U, PT, QR, D>(__VLS_props: NonNullable<Awaited<type
|
|
|
48
48
|
slots: {
|
|
49
49
|
default: (scope: {
|
|
50
50
|
data: D;
|
|
51
|
-
search: () => PromiseLike<unknown>;
|
|
52
51
|
isFetching: boolean;
|
|
53
52
|
paging: Paging;
|
|
54
53
|
path: PT;
|
|
55
54
|
query: QR;
|
|
55
|
+
search: () => PromiseLike<unknown>;
|
|
56
56
|
}) => VNodeChild;
|
|
57
57
|
};
|
|
58
58
|
emit: (evt: "prepare", parameters: {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { XSelectEvents, XSelectProps } from '../../basic';
|
|
3
|
+
export interface XSelectRequestEvents<PT, QR, V> extends XSelectEvents<V> {
|
|
4
|
+
prepare: [parameters: {
|
|
5
|
+
path: PT;
|
|
6
|
+
query: QR;
|
|
7
|
+
}, input?: string];
|
|
8
|
+
}
|
|
3
9
|
export interface XSelectRequestProps<U, PT, QR, D, V> extends Omit<XSelectProps<D, V>, 'supplement'> {
|
|
4
10
|
request: () => {
|
|
5
11
|
data: Ref<D[]>;
|
|
@@ -11,12 +17,6 @@ export interface XSelectRequestProps<U, PT, QR, D, V> extends Omit<XSelectProps<
|
|
|
11
17
|
};
|
|
12
18
|
supplement?: (lacks: V[], url: U) => D[] | PromiseLike<D[]>;
|
|
13
19
|
}
|
|
14
|
-
export interface XSelectRequestEvents<PT, QR, V> extends XSelectEvents<V> {
|
|
15
|
-
prepare: [parameters: {
|
|
16
|
-
path: PT;
|
|
17
|
-
query: QR;
|
|
18
|
-
}, input?: string];
|
|
19
|
-
}
|
|
20
20
|
declare const __VLS_export: <U, PT, QR, 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<{
|
|
21
21
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XSelectRequestProps<U, PT, QR, D, V> & {
|
|
22
22
|
modelValue?: MV;
|
|
@@ -4,21 +4,21 @@ import { XTableFlexEvents, XTableFlexProps } from '../../advance';
|
|
|
4
4
|
import { XTableColumnProps } from '../../basic';
|
|
5
5
|
export interface XTableConfigColumnsProps<D> extends Omit<XTableColumnProps<D>, 'content'> {
|
|
6
6
|
content?: (scope: {
|
|
7
|
-
row: D;
|
|
8
7
|
index: number;
|
|
8
|
+
row: D;
|
|
9
9
|
}) => VNodeChild;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface XTableConfigEvents<D> extends XTableFlexEvents<D> {
|
|
12
|
+
rowClick: [row: D];
|
|
13
|
+
}
|
|
14
|
+
export interface XTableConfigProps<D> extends Omit<XTableFlexProps<D>, 'columns' | 'data' | 'showOverflowTooltip'> {
|
|
15
|
+
config: Record<string, XTableConfigColumnsProps<D>>;
|
|
12
16
|
data?: D[];
|
|
13
17
|
fields: () => {
|
|
14
18
|
data: Ref<TableColumnField[]>;
|
|
15
|
-
update: (fields: TableColumnField[]) => PromiseLike<unknown>;
|
|
16
19
|
loading: Ref<boolean>;
|
|
20
|
+
update: (fields: TableColumnField[]) => PromiseLike<unknown>;
|
|
17
21
|
};
|
|
18
|
-
config: Record<string, XTableConfigColumnsProps<D>>;
|
|
19
|
-
}
|
|
20
|
-
export interface XTableConfigEvents<D> extends XTableFlexEvents<D> {
|
|
21
|
-
rowClick: [row: D];
|
|
22
22
|
}
|
|
23
23
|
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<{
|
|
24
24
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableConfigProps<D> & {
|
|
@@ -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,8 +24,6 @@ export interface XTableFlexProps<D> extends XTableProps<D> {
|
|
|
23
24
|
rowIndex: number;
|
|
24
25
|
}) => CSSProperties) | CSSProperties;
|
|
25
26
|
}
|
|
26
|
-
export interface XTableFlexEvents<D> extends XTableEvents<D> {
|
|
27
|
-
}
|
|
28
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<{
|
|
29
28
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableFlexProps<D> & {
|
|
30
29
|
onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
@@ -36,7 +35,7 @@ declare const __VLS_export: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
36
35
|
} ? P : {});
|
|
37
36
|
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
38
37
|
clearSelection: () => void | undefined;
|
|
39
|
-
getSelectionRows: () =>
|
|
38
|
+
getSelectionRows: () => import('../../basic').DefaultRow[] | undefined;
|
|
40
39
|
scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void | undefined;
|
|
41
40
|
setCurrentRow: (row: D) => void | undefined;
|
|
42
41
|
setScrollLeft: (left: number) => void | undefined;
|
|
@@ -3,44 +3,44 @@ 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;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
+
};
|
|
44
44
|
}
|
|
45
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
46
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableRequestConfigProps<U, PT, QR, D> & {
|
|
@@ -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,13 +54,6 @@ 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
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
59
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableRequestProps<U, PT, QR, D> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
}
|
|
@@ -8,11 +8,11 @@ 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
17
|
declare var __VLS_10: {};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
@@ -3,18 +3,18 @@ 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
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
20
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XCascaderProps<D, V> & {
|
|
@@ -1,10 +1,10 @@
|
|
|
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
10
|
type __VLS_ModelProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatePickerProps } from 'element-plus';
|
|
2
2
|
export interface XDateConfig {
|
|
3
|
-
valueFormat?: DatePickerProps['valueFormat'];
|
|
4
3
|
teleported?: boolean;
|
|
4
|
+
valueFormat?: DatePickerProps['valueFormat'];
|
|
5
5
|
}
|
|
6
6
|
export interface XDatePickerProps extends XDateConfig {
|
|
7
7
|
disabled?: boolean;
|
|
@@ -9,9 +9,9 @@ export interface XDatePickerProps extends XDateConfig {
|
|
|
9
9
|
endPlaceholder?: DatePickerProps['endPlaceholder'];
|
|
10
10
|
placeholder?: DatePickerProps['placeholder'];
|
|
11
11
|
shortcuts?: DatePickerProps['shortcuts'];
|
|
12
|
+
size?: DatePickerProps['size'];
|
|
12
13
|
startPlaceholder?: DatePickerProps['startPlaceholder'];
|
|
13
14
|
type?: DatePickerProps['type'];
|
|
14
|
-
size?: DatePickerProps['size'];
|
|
15
15
|
}
|
|
16
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
17
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XDatePickerProps & {
|
|
@@ -1,21 +1,21 @@
|
|
|
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
15
|
type __VLS_Slots = {
|
|
16
16
|
default?: () => VNodeChild;
|
|
17
|
-
header?: () => VNodeChild;
|
|
18
17
|
footer?: () => VNodeChild;
|
|
18
|
+
header?: () => VNodeChild;
|
|
19
19
|
};
|
|
20
20
|
type __VLS_ModelProps = {
|
|
21
21
|
modelValue?: boolean;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { InputProps } from 'element-plus';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
3
|
export interface XInputProps {
|
|
4
|
-
clearable?: InputProps['clearable'];
|
|
5
|
-
disabled?: InputProps['disabled'];
|
|
6
|
-
size?: InputProps['size'];
|
|
7
|
-
type?: InputProps['type'];
|
|
8
|
-
showPassword?: InputProps['showPassword'];
|
|
9
4
|
autocomplete?: InputProps['autocomplete'];
|
|
10
5
|
autosize?: InputProps['autosize'];
|
|
6
|
+
clearable?: InputProps['clearable'];
|
|
7
|
+
disabled?: InputProps['disabled'];
|
|
11
8
|
placeholder?: InputProps['placeholder'];
|
|
12
9
|
prefixIcon?: InputProps['prefixIcon'];
|
|
10
|
+
showPassword?: InputProps['showPassword'];
|
|
11
|
+
size?: InputProps['size'];
|
|
13
12
|
suffixIcon?: InputProps['suffixIcon'];
|
|
13
|
+
type?: InputProps['type'];
|
|
14
14
|
}
|
|
15
15
|
declare const __VLS_export: <MV extends string | number>(__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
16
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XInputProps & {
|
|
@@ -3,12 +3,12 @@ export interface XPaginationConfig {
|
|
|
3
3
|
layout?: XPaginationProps['layout'];
|
|
4
4
|
}
|
|
5
5
|
export interface XPaginationProps {
|
|
6
|
-
pageSizes?: PaginationProps['pageSizes'];
|
|
7
6
|
background?: PaginationProps['background'];
|
|
8
|
-
|
|
7
|
+
defaultPageSize?: PaginationProps['defaultPageSize'];
|
|
9
8
|
layout?: PaginationProps['layout'];
|
|
9
|
+
pageSizes?: PaginationProps['pageSizes'];
|
|
10
|
+
size?: PaginationProps['size'];
|
|
10
11
|
total?: PaginationProps['total'];
|
|
11
|
-
defaultPageSize?: PaginationProps['defaultPageSize'];
|
|
12
12
|
}
|
|
13
13
|
type __VLS_Props = XPaginationProps;
|
|
14
14
|
type __VLS_ModelProps = {
|
|
@@ -21,13 +21,13 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
default?: (props: typeof __VLS_11) => any;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
-
sizeChange: (size: number) => any;
|
|
25
24
|
currentChange: (current: number) => any;
|
|
25
|
+
sizeChange: (size: number) => any;
|
|
26
26
|
"update:currentPage": (value: number | undefined) => any;
|
|
27
27
|
"update:pageSize": (value: number | undefined) => any;
|
|
28
28
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
-
onSizeChange?: ((size: number) => any) | undefined;
|
|
30
29
|
onCurrentChange?: ((current: number) => any) | undefined;
|
|
30
|
+
onSizeChange?: ((size: number) => any) | undefined;
|
|
31
31
|
"onUpdate:currentPage"?: ((value: number | undefined) => any) | undefined;
|
|
32
32
|
"onUpdate:pageSize"?: ((value: number | undefined) => any) | undefined;
|
|
33
33
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
1
|
import { SelectProps } from 'element-plus';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
export interface XSelectEvents<V> {
|
|
4
|
+
blur: [e: FocusEvent];
|
|
5
|
+
change: [value: V];
|
|
6
|
+
focus: [e: FocusEvent];
|
|
7
|
+
}
|
|
3
8
|
export interface XSelectOptionProps<V> {
|
|
4
9
|
disabled?: boolean;
|
|
5
10
|
label?: number | string;
|
|
11
|
+
render?: () => VNode;
|
|
6
12
|
value: V;
|
|
7
|
-
render?: VNodeChild;
|
|
8
13
|
}
|
|
9
14
|
export interface XSelectProps<D, V> {
|
|
10
|
-
collapseTagsTooltip?: SelectProps['collapseTagsTooltip'];
|
|
11
|
-
defaultFirstOption?: SelectProps['defaultFirstOption'];
|
|
12
|
-
clearable?: SelectProps['clearable'];
|
|
13
15
|
allowCreate?: SelectProps['allowCreate'];
|
|
16
|
+
clearable?: SelectProps['clearable'];
|
|
14
17
|
collapseTags?: SelectProps['collapseTags'];
|
|
18
|
+
collapseTagsTooltip?: SelectProps['collapseTagsTooltip'];
|
|
15
19
|
data?: D[];
|
|
20
|
+
defaultFirstOption?: SelectProps['defaultFirstOption'];
|
|
16
21
|
disabled?: SelectProps['disabled'];
|
|
17
22
|
factory: (option: D) => XSelectOptionProps<V>;
|
|
18
23
|
filterable?: SelectProps['filterable'];
|
|
19
24
|
identify?: (value: V) => number | string;
|
|
20
25
|
loading?: SelectProps['loading'];
|
|
21
26
|
multiple?: SelectProps['multiple'];
|
|
27
|
+
placeholder?: SelectProps['placeholder'];
|
|
22
28
|
remote?: SelectProps['remote'];
|
|
23
29
|
remoteMethod?: (query: string) => void;
|
|
24
30
|
size?: SelectProps['size'];
|
|
25
31
|
supplement?: (lacks: V[]) => D[] | PromiseLike<D[]>;
|
|
26
|
-
placeholder?: SelectProps['placeholder'];
|
|
27
|
-
}
|
|
28
|
-
export interface XSelectEvents<V> {
|
|
29
|
-
blur: [e: FocusEvent];
|
|
30
|
-
change: [value: V];
|
|
31
|
-
focus: [e: FocusEvent];
|
|
32
32
|
}
|
|
33
33
|
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<{
|
|
34
34
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XSelectProps<D, V> & {
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { TableColumnCtx, TableProps } from 'element-plus';
|
|
2
2
|
import { CSSProperties, VNode, VNodeChild } from 'vue';
|
|
3
|
-
export
|
|
4
|
-
/**
|
|
5
|
-
* 是否隐藏额外内容并在单元格悬停时使用 Tooltip 显示它们。这将影响全部列的展示
|
|
6
|
-
* @default false
|
|
7
|
-
*/
|
|
8
|
-
showOverflowTooltip?: TableProps<any>['showOverflowTooltip'];
|
|
9
|
-
border?: TableProps<any>['border'];
|
|
10
|
-
fit?: TableProps<any>['fit'];
|
|
11
|
-
emptyText?: TableProps<any>['emptyText'];
|
|
12
|
-
headerAlign?: string;
|
|
13
|
-
align?: string;
|
|
14
|
-
}
|
|
3
|
+
export type DefaultRow = Record<PropertyKey, unknown>;
|
|
15
4
|
export interface XTableColumnProps<D> {
|
|
5
|
+
align?: string;
|
|
6
|
+
columnKey?: string;
|
|
16
7
|
content?: (scope: {
|
|
17
8
|
index: number;
|
|
18
9
|
row: D;
|
|
@@ -21,17 +12,33 @@ export interface XTableColumnProps<D> {
|
|
|
21
12
|
header?: (scope: {
|
|
22
13
|
column: XTableColumnProps<D>;
|
|
23
14
|
}) => VNodeChild;
|
|
15
|
+
headerAlign?: string;
|
|
24
16
|
label?: string;
|
|
17
|
+
minWidth?: number;
|
|
25
18
|
prop?: string;
|
|
26
19
|
selectable?: (row: D, index: number) => boolean;
|
|
27
20
|
type?: 'index' | 'selection';
|
|
28
21
|
width?: number;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
headerAlign?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface XTableConfig {
|
|
32
24
|
align?: string;
|
|
25
|
+
border?: TableProps<DefaultRow>['border'];
|
|
26
|
+
emptyText?: TableProps<DefaultRow>['emptyText'];
|
|
27
|
+
fit?: TableProps<DefaultRow>['fit'];
|
|
28
|
+
headerAlign?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 是否隐藏额外内容并在单元格悬停时使用 Tooltip 显示它们。这将影响全部列的展示
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
showOverflowTooltip?: TableProps<DefaultRow>['showOverflowTooltip'];
|
|
33
34
|
}
|
|
34
|
-
export interface
|
|
35
|
+
export interface XTableEvents<D> {
|
|
36
|
+
headerDragend: [newWidth: number, oldWidth: number, column: TableColumnCtx];
|
|
37
|
+
rowClick: [row: D];
|
|
38
|
+
rowDblclick: [row: D];
|
|
39
|
+
selectionChange: [rows: D[]];
|
|
40
|
+
}
|
|
41
|
+
export interface XTableProps<D extends DefaultRow> extends XTableConfig {
|
|
35
42
|
cellClassName?: ((scope: {
|
|
36
43
|
column: TableColumnCtx;
|
|
37
44
|
columnIndex: number;
|
|
@@ -46,41 +53,33 @@ export interface XTableProps<D> extends XTableConfig {
|
|
|
46
53
|
}) => CSSProperties) | CSSProperties;
|
|
47
54
|
columns?: XTableColumnProps<D>[];
|
|
48
55
|
data?: D[];
|
|
49
|
-
height?: TableProps<
|
|
56
|
+
height?: TableProps<D>['height'];
|
|
50
57
|
rowClassName?: ((scope: {
|
|
51
58
|
row: D;
|
|
52
59
|
rowIndex: number;
|
|
53
60
|
}) => string) | string;
|
|
61
|
+
rowKey?: ((row: D) => string) | string;
|
|
54
62
|
rowStyle?: ((scope: {
|
|
55
63
|
row: D;
|
|
56
64
|
rowIndex: number;
|
|
57
65
|
}) => CSSProperties) | CSSProperties;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}) => string;
|
|
61
|
-
showSummary?: TableProps<any>['showSummary'];
|
|
62
|
-
size?: TableProps<any>['size'];
|
|
66
|
+
showSummary?: TableProps<D>['showSummary'];
|
|
67
|
+
size?: TableProps<D>['size'];
|
|
63
68
|
spanMethod?: (scope: {
|
|
64
69
|
column: TableColumnCtx;
|
|
65
70
|
columnIndex: number;
|
|
66
71
|
row: D;
|
|
67
72
|
rowIndex: number;
|
|
68
|
-
}) =>
|
|
73
|
+
}) => {
|
|
69
74
|
colspan: number;
|
|
70
75
|
rowspan: number;
|
|
71
|
-
};
|
|
76
|
+
} | number[] | undefined;
|
|
72
77
|
summaryMethod?: (scope: {
|
|
73
78
|
columns: TableColumnCtx[];
|
|
74
79
|
data: D[];
|
|
75
80
|
}) => (string | VNode)[];
|
|
76
81
|
}
|
|
77
|
-
|
|
78
|
-
headerDragend: [newWidth: number, oldWidth: number, column: TableColumnCtx];
|
|
79
|
-
rowClick: [row: D];
|
|
80
|
-
rowDblclick: [row: D];
|
|
81
|
-
selectionChange: [rows: D[]];
|
|
82
|
-
}
|
|
83
|
-
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<{
|
|
82
|
+
declare const __VLS_export: <D extends DefaultRow>(__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<{
|
|
84
83
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableProps<D> & {
|
|
85
84
|
onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
86
85
|
onRowClick?: ((row: D) => any) | undefined;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { TabsProps } from 'element-plus';
|
|
2
2
|
import { VNodeChild } from 'vue';
|
|
3
|
+
export interface XTabsEvents<V> {
|
|
4
|
+
change: [name: V];
|
|
5
|
+
edit: [name: V, action: 'add' | 'remove'];
|
|
6
|
+
remove: [name: V];
|
|
7
|
+
}
|
|
3
8
|
export interface XTabsProps {
|
|
4
9
|
addable?: TabsProps['addable'];
|
|
5
10
|
editable?: TabsProps['editable'];
|
|
6
11
|
tabPosition?: TabsProps['tabPosition'];
|
|
7
12
|
type?: TabsProps['type'];
|
|
8
13
|
}
|
|
9
|
-
export interface XTabsEvents<V> {
|
|
10
|
-
change: [name: V];
|
|
11
|
-
remove: [name: V];
|
|
12
|
-
edit: [name: V, action: 'remove' | 'add'];
|
|
13
|
-
}
|
|
14
14
|
declare const __VLS_export: <V extends string | number>(__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<{
|
|
15
15
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<(XTabsProps & {
|
|
16
16
|
modelValue?: V;
|
|
@@ -25,8 +25,8 @@ declare const __VLS_export: <V extends string | number>(__VLS_props: NonNullable
|
|
|
25
25
|
expose: (exposed: {}) => void;
|
|
26
26
|
attrs: any;
|
|
27
27
|
slots: {
|
|
28
|
-
default: () => VNodeChild;
|
|
29
28
|
addIcon: () => VNodeChild;
|
|
29
|
+
default: () => VNodeChild;
|
|
30
30
|
};
|
|
31
31
|
emit: (((evt: "change", name: V) => void) & ((evt: "remove", name: V) => void) & ((evt: "edit", name: V, action: "add" | "remove") => void)) & ((event: "update:modelValue", value: V | undefined) => void);
|
|
32
32
|
}>) => import('vue').VNode & {
|