@duxweb/dvha-pro 1.0.21 → 1.0.23
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/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/code/code.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
- package/dist/cjs/components/form/drawerForm.cjs +1 -0
- package/dist/cjs/components/form/formItem.cjs +1 -1
- package/dist/cjs/components/form/formLayout.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/media/media.cjs +1 -1
- package/dist/cjs/components/panel/setting.cjs +1 -1
- package/dist/cjs/components/status/listEmpty.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/tree/treeFilter.cjs +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +3 -2
- package/dist/esm/component.js +3 -3
- package/dist/esm/components/card/card.js +1 -1
- package/dist/esm/components/code/code.js +6 -6
- package/dist/esm/components/drawer/drawer.js +11 -10
- package/dist/esm/components/drawer/drawerPage.js +10 -10
- package/dist/esm/components/form/drawerForm.js +149 -0
- package/dist/esm/components/form/formItem.js +44 -28
- package/dist/esm/components/form/formLayout.js +12 -7
- package/dist/esm/components/form/modalForm.js +1 -1
- package/dist/esm/components/form/pageForm.js +1 -1
- package/dist/esm/components/media/media.js +4 -4
- package/dist/esm/components/panel/setting.js +1 -1
- package/dist/esm/components/status/listEmpty.js +8 -6
- package/dist/esm/components/table/table.js +24 -23
- package/dist/esm/components/table/tablePage.js +16 -15
- package/dist/esm/components/tree/treeFilter.js +2 -1
- package/dist/esm/hooks/action.js +82 -82
- package/dist/esm/index.js +166 -164
- package/dist/esm/theme/uno.css.js +3 -2
- package/dist/types/components/drawer/drawerPage.d.ts +1 -1
- package/dist/types/components/form/drawerForm.d.ts +98 -0
- package/dist/types/components/form/formItem.d.ts +17 -1
- package/dist/types/components/form/formLayout.d.ts +9 -0
- package/dist/types/components/form/index.d.ts +1 -0
- package/dist/types/components/form/modalForm.d.ts +9 -0
- package/dist/types/hooks/table/media.d.ts +1 -1
- package/dist/types/hooks/table/types.d.ts +2 -2
- package/dist/types/main.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const r = `/* layer: properties */
|
|
2
|
-
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-
|
|
2
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:0;--un-border-style:solid;--un-divide-x-reverse:0;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-to-opacity:100%;--un-outline-style:solid;--un-fill-opacity:100%;}}
|
|
3
3
|
@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
4
4
|
@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
5
5
|
@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
@@ -1179,6 +1179,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1179
1179
|
.h-full{height:100%;}
|
|
1180
1180
|
.h-screen{height:100vh;}
|
|
1181
1181
|
.max-h-0{max-height:calc(var(--spacing) * 0);}
|
|
1182
|
+
.max-h-120px{max-height:120px;}
|
|
1182
1183
|
.max-h-500{max-height:calc(var(--spacing) * 500);}
|
|
1183
1184
|
.max-h-500px{max-height:500px;}
|
|
1184
1185
|
.max-w-180{max-width:calc(var(--spacing) * 180);}
|
|
@@ -1389,7 +1390,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1389
1390
|
.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
|
|
1390
1391
|
.md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
|
|
1391
1392
|
.md\\:h-auto{height:auto;}
|
|
1392
|
-
.md\\:w-
|
|
1393
|
+
.md\\:w-40\\%{width:40%;}
|
|
1393
1394
|
.md\\:shadow{--un-shadow:0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
|
|
1394
1395
|
.md\\:items-start{align-items:flex-start;}
|
|
1395
1396
|
.md\\:items-center{align-items:center;}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { IDataProviderError, IDataProviderResponse } from '@duxweb/dvha-core';
|
|
2
|
+
import type { MaybeRef, PropType } from 'vue';
|
|
3
|
+
export declare const DuxDrawerForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
id: {
|
|
5
|
+
type: PropType<string | number>;
|
|
6
|
+
};
|
|
7
|
+
action: {
|
|
8
|
+
type: PropType<"create" | "edit">;
|
|
9
|
+
};
|
|
10
|
+
path: {
|
|
11
|
+
type: PropType<string>;
|
|
12
|
+
};
|
|
13
|
+
data: {
|
|
14
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
15
|
+
};
|
|
16
|
+
onClose: {
|
|
17
|
+
type: PropType<() => void>;
|
|
18
|
+
};
|
|
19
|
+
title: {
|
|
20
|
+
type: PropType<string>;
|
|
21
|
+
};
|
|
22
|
+
onSuccess: {
|
|
23
|
+
type: PropType<(data?: IDataProviderResponse) => void>;
|
|
24
|
+
};
|
|
25
|
+
onError: {
|
|
26
|
+
type: PropType<(error?: IDataProviderError) => void>;
|
|
27
|
+
};
|
|
28
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
29
|
+
labelPlacement: {
|
|
30
|
+
type: PropType<"left" | "top" | "setting" | "page">;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
labelAlign: {
|
|
34
|
+
type: PropType<"left" | "right">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
labelWidth: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
};
|
|
40
|
+
inline: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
divider: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
labelPlacement: {
|
|
50
|
+
type: PropType<"left" | "top" | "setting" | "page">;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
labelAlign: {
|
|
54
|
+
type: PropType<"left" | "right">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
labelWidth: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
};
|
|
60
|
+
inline: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
divider: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{}>, {
|
|
69
|
+
inline: boolean;
|
|
70
|
+
labelAlign: "left" | "right";
|
|
71
|
+
labelPlacement: "left" | "top" | "page" | "setting";
|
|
72
|
+
divider: boolean;
|
|
73
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
+
id: {
|
|
75
|
+
type: PropType<string | number>;
|
|
76
|
+
};
|
|
77
|
+
action: {
|
|
78
|
+
type: PropType<"create" | "edit">;
|
|
79
|
+
};
|
|
80
|
+
path: {
|
|
81
|
+
type: PropType<string>;
|
|
82
|
+
};
|
|
83
|
+
data: {
|
|
84
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
85
|
+
};
|
|
86
|
+
onClose: {
|
|
87
|
+
type: PropType<() => void>;
|
|
88
|
+
};
|
|
89
|
+
title: {
|
|
90
|
+
type: PropType<string>;
|
|
91
|
+
};
|
|
92
|
+
onSuccess: {
|
|
93
|
+
type: PropType<(data?: IDataProviderResponse) => void>;
|
|
94
|
+
};
|
|
95
|
+
onError: {
|
|
96
|
+
type: PropType<(error?: IDataProviderError) => void>;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -7,9 +7,16 @@ export declare const DuxFormItem: import("vue").DefineComponent<import("vue").Ex
|
|
|
7
7
|
labelPlacement: {
|
|
8
8
|
type: PropType<"left" | "top" | "setting" | "page">;
|
|
9
9
|
};
|
|
10
|
+
labelAlign: {
|
|
11
|
+
type: PropType<"left" | "right">;
|
|
12
|
+
};
|
|
10
13
|
labelWidth: {
|
|
11
14
|
type: NumberConstructor;
|
|
12
15
|
};
|
|
16
|
+
required: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
13
20
|
rule: PropType<RuleExpression<any>>;
|
|
14
21
|
message: PropType<string | Record<string, string>>;
|
|
15
22
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -19,9 +26,18 @@ export declare const DuxFormItem: import("vue").DefineComponent<import("vue").Ex
|
|
|
19
26
|
labelPlacement: {
|
|
20
27
|
type: PropType<"left" | "top" | "setting" | "page">;
|
|
21
28
|
};
|
|
29
|
+
labelAlign: {
|
|
30
|
+
type: PropType<"left" | "right">;
|
|
31
|
+
};
|
|
22
32
|
labelWidth: {
|
|
23
33
|
type: NumberConstructor;
|
|
24
34
|
};
|
|
35
|
+
required: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
25
39
|
rule: PropType<RuleExpression<any>>;
|
|
26
40
|
message: PropType<string | Record<string, string>>;
|
|
27
|
-
}>> & Readonly<{}>, {
|
|
41
|
+
}>> & Readonly<{}>, {
|
|
42
|
+
required: boolean;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -4,6 +4,10 @@ export declare const DuxFormLayout: import("vue").DefineComponent<import("vue").
|
|
|
4
4
|
type: PropType<"left" | "top" | "setting" | "page">;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
|
+
labelAlign: {
|
|
8
|
+
type: PropType<"left" | "right">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
7
11
|
labelWidth: {
|
|
8
12
|
type: NumberConstructor;
|
|
9
13
|
};
|
|
@@ -20,6 +24,10 @@ export declare const DuxFormLayout: import("vue").DefineComponent<import("vue").
|
|
|
20
24
|
type: PropType<"left" | "top" | "setting" | "page">;
|
|
21
25
|
default: string;
|
|
22
26
|
};
|
|
27
|
+
labelAlign: {
|
|
28
|
+
type: PropType<"left" | "right">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
23
31
|
labelWidth: {
|
|
24
32
|
type: NumberConstructor;
|
|
25
33
|
};
|
|
@@ -33,6 +41,7 @@ export declare const DuxFormLayout: import("vue").DefineComponent<import("vue").
|
|
|
33
41
|
};
|
|
34
42
|
}>> & Readonly<{}>, {
|
|
35
43
|
inline: boolean;
|
|
44
|
+
labelAlign: "left" | "right";
|
|
36
45
|
labelPlacement: "left" | "top" | "page" | "setting";
|
|
37
46
|
divider: boolean;
|
|
38
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -30,6 +30,10 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
|
|
|
30
30
|
type: PropType<"left" | "top" | "setting" | "page">;
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
|
+
labelAlign: {
|
|
34
|
+
type: PropType<"left" | "right">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
33
37
|
labelWidth: {
|
|
34
38
|
type: NumberConstructor;
|
|
35
39
|
};
|
|
@@ -46,6 +50,10 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
|
|
|
46
50
|
type: PropType<"left" | "top" | "setting" | "page">;
|
|
47
51
|
default: string;
|
|
48
52
|
};
|
|
53
|
+
labelAlign: {
|
|
54
|
+
type: PropType<"left" | "right">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
49
57
|
labelWidth: {
|
|
50
58
|
type: NumberConstructor;
|
|
51
59
|
};
|
|
@@ -59,6 +67,7 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
|
|
|
59
67
|
};
|
|
60
68
|
}>> & Readonly<{}>, {
|
|
61
69
|
inline: boolean;
|
|
70
|
+
labelAlign: "left" | "right";
|
|
62
71
|
labelPlacement: "left" | "top" | "page" | "setting";
|
|
63
72
|
divider: boolean;
|
|
64
73
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2,7 +2,7 @@ import type { VNode } from 'vue';
|
|
|
2
2
|
export interface UseTableColumnMediaProps {
|
|
3
3
|
image?: string | string[] | ((rowData: Record<string, any>) => VNode | string | string[]);
|
|
4
4
|
avatar?: boolean;
|
|
5
|
-
title?: string | ((rowData: Record<string, any>) => VNode);
|
|
5
|
+
title?: string | ((rowData: Record<string, any>) => VNode | string);
|
|
6
6
|
desc?: string | string[] | ((rowData: Record<string, any>) => VNode | string | string[]);
|
|
7
7
|
imageWidth?: number;
|
|
8
8
|
imageHeight?: number;
|
|
@@ -33,14 +33,14 @@ export interface ConfirmActionItem extends BaseActionItem {
|
|
|
33
33
|
export interface RequestActionItem extends BaseActionItem {
|
|
34
34
|
type: 'request';
|
|
35
35
|
method?: 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
36
|
-
path?: string;
|
|
36
|
+
path: string | ((id?: unknown, item?: Record<string, any>) => string);
|
|
37
37
|
data?: Record<string, any> | ((id?: unknown, item?: Record<string, any>) => Record<string, any>);
|
|
38
38
|
content?: string;
|
|
39
39
|
}
|
|
40
40
|
export interface DeleteActionItem extends BaseActionItem {
|
|
41
41
|
type: 'delete';
|
|
42
42
|
content?: string;
|
|
43
|
-
path?: string;
|
|
43
|
+
path: string | ((id?: unknown, item?: Record<string, any>) => string);
|
|
44
44
|
}
|
|
45
45
|
export interface CallbackActionItem extends BaseActionItem {
|
|
46
46
|
type: 'callback';
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { IDataProviderResponse, IS3SignData } from '@duxweb/dvha-core';
|
|
1
2
|
import type { App } from 'vue';
|
|
2
3
|
import 'echarts';
|
|
3
4
|
import 'vue-cropper/dist/index.css';
|
|
4
5
|
import 'aieditor/dist/style.css';
|
|
5
6
|
import './theme/style.scss';
|
|
6
|
-
import { IDataProviderResponse, IS3SignData } from '@duxweb/dvha-core';
|
|
7
7
|
export declare function createDuxPro(): {
|
|
8
8
|
install(app: App): void;
|
|
9
9
|
};
|
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.23",
|
|
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.23",
|
|
37
|
+
"@duxweb/dvha-naiveui": "^1.0.23",
|
|
38
38
|
"@iconify-json/tabler": "^1.2.18",
|
|
39
39
|
"@overlastic/vue": "^0.8.1",
|
|
40
40
|
"@tanstack/vue-query": "^5.80.7",
|