@xingm/xui 1.0.1 → 1.0.2
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/style.css +1 -1
- package/dist/types/src/components/Button/src/XButton.vue.d.ts.map +1 -1
- package/dist/types/src/components/Card/src/XCard.vue.d.ts.map +1 -1
- package/dist/types/src/components/Descriptions/index.d.ts +3 -0
- package/dist/types/src/components/Descriptions/index.d.ts.map +1 -0
- package/dist/types/src/components/Descriptions/src/XDescriptions.vue.d.ts +78 -0
- package/dist/types/src/components/Descriptions/src/XDescriptions.vue.d.ts.map +1 -0
- package/dist/types/src/components/Descriptions/src/XDescriptionsItem.vue.d.ts +43 -0
- package/dist/types/src/components/Descriptions/src/XDescriptionsItem.vue.d.ts.map +1 -0
- package/dist/types/src/components/Drawer/index.d.ts +2 -0
- package/dist/types/src/components/Drawer/index.d.ts.map +1 -0
- package/dist/types/src/components/Drawer/src/XDrawer.vue.d.ts +143 -0
- package/dist/types/src/components/Drawer/src/XDrawer.vue.d.ts.map +1 -0
- package/dist/types/src/components/Empty/src/XEmpty.vue.d.ts +1 -37
- package/dist/types/src/components/Empty/src/XEmpty.vue.d.ts.map +1 -1
- package/dist/types/src/components/Loading/src/XLoading.vue.d.ts +15 -0
- package/dist/types/src/components/Loading/src/XLoading.vue.d.ts.map +1 -1
- package/dist/types/src/components/Modal/src/XModal.vue.d.ts +63 -21
- package/dist/types/src/components/Modal/src/XModal.vue.d.ts.map +1 -1
- package/dist/types/src/components/SearchForm/index.d.ts +2 -0
- package/dist/types/src/components/SearchForm/index.d.ts.map +1 -0
- package/dist/types/src/components/SearchForm/src/XSearchForm.vue.d.ts +84 -0
- package/dist/types/src/components/SearchForm/src/XSearchForm.vue.d.ts.map +1 -0
- package/dist/types/src/components/Table/src/XTable.vue.d.ts +1 -1
- package/dist/types/src/components/Table/src/components/TableAction.vue.d.ts +3 -3
- package/dist/types/src/components/Table/src/hooks/useColumns.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +7 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/xui.es.js +2547 -2151
- package/dist/xui.umd.js +4 -4
- package/package.json +76 -75
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表单项配置
|
|
3
|
+
*/
|
|
4
|
+
export interface SearchFormSchema {
|
|
5
|
+
label: string | ((item: SearchFormSchema) => string);
|
|
6
|
+
field: string;
|
|
7
|
+
component?: string;
|
|
8
|
+
props?: Record<string, any>;
|
|
9
|
+
span?: number;
|
|
10
|
+
slot?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
schema: {
|
|
14
|
+
type: () => SearchFormSchema[];
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
expandText: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
collapseText: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
resetText: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
searchText: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}>, {
|
|
34
|
+
setFieldsValue: (values: Record<string, any>) => void;
|
|
35
|
+
getFieldsValue: () => {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
};
|
|
38
|
+
resetFields: () => void;
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
reset: (...args: any[]) => void;
|
|
41
|
+
toggle: (...args: any[]) => void;
|
|
42
|
+
search: (...args: any[]) => void;
|
|
43
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
+
schema: {
|
|
45
|
+
type: () => SearchFormSchema[];
|
|
46
|
+
default: () => never[];
|
|
47
|
+
};
|
|
48
|
+
expandText: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
collapseText: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
resetText: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
searchText: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onToggle?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
schema: SearchFormSchema[];
|
|
70
|
+
expandText: string;
|
|
71
|
+
collapseText: string;
|
|
72
|
+
resetText: string;
|
|
73
|
+
searchText: string;
|
|
74
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {
|
|
75
|
+
form: Record<string, any>;
|
|
76
|
+
item: SearchFormSchema;
|
|
77
|
+
}) => any>>>;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=XSearchForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XSearchForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SearchForm/src/XSearchForm.vue"],"names":[],"mappings":"AA4CA;AAIA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,gBAAgB,KAAK,MAAM,CAAC,CAAA;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAocD,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -498,8 +498,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
498
498
|
}>, {
|
|
499
499
|
size: SizeType;
|
|
500
500
|
title: string | ((data: import('./types/table').Recordable) => string);
|
|
501
|
-
inset: boolean;
|
|
502
501
|
ellipsis: boolean;
|
|
502
|
+
inset: boolean;
|
|
503
503
|
showTableSetting: boolean;
|
|
504
504
|
tableSetting: import('./types/table').TableSetting;
|
|
505
505
|
pagination: boolean | import('..').PaginationProps;
|
|
@@ -21,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
21
21
|
actions?: ActionItem[] | undefined;
|
|
22
22
|
dropDownActions?: ActionItem[] | undefined;
|
|
23
23
|
divider?: boolean | undefined;
|
|
24
|
-
align?: "
|
|
24
|
+
align?: "left" | "right" | "center" | undefined;
|
|
25
25
|
outside?: boolean | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
actions: () => never[];
|
|
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
35
35
|
actions?: ActionItem[] | undefined;
|
|
36
36
|
dropDownActions?: ActionItem[] | undefined;
|
|
37
37
|
divider?: boolean | undefined;
|
|
38
|
-
align?: "
|
|
38
|
+
align?: "left" | "right" | "center" | undefined;
|
|
39
39
|
outside?: boolean | undefined;
|
|
40
40
|
}>, {
|
|
41
41
|
actions: () => never[];
|
|
@@ -48,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
48
48
|
}>, {
|
|
49
49
|
actions: ActionItem[];
|
|
50
50
|
outside: boolean;
|
|
51
|
-
align: "
|
|
51
|
+
align: "left" | "right" | "center";
|
|
52
52
|
dropDownActions: ActionItem[];
|
|
53
53
|
divider: boolean;
|
|
54
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Table/src/hooks/useColumns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAiLvC;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,OA4B7F;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE;IAAE,KAAK,EAAE,eAAe,CAAA;CAAE,GAAG,WAAW,CAAC,eAAe,CAAC,EACnE,gBAAgB,EAAE;IAAE,KAAK,EAAE,OAAO,GAAG,eAAe,CAAA;CAAE;;;
|
|
1
|
+
{"version":3,"file":"useColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Table/src/hooks/useColumns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAiLvC;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,OA4B7F;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE;IAAE,KAAK,EAAE,eAAe,CAAA;CAAE,GAAG,WAAW,CAAC,eAAe,CAAC,EACnE,gBAAgB,EAAE;IAAE,KAAK,EAAE,OAAO,GAAG,eAAe,CAAA;CAAE;;;uBAwM5B,gBAAgB;6BAnDV,QAAQ,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE;wBA2FnD,MAAM,OAAO,GAAG;;wCA9GA,MAAM,GAAG,SAAS,SAAS,QAAQ,WAAW,CAAC;+BAkGxD,WAAW,EAAE;EA0BhD"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
export { default as XButton } from './Button/src/XButton.vue';
|
|
2
2
|
export { default as XCard } from './Card/src/XCard.vue';
|
|
3
3
|
export { default as XModal } from './Modal/src/XModal.vue';
|
|
4
|
+
export { default as XDrawer } from './Drawer/src/XDrawer.vue';
|
|
5
|
+
export { default as XDescriptions } from './Descriptions/src/XDescriptions.vue';
|
|
6
|
+
export { default as XDescriptionsItem } from './Descriptions/src/XDescriptionsItem.vue';
|
|
4
7
|
export { default as XLoading } from './Loading/src/XLoading.vue';
|
|
5
8
|
export { default as XEmpty } from './Empty/src/XEmpty.vue';
|
|
6
9
|
export { default as XTable } from './Table/src/XTable.vue';
|
|
10
|
+
export { default as XSearchForm } from './SearchForm/src/XSearchForm.vue';
|
|
7
11
|
export * from './Button';
|
|
8
12
|
export * from './Card';
|
|
9
13
|
export * from './Modal';
|
|
14
|
+
export * from './Drawer';
|
|
15
|
+
export * from './Descriptions';
|
|
10
16
|
export * from './Loading';
|
|
11
17
|
export * from './Empty';
|
|
12
18
|
export * from './Table';
|
|
19
|
+
export * from './SearchForm';
|
|
13
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEzE,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA"}
|