@duxweb/dvha-pro 1.0.46 → 1.0.47
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/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +1 -7
- package/dist/esm/components/layout/list.js +95 -86
- package/dist/esm/components/layout/table.js +122 -117
- package/dist/esm/components/layout/tools.js +109 -32
- package/dist/esm/components/list/card.js +27 -22
- package/dist/esm/components/list/list.js +16 -11
- package/dist/esm/components/table/table.js +31 -27
- package/dist/esm/components/table/tablePage.js +17 -12
- package/dist/esm/hooks/table.js +25 -19
- package/dist/esm/langs/en-US.json.js +1 -1
- package/dist/esm/langs/zh-CN.json.js +1 -1
- package/dist/esm/theme/uno.css.js +1 -7
- package/dist/types/components/layout/list.d.ts +7 -0
- package/dist/types/components/layout/table.d.ts +7 -0
- package/dist/types/components/layout/tools.d.ts +28 -2
- package/dist/types/components/list/card.d.ts +6 -0
- package/dist/types/components/list/list.d.ts +6 -0
- package/dist/types/components/table/tablePage.d.ts +6 -0
- package/package.json +3 -3
|
@@ -2,6 +2,7 @@ import type { JsonSchemaNode } from '@duxweb/dvha-core';
|
|
|
2
2
|
import type { TableColumn, TablePagination, UseNaiveTableReturn, UseTableProps } from '@duxweb/dvha-naiveui';
|
|
3
3
|
import type { PropType } from 'vue';
|
|
4
4
|
import type { UseActionItem } from '../../hooks';
|
|
5
|
+
import type { DuxToolOptionItem } from './tools';
|
|
5
6
|
export interface TablePageTools {
|
|
6
7
|
import?: boolean;
|
|
7
8
|
export?: boolean;
|
|
@@ -56,6 +57,9 @@ export declare const DuxTableLayout: import("vue").DefineComponent<import("vue")
|
|
|
56
57
|
type: StringConstructor;
|
|
57
58
|
default: string;
|
|
58
59
|
};
|
|
60
|
+
batchOptions: {
|
|
61
|
+
type: PropType<DuxToolOptionItem[]>;
|
|
62
|
+
};
|
|
59
63
|
hookTableProps: {
|
|
60
64
|
type: PropType<Partial<UseTableProps>>;
|
|
61
65
|
};
|
|
@@ -105,6 +109,9 @@ export declare const DuxTableLayout: import("vue").DefineComponent<import("vue")
|
|
|
105
109
|
type: StringConstructor;
|
|
106
110
|
default: string;
|
|
107
111
|
};
|
|
112
|
+
batchOptions: {
|
|
113
|
+
type: PropType<DuxToolOptionItem[]>;
|
|
114
|
+
};
|
|
108
115
|
hookTableProps: {
|
|
109
116
|
type: PropType<Partial<UseTableProps>>;
|
|
110
117
|
};
|
|
@@ -3,12 +3,24 @@ import type { PropType } from 'vue';
|
|
|
3
3
|
export interface DuxToolOptionItem {
|
|
4
4
|
label?: string;
|
|
5
5
|
icon?: string;
|
|
6
|
-
|
|
6
|
+
key?: string;
|
|
7
|
+
onClick?: (ids: unknown[]) => void;
|
|
7
8
|
loading?: boolean;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
type?: 'default' | 'error' | 'success' | 'warning';
|
|
10
11
|
}
|
|
11
12
|
export declare const DuxTableTools: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
selecteds: {
|
|
14
|
+
type: PropType<unknown[]>;
|
|
15
|
+
default: never[];
|
|
16
|
+
};
|
|
17
|
+
isLoading: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
onBatch: {
|
|
22
|
+
type: PropType<(type: string, data?: Record<string, any>) => void>;
|
|
23
|
+
};
|
|
12
24
|
number: {
|
|
13
25
|
type: NumberConstructor;
|
|
14
26
|
};
|
|
@@ -22,6 +34,17 @@ export declare const DuxTableTools: import("vue").DefineComponent<import("vue").
|
|
|
22
34
|
type: PropType<DropdownOption[]>;
|
|
23
35
|
};
|
|
24
36
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
selecteds: {
|
|
38
|
+
type: PropType<unknown[]>;
|
|
39
|
+
default: never[];
|
|
40
|
+
};
|
|
41
|
+
isLoading: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
onBatch: {
|
|
46
|
+
type: PropType<(type: string, data?: Record<string, any>) => void>;
|
|
47
|
+
};
|
|
25
48
|
number: {
|
|
26
49
|
type: NumberConstructor;
|
|
27
50
|
};
|
|
@@ -34,4 +57,7 @@ export declare const DuxTableTools: import("vue").DefineComponent<import("vue").
|
|
|
34
57
|
dropdown: {
|
|
35
58
|
type: PropType<DropdownOption[]>;
|
|
36
59
|
};
|
|
37
|
-
}>> & Readonly<{}>, {
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
isLoading: boolean;
|
|
62
|
+
selecteds: unknown[];
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -68,6 +68,9 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
|
|
|
68
68
|
type: StringConstructor;
|
|
69
69
|
default: string;
|
|
70
70
|
};
|
|
71
|
+
batchOptions: {
|
|
72
|
+
type: import("vue").PropType<import("..").DuxToolOptionItem[]>;
|
|
73
|
+
};
|
|
71
74
|
hookListProps: {
|
|
72
75
|
type: import("vue").PropType<import("@duxweb/dvha-core").UseExtendListProps>;
|
|
73
76
|
};
|
|
@@ -114,6 +117,9 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
|
|
|
114
117
|
type: StringConstructor;
|
|
115
118
|
default: string;
|
|
116
119
|
};
|
|
120
|
+
batchOptions: {
|
|
121
|
+
type: import("vue").PropType<import("..").DuxToolOptionItem[]>;
|
|
122
|
+
};
|
|
117
123
|
hookListProps: {
|
|
118
124
|
type: import("vue").PropType<import("@duxweb/dvha-core").UseExtendListProps>;
|
|
119
125
|
};
|
|
@@ -56,6 +56,9 @@ export declare const DuxListPage: import("vue").DefineComponent<import("vue").Ex
|
|
|
56
56
|
type: StringConstructor;
|
|
57
57
|
default: string;
|
|
58
58
|
};
|
|
59
|
+
batchOptions: {
|
|
60
|
+
type: import("vue").PropType<import("..").DuxToolOptionItem[]>;
|
|
61
|
+
};
|
|
59
62
|
hookListProps: {
|
|
60
63
|
type: import("vue").PropType<import("@duxweb/dvha-core").UseExtendListProps>;
|
|
61
64
|
};
|
|
@@ -102,6 +105,9 @@ export declare const DuxListPage: import("vue").DefineComponent<import("vue").Ex
|
|
|
102
105
|
type: StringConstructor;
|
|
103
106
|
default: string;
|
|
104
107
|
};
|
|
108
|
+
batchOptions: {
|
|
109
|
+
type: import("vue").PropType<import("..").DuxToolOptionItem[]>;
|
|
110
|
+
};
|
|
105
111
|
hookListProps: {
|
|
106
112
|
type: import("vue").PropType<import("@duxweb/dvha-core").UseExtendListProps>;
|
|
107
113
|
};
|
|
@@ -51,6 +51,9 @@ export declare const DuxTablePage: import("vue").DefineComponent<import("vue").E
|
|
|
51
51
|
type: StringConstructor;
|
|
52
52
|
default: string;
|
|
53
53
|
};
|
|
54
|
+
batchOptions: {
|
|
55
|
+
type: PropType<import("..").DuxToolOptionItem[]>;
|
|
56
|
+
};
|
|
54
57
|
hookTableProps: {
|
|
55
58
|
type: PropType<Partial<import("@duxweb/dvha-naiveui").UseTableProps>>;
|
|
56
59
|
};
|
|
@@ -100,6 +103,9 @@ export declare const DuxTablePage: import("vue").DefineComponent<import("vue").E
|
|
|
100
103
|
type: StringConstructor;
|
|
101
104
|
default: string;
|
|
102
105
|
};
|
|
106
|
+
batchOptions: {
|
|
107
|
+
type: PropType<import("..").DuxToolOptionItem[]>;
|
|
108
|
+
};
|
|
103
109
|
hookTableProps: {
|
|
104
110
|
type: PropType<Partial<import("@duxweb/dvha-naiveui").UseTableProps>>;
|
|
105
111
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-pro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.47",
|
|
5
5
|
"author": "DuxWeb",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ant-design/colors": "^7.2.1",
|
|
36
|
-
"@duxweb/dvha-core": "^1.0.
|
|
37
|
-
"@duxweb/dvha-naiveui": "^1.0.
|
|
36
|
+
"@duxweb/dvha-core": "^1.0.47",
|
|
37
|
+
"@duxweb/dvha-naiveui": "^1.0.47",
|
|
38
38
|
"@iconify-json/tabler": "^1.2.18",
|
|
39
39
|
"@overlastic/vue": "^0.8.1",
|
|
40
40
|
"@tanstack/vue-query": "^5.80.7",
|