vxe-pc-ui 1.8.13 → 1.9.0
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/es/alert/index.js +10 -0
- package/es/alert/src/alert.js +103 -0
- package/es/alert/style.css +129 -0
- package/es/alert/style.min.css +1 -0
- package/es/components.js +3 -0
- package/es/drawer/src/drawer.js +3 -1
- package/es/drawer/style.css +3 -2
- package/es/drawer/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/image/src/image.js +14 -3
- package/es/image/src/preview.js +217 -47
- package/es/image/src/util.js +1 -2
- package/es/image-preview/style.css +6 -4
- package/es/image-preview/style.min.css +1 -1
- package/es/modal/src/modal.js +3 -1
- package/es/modal/style.css +3 -1
- package/es/modal/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tag/style.css +6 -6
- package/es/tag/style.min.css +1 -1
- package/es/tips/style.css +10 -9
- package/es/tips/style.min.css +1 -1
- package/es/ui/index.js +14 -3
- package/es/vxe-alert/index.js +3 -0
- package/es/vxe-alert/style.css +129 -0
- package/es/vxe-alert/style.min.css +1 -0
- package/es/vxe-drawer/style.css +3 -2
- package/es/vxe-drawer/style.min.css +1 -1
- package/es/vxe-image-preview/style.css +6 -4
- package/es/vxe-image-preview/style.min.css +1 -1
- package/es/vxe-modal/style.css +3 -1
- package/es/vxe-modal/style.min.css +1 -1
- package/es/vxe-tag/style.css +6 -6
- package/es/vxe-tag/style.min.css +1 -1
- package/es/vxe-tips/style.css +10 -9
- package/es/vxe-tips/style.min.css +1 -1
- package/lib/alert/index.js +17 -0
- package/lib/alert/index.min.js +1 -0
- package/lib/alert/src/alert.js +101 -0
- package/lib/alert/src/alert.min.js +1 -0
- package/lib/alert/style/index.js +1 -0
- package/lib/alert/style/style.css +129 -0
- package/lib/alert/style/style.min.css +1 -0
- package/lib/components.js +13 -1
- package/lib/components.min.js +1 -1
- package/lib/drawer/src/drawer.js +6 -0
- package/lib/drawer/src/drawer.min.js +1 -1
- package/lib/drawer/style/style.css +3 -2
- package/lib/drawer/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/image/src/image.js +16 -3
- package/lib/image/src/image.min.js +1 -1
- package/lib/image/src/preview.js +195 -28
- package/lib/image/src/preview.min.js +1 -1
- package/lib/image/src/util.js +0 -2
- package/lib/image/src/util.min.js +1 -1
- package/lib/image-preview/style/style.css +6 -4
- package/lib/image-preview/style/style.min.css +1 -1
- package/lib/index.umd.js +756 -399
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +6 -0
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +3 -1
- package/lib/modal/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tag/style/style.css +6 -6
- package/lib/tag/style/style.min.css +1 -1
- package/lib/tips/style/style.css +10 -9
- package/lib/tips/style/style.min.css +1 -1
- package/lib/ui/index.js +14 -3
- package/lib/ui/index.min.js +1 -1
- package/lib/vxe-alert/index.js +22 -0
- package/lib/vxe-alert/index.min.js +1 -0
- package/lib/vxe-alert/style/index.js +1 -0
- package/lib/vxe-alert/style/style.css +129 -0
- package/lib/vxe-alert/style/style.min.css +1 -0
- package/lib/vxe-drawer/style/style.css +3 -2
- package/lib/vxe-drawer/style/style.min.css +1 -1
- package/lib/vxe-image-preview/style/style.css +6 -4
- package/lib/vxe-image-preview/style/style.min.css +1 -1
- package/lib/vxe-modal/style/style.css +3 -1
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-tag/style/style.css +6 -6
- package/lib/vxe-tag/style/style.min.css +1 -1
- package/lib/vxe-tips/style/style.css +10 -9
- package/lib/vxe-tips/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/alert/index.ts +14 -0
- package/packages/alert/src/alert.ts +123 -0
- package/packages/components.ts +3 -0
- package/packages/drawer/src/drawer.ts +3 -1
- package/packages/image/src/image.ts +15 -3
- package/packages/image/src/preview.ts +212 -46
- package/packages/image/src/util.ts +1 -2
- package/packages/modal/src/modal.ts +3 -1
- package/packages/tips/src/tips.ts +3 -2
- package/packages/ui/index.ts +14 -2
- package/styles/all.scss +1 -0
- package/styles/components/alert.scss +99 -0
- package/styles/components/drawer.scss +9 -7
- package/styles/components/image-preview.scss +7 -4
- package/styles/components/modal.scss +5 -1
- package/styles/components/tag.scss +6 -6
- package/styles/components/tips.scss +10 -9
- package/styles/theme/base.scss +0 -53
- package/styles/theme/dark.scss +46 -12
- package/styles/theme/light.scss +46 -12
- package/types/all.d.ts +3 -0
- package/types/components/alert.d.ts +85 -0
- package/types/components/drawer.d.ts +2 -0
- package/types/components/image-preview.d.ts +6 -1
- package/types/components/image.d.ts +0 -1
- package/types/components/modal.d.ts +2 -0
- package/types/ui/global-config.d.ts +5 -1
- package/types/ui/global-icon.d.ts +7 -0
- /package/es/icon/style/{iconfont.1717233455609.ttf → iconfont.1717313412020.ttf} +0 -0
- /package/es/icon/style/{iconfont.1717233455609.woff → iconfont.1717313412020.woff} +0 -0
- /package/es/icon/style/{iconfont.1717233455609.woff2 → iconfont.1717313412020.woff2} +0 -0
- /package/es/{iconfont.1717233455609.ttf → iconfont.1717313412020.ttf} +0 -0
- /package/es/{iconfont.1717233455609.woff → iconfont.1717313412020.woff} +0 -0
- /package/es/{iconfont.1717233455609.woff2 → iconfont.1717313412020.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1717233455609.ttf → iconfont.1717313412020.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1717233455609.woff → iconfont.1717313412020.woff} +0 -0
- /package/lib/icon/style/{iconfont.1717233455609.woff2 → iconfont.1717313412020.woff2} +0 -0
- /package/lib/{iconfont.1717233455609.ttf → iconfont.1717313412020.ttf} +0 -0
- /package/lib/{iconfont.1717233455609.woff → iconfont.1717313412020.woff} +0 -0
- /package/lib/{iconfont.1717233455609.woff2 → iconfont.1717313412020.woff2} +0 -0
|
@@ -2,32 +2,32 @@ $btnThemeList: (
|
|
|
2
2
|
(
|
|
3
3
|
name: "primary",
|
|
4
4
|
textColor: var(--vxe-ui-font-primary-color),
|
|
5
|
-
bgColor: var(--vxe-ui-
|
|
5
|
+
bgColor: var(--vxe-ui-font-primary-tinge-color)
|
|
6
6
|
),
|
|
7
7
|
(
|
|
8
8
|
name: "success",
|
|
9
9
|
textColor: var(--vxe-ui-status-success-color),
|
|
10
|
-
bgColor: var(--vxe-ui-
|
|
10
|
+
bgColor: var(--vxe-ui-status-success-tinge-color)
|
|
11
11
|
),
|
|
12
12
|
(
|
|
13
13
|
name: "info",
|
|
14
14
|
textColor: var(--vxe-ui-status-info-color),
|
|
15
|
-
bgColor: var(--vxe-ui-
|
|
15
|
+
bgColor: var(--vxe-ui-status-info-tinge-color)
|
|
16
16
|
),
|
|
17
17
|
(
|
|
18
18
|
name: "warning",
|
|
19
19
|
textColor: var(--vxe-ui-status-warning-color),
|
|
20
|
-
bgColor: var(--vxe-ui-
|
|
20
|
+
bgColor: var(--vxe-ui-status-warning-tinge-color)
|
|
21
21
|
),
|
|
22
22
|
(
|
|
23
23
|
name: "danger",
|
|
24
24
|
textColor: var(--vxe-ui-status-danger-color),
|
|
25
|
-
bgColor: var(--vxe-ui-
|
|
25
|
+
bgColor: var(--vxe-ui-status-danger-tinge-color)
|
|
26
26
|
),
|
|
27
27
|
(
|
|
28
28
|
name: "error",
|
|
29
29
|
textColor: var(--vxe-ui-status-error-color),
|
|
30
|
-
bgColor: var(--vxe-ui-
|
|
30
|
+
bgColor: var(--vxe-ui-status-error-tinge-color)
|
|
31
31
|
)
|
|
32
32
|
);
|
|
33
33
|
|
|
@@ -2,32 +2,32 @@ $btnThemeList: (
|
|
|
2
2
|
(
|
|
3
3
|
name: "primary",
|
|
4
4
|
borderColor: var(--vxe-ui-font-primary-color),
|
|
5
|
-
bgColor: var(--vxe-ui-
|
|
5
|
+
bgColor: var(--vxe-ui-font-primary-tinge-color)
|
|
6
6
|
),
|
|
7
7
|
(
|
|
8
8
|
name: "success",
|
|
9
9
|
borderColor: var(--vxe-ui-status-success-color),
|
|
10
|
-
bgColor: var(--vxe-ui-
|
|
10
|
+
bgColor: var(--vxe-ui-status-success-tinge-color)
|
|
11
11
|
),
|
|
12
12
|
(
|
|
13
13
|
name: "info",
|
|
14
14
|
borderColor: var(--vxe-ui-status-info-color),
|
|
15
|
-
bgColor: var(--vxe-ui-
|
|
15
|
+
bgColor: var(--vxe-ui-status-info-tinge-color)
|
|
16
16
|
),
|
|
17
17
|
(
|
|
18
18
|
name: "warning",
|
|
19
19
|
borderColor: var(--vxe-ui-status-warning-color),
|
|
20
|
-
bgColor: var(--vxe-ui-
|
|
20
|
+
bgColor: var(--vxe-ui-status-warning-tinge-color)
|
|
21
21
|
),
|
|
22
22
|
(
|
|
23
23
|
name: "danger",
|
|
24
24
|
borderColor: var(--vxe-ui-status-danger-color),
|
|
25
|
-
bgColor: var(--vxe-ui-
|
|
25
|
+
bgColor: var(--vxe-ui-status-danger-tinge-color)
|
|
26
26
|
),
|
|
27
27
|
(
|
|
28
28
|
name: "error",
|
|
29
29
|
borderColor: var(--vxe-ui-status-error-color),
|
|
30
|
-
bgColor: var(--vxe-ui-
|
|
30
|
+
bgColor: var(--vxe-ui-status-error-tinge-color)
|
|
31
31
|
)
|
|
32
32
|
);
|
|
33
33
|
|
|
@@ -36,8 +36,8 @@ $btnThemeList: (
|
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: row;
|
|
38
38
|
color: var(--vxe-ui-font-color);
|
|
39
|
-
margin-bottom: var(--vxe-ui-layout-padding-
|
|
40
|
-
padding: var(--vxe-ui-layout-padding-default) var(--vxe-ui-layout-padding-
|
|
39
|
+
margin-bottom: var(--vxe-ui-layout-padding-default);
|
|
40
|
+
padding: var(--vxe-ui-layout-padding-default) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double) var(--vxe-ui-layout-padding-double);
|
|
41
41
|
font-size: var(--vxe-ui-font-size-default);
|
|
42
42
|
&::after {
|
|
43
43
|
content: "";
|
|
@@ -74,6 +74,7 @@ $btnThemeList: (
|
|
|
74
74
|
.vxe-tips--icon {
|
|
75
75
|
flex-shrink: 0;
|
|
76
76
|
font-size: 1.2em;
|
|
77
|
+
line-height: 2em;
|
|
77
78
|
padding-right: var(--vxe-ui-layout-padding-half);
|
|
78
79
|
}
|
|
79
80
|
.vxe-tips--body {
|
|
@@ -81,6 +82,6 @@ $btnThemeList: (
|
|
|
81
82
|
}
|
|
82
83
|
.vxe-tips--title {
|
|
83
84
|
font-size: 1.1em;
|
|
84
|
-
|
|
85
|
+
line-height: 2em;
|
|
85
86
|
font-weight: 700;
|
|
86
87
|
}
|
package/styles/theme/base.scss
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
$vxe-ui-font-primary-color: #409eff;
|
|
2
|
-
|
|
3
|
-
$vxe-ui-status-success-color: #67c23a;
|
|
4
|
-
$vxe-ui-status-info-color: #909399;
|
|
5
|
-
$vxe-ui-status-warning-color: #e6a23c;
|
|
6
|
-
$vxe-ui-status-danger-color: #f56c6c;
|
|
7
|
-
$vxe-ui-status-error-color: #f56c6c;
|
|
8
|
-
|
|
9
1
|
:root {
|
|
10
2
|
/*font*/
|
|
11
3
|
--vxe-ui-font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
|
|
@@ -17,11 +9,6 @@ $vxe-ui-status-error-color: #f56c6c;
|
|
|
17
9
|
--vxe-ui-font-size-mini: 12px;
|
|
18
10
|
|
|
19
11
|
/*font color*/
|
|
20
|
-
--vxe-ui-font-primary-color: #{$vxe-ui-font-primary-color}; // 主要字体颜色
|
|
21
|
-
--vxe-ui-font-primary-tinge-color: #{lighten($vxe-ui-font-primary-color, 33%)};
|
|
22
|
-
--vxe-ui-font-primary-lighten-color: #{lighten($vxe-ui-font-primary-color, 10%)};
|
|
23
|
-
--vxe-ui-font-primary-darken-color: #{darken($vxe-ui-font-primary-color, 10%)};
|
|
24
|
-
--vxe-ui-font-primary-disabled-color: #{lighten($vxe-ui-font-primary-color, 20%)};
|
|
25
12
|
--vxe-ui-font-secondary-color: #909399; // 次要字体颜色
|
|
26
13
|
--vxe-ui-font-placeholder-color: #a8abb2; // 占位符字体颜色
|
|
27
14
|
--vxe-ui-font-disabled-color: #BFBFBF;
|
|
@@ -29,37 +16,6 @@ $vxe-ui-status-error-color: #f56c6c;
|
|
|
29
16
|
/*base*/
|
|
30
17
|
--vxe-ui-base-border-radius: 4px;
|
|
31
18
|
|
|
32
|
-
/*base status*/
|
|
33
|
-
--vxe-ui-status-success-color: #{$vxe-ui-status-success-color};
|
|
34
|
-
--vxe-ui-status-info-color: #{$vxe-ui-status-info-color};
|
|
35
|
-
--vxe-ui-status-warning-color: #{$vxe-ui-status-warning-color};
|
|
36
|
-
--vxe-ui-status-danger-color: #{$vxe-ui-status-danger-color};
|
|
37
|
-
--vxe-ui-status-error-color: #{$vxe-ui-status-error-color};
|
|
38
|
-
|
|
39
|
-
--vxe-ui-status-success-tinge-color: #{lighten($vxe-ui-status-success-color, 45%)};
|
|
40
|
-
--vxe-ui-status-info-tinge-color: #{lighten($vxe-ui-status-info-color, 38%)};
|
|
41
|
-
--vxe-ui-status-warning-tinge-color: #{lighten($vxe-ui-status-warning-color, 38%)};
|
|
42
|
-
--vxe-ui-status-danger-tinge-color: var(--vxe-ui-status-error-tinge-color);
|
|
43
|
-
--vxe-ui-status-error-tinge-color: #{lighten($vxe-ui-status-error-color, 28%)};
|
|
44
|
-
|
|
45
|
-
--vxe-ui-status-success-lighten-color: #{lighten($vxe-ui-status-success-color, 10%)};
|
|
46
|
-
--vxe-ui-status-info-lighten-color: #{lighten($vxe-ui-status-info-color, 10%)};
|
|
47
|
-
--vxe-ui-status-warning-lighten-color: #{lighten($vxe-ui-status-warning-color, 10%)};
|
|
48
|
-
--vxe-ui-status-danger-lighten-color: var(--vxe-ui-status-error-lighten-color);
|
|
49
|
-
--vxe-ui-status-error-lighten-color: #{lighten($vxe-ui-status-error-color, 10%)};
|
|
50
|
-
|
|
51
|
-
--vxe-ui-status-success-darken-color: #{darken($vxe-ui-status-success-color, 10%)};
|
|
52
|
-
--vxe-ui-status-info-darken-color: #{darken($vxe-ui-status-info-color, 10%)};
|
|
53
|
-
--vxe-ui-status-warning-darken-color: #{darken($vxe-ui-status-warning-color, 10%)};
|
|
54
|
-
--vxe-ui-status-danger-darken-color: var(--vxe-ui-status-error-lighten-color);
|
|
55
|
-
--vxe-ui-status-error-darken-color: #{lighten($vxe-ui-status-error-color, 10%)};
|
|
56
|
-
|
|
57
|
-
--vxe-ui-status-success-disabled-color: #{lighten($vxe-ui-status-success-color, 20%)};
|
|
58
|
-
--vxe-ui-status-info-disabled-color: #{lighten($vxe-ui-status-info-color, 20%)};
|
|
59
|
-
--vxe-ui-status-warning-disabled-color: #{lighten($vxe-ui-status-warning-color, 20%)};
|
|
60
|
-
--vxe-ui-status-danger-disabled-color: var(--vxe-ui-status-danger-disabled-color);
|
|
61
|
-
--vxe-ui-status-error-disabled-color: #{lighten($vxe-ui-status-error-color, 10%)};
|
|
62
|
-
|
|
63
19
|
/*layout*/
|
|
64
20
|
--vxe-ui-layout-padding-half: 4px;
|
|
65
21
|
--vxe-ui-layout-padding-default: 8px;
|
|
@@ -144,7 +100,6 @@ $vxe-ui-status-error-color: #f56c6c;
|
|
|
144
100
|
|
|
145
101
|
/*form-design*/
|
|
146
102
|
--vxe-ui-form-design-widget-item-font-size: 0.9em;
|
|
147
|
-
--vxe-ui-form-design-widget-item-hover-background-color: #{lighten($vxe-ui-font-primary-color, 10%)};
|
|
148
103
|
|
|
149
104
|
/*checkbox*/
|
|
150
105
|
--vxe-ui-checkbox-font-size-default: 15px;
|
|
@@ -185,14 +140,6 @@ $vxe-ui-status-error-color: #f56c6c;
|
|
|
185
140
|
--vxe-ui-switch-open-background-color: var(--vxe-ui-font-primary-color);
|
|
186
141
|
--vxe-ui-switch-disabled-background-color: rgba(0,0,0,0.15) ;
|
|
187
142
|
|
|
188
|
-
/*tips*/
|
|
189
|
-
--vxe-ui-tips-primary-background-color: var(--vxe-ui-tag-primary-background-color);
|
|
190
|
-
--vxe-ui-tips-success-background-color: var(--vxe-ui-tag-success-background-color);
|
|
191
|
-
--vxe-ui-tips-info-background-color: var(--vxe-ui-tag-info-background-color);
|
|
192
|
-
--vxe-ui-tips-warning-background-color: var(--vxe-ui-tag-warning-background-color);
|
|
193
|
-
--vxe-ui-tips-danger-background-color: var(--vxe-ui-tag-danger-background-color);
|
|
194
|
-
--vxe-ui-tips-error-background-color: var(-vxe-ui-tag-error-background-color);
|
|
195
|
-
|
|
196
143
|
/*upload*/
|
|
197
144
|
--vxe-ui-upload-image-wh-default: 120px;
|
|
198
145
|
--vxe-ui-upload-image-wh-medium: 110px;
|
package/styles/theme/dark.scss
CHANGED
|
@@ -1,16 +1,61 @@
|
|
|
1
1
|
@import './base.scss';
|
|
2
2
|
|
|
3
3
|
[data-vxe-ui-theme="dark"] {
|
|
4
|
+
$vxe-ui-font-primary-color: #409eff;
|
|
5
|
+
|
|
6
|
+
$vxe-ui-status-success-color: #67c23a;
|
|
7
|
+
$vxe-ui-status-info-color: #909399;
|
|
8
|
+
$vxe-ui-status-warning-color: #e6a23c;
|
|
9
|
+
$vxe-ui-status-danger-color: #f56c6c;
|
|
10
|
+
$vxe-ui-status-error-color: #f56c6c;
|
|
11
|
+
|
|
4
12
|
color-scheme: dark;
|
|
5
13
|
|
|
6
14
|
$vxe-ui-font-color: #a0a3a7;
|
|
7
15
|
|
|
8
|
-
/*font*/
|
|
16
|
+
/*font color*/
|
|
9
17
|
--vxe-ui-font-color: #{$vxe-ui-font-color};
|
|
10
18
|
--vxe-ui-font-tinge-color: #33353b; // 浅色字体颜色
|
|
11
19
|
--vxe-ui-font-lighten-color: #{lighten($vxe-ui-font-color, 10%)};
|
|
12
20
|
--vxe-ui-font-darken-color: #{darken($vxe-ui-font-color, 10%)};
|
|
13
21
|
|
|
22
|
+
/*font status color*/
|
|
23
|
+
--vxe-ui-font-primary-color: #409eff;
|
|
24
|
+
--vxe-ui-font-primary-tinge-color: #3a4653;
|
|
25
|
+
--vxe-ui-font-primary-lighten-color: #73b8ff;
|
|
26
|
+
--vxe-ui-font-primary-darken-color: #0d84ff;
|
|
27
|
+
--vxe-ui-font-primary-disabled-color: #a6d2ff;
|
|
28
|
+
|
|
29
|
+
--vxe-ui-status-success-color: #67c23a;
|
|
30
|
+
--vxe-ui-status-info-color: #909399;
|
|
31
|
+
--vxe-ui-status-warning-color: #e6a23c;
|
|
32
|
+
--vxe-ui-status-danger-color: #f56c6c;
|
|
33
|
+
--vxe-ui-status-error-color: #f56c6c;
|
|
34
|
+
|
|
35
|
+
--vxe-ui-status-success-tinge-color: #33412f;
|
|
36
|
+
--vxe-ui-status-info-tinge-color: #38383b;
|
|
37
|
+
--vxe-ui-status-warning-tinge-color: #332c22;
|
|
38
|
+
--vxe-ui-status-danger-tinge-color: var(--vxe-ui-status-error-tinge-color);
|
|
39
|
+
--vxe-ui-status-error-tinge-color: #372525;
|
|
40
|
+
|
|
41
|
+
--vxe-ui-status-success-lighten-color: #85cf60;
|
|
42
|
+
--vxe-ui-status-info-lighten-color: #abadb1;
|
|
43
|
+
--vxe-ui-status-warning-lighten-color: #ecb869;
|
|
44
|
+
--vxe-ui-status-danger-lighten-color: var(--vxe-ui-status-error-lighten-color);
|
|
45
|
+
--vxe-ui-status-error-lighten-color: #f89c9c;
|
|
46
|
+
|
|
47
|
+
--vxe-ui-status-success-darken-color: #529b2e;
|
|
48
|
+
--vxe-ui-status-info-darken-color: #767980;
|
|
49
|
+
--vxe-ui-status-warning-darken-color: #d48a1b;
|
|
50
|
+
--vxe-ui-status-danger-darken-color: var(--vxe-ui-status-error-lighten-color);
|
|
51
|
+
--vxe-ui-status-error-darken-color: #f89c9c;
|
|
52
|
+
|
|
53
|
+
--vxe-ui-status-success-disabled-color: #a3db87;
|
|
54
|
+
--vxe-ui-status-info-disabled-color: #c5c7ca;
|
|
55
|
+
--vxe-ui-status-warning-disabled-color: #f2cd96;
|
|
56
|
+
--vxe-ui-status-danger-disabled-color: var(--vxe-ui-status-danger-disabled-color);
|
|
57
|
+
--vxe-ui-status-error-disabled-color: #f89c9c;
|
|
58
|
+
|
|
14
59
|
/*base*/
|
|
15
60
|
--vxe-ui-base-popup-border-color: var(--vxe-ui-layout-background-color);
|
|
16
61
|
--vxe-ui-base-popup-box-shadow: 0px 12px 30px 8px rgba(0, 0, 0, 0.5);
|
|
@@ -29,9 +74,6 @@
|
|
|
29
74
|
/*modal*/
|
|
30
75
|
--vxe-ui-modal-header-background-color: var(--vxe-ui-layout-background-color);
|
|
31
76
|
|
|
32
|
-
/*drawer*/
|
|
33
|
-
--vxe-ui-drawer-header-background-color: var(--vxe-ui-layout-background-color);
|
|
34
|
-
|
|
35
77
|
/*tabs*/
|
|
36
78
|
--vxe-ui-tabs-card-header-background-color: #1d1e1f;
|
|
37
79
|
|
|
@@ -47,12 +89,4 @@
|
|
|
47
89
|
|
|
48
90
|
/*switch*/
|
|
49
91
|
--vxe-ui-switch-close-background-color: #4C4D4F;
|
|
50
|
-
|
|
51
|
-
/*tag*/
|
|
52
|
-
--vxe-ui-tag-primary-background-color: #3a4653;
|
|
53
|
-
--vxe-ui-tag-success-background-color: #33412f;
|
|
54
|
-
--vxe-ui-tag-info-background-color: #38383b;
|
|
55
|
-
--vxe-ui-tag-warning-background-color: #332c22;
|
|
56
|
-
--vxe-ui-tag-danger-background-color: var(--vxe-ui-tag-error-background-color);
|
|
57
|
-
--vxe-ui-tag-error-background-color: #372525;
|
|
58
92
|
}
|
package/styles/theme/light.scss
CHANGED
|
@@ -1,14 +1,59 @@
|
|
|
1
1
|
@import './base.scss';
|
|
2
2
|
|
|
3
3
|
[data-vxe-ui-theme="light"] {
|
|
4
|
+
$vxe-ui-font-primary-color: #409eff;
|
|
5
|
+
|
|
6
|
+
$vxe-ui-status-success-color: #67c23a;
|
|
7
|
+
$vxe-ui-status-info-color: #909399;
|
|
8
|
+
$vxe-ui-status-warning-color: #e6a23c;
|
|
9
|
+
$vxe-ui-status-danger-color: #f56c6c;
|
|
10
|
+
$vxe-ui-status-error-color: #f56c6c;
|
|
11
|
+
|
|
4
12
|
$vxe-ui-font-color: #606266;
|
|
5
13
|
|
|
6
|
-
/*font*/
|
|
14
|
+
/*font color*/
|
|
7
15
|
--vxe-ui-font-color: #{$vxe-ui-font-color};
|
|
8
16
|
--vxe-ui-font-tinge-color: #d4d5d7; // 浅色字体颜色
|
|
9
17
|
--vxe-ui-font-lighten-color: #{lighten($vxe-ui-font-color, 10%)};
|
|
10
18
|
--vxe-ui-font-darken-color: #{darken($vxe-ui-font-color, 10%)};
|
|
11
19
|
|
|
20
|
+
/*font status color*/
|
|
21
|
+
--vxe-ui-font-primary-color: #409eff;
|
|
22
|
+
--vxe-ui-font-primary-tinge-color: #e8f3ff;
|
|
23
|
+
--vxe-ui-font-primary-lighten-color: #73b8ff;
|
|
24
|
+
--vxe-ui-font-primary-darken-color: #0d84ff;
|
|
25
|
+
--vxe-ui-font-primary-disabled-color: #a6d2ff;
|
|
26
|
+
|
|
27
|
+
--vxe-ui-status-success-color: #67c23a;
|
|
28
|
+
--vxe-ui-status-info-color: #909399;
|
|
29
|
+
--vxe-ui-status-warning-color: #e6a23c;
|
|
30
|
+
--vxe-ui-status-danger-color: #f56c6c;
|
|
31
|
+
--vxe-ui-status-error-color: #f56c6c;
|
|
32
|
+
|
|
33
|
+
--vxe-ui-status-success-tinge-color: #eef8e9;
|
|
34
|
+
--vxe-ui-status-info-tinge-color: #f5f5f6;
|
|
35
|
+
--vxe-ui-status-warning-tinge-color: #fcf4e8;
|
|
36
|
+
--vxe-ui-status-danger-tinge-color: var(--vxe-ui-status-error-tinge-color);
|
|
37
|
+
--vxe-ui-status-error-tinge-color: #fef2f2;
|
|
38
|
+
|
|
39
|
+
--vxe-ui-status-success-lighten-color: #85cf60;
|
|
40
|
+
--vxe-ui-status-info-lighten-color: #abadb1;
|
|
41
|
+
--vxe-ui-status-warning-lighten-color: #ecb869;
|
|
42
|
+
--vxe-ui-status-danger-lighten-color: var(--vxe-ui-status-error-lighten-color);
|
|
43
|
+
--vxe-ui-status-error-lighten-color: #f89c9c;
|
|
44
|
+
|
|
45
|
+
--vxe-ui-status-success-darken-color: #529b2e;
|
|
46
|
+
--vxe-ui-status-info-darken-color: #767980;
|
|
47
|
+
--vxe-ui-status-warning-darken-color: #d48a1b;
|
|
48
|
+
--vxe-ui-status-danger-darken-color: var(--vxe-ui-status-error-lighten-color);
|
|
49
|
+
--vxe-ui-status-error-darken-color: #f89c9c;
|
|
50
|
+
|
|
51
|
+
--vxe-ui-status-success-disabled-color: #a3db87;
|
|
52
|
+
--vxe-ui-status-info-disabled-color: #c5c7ca;
|
|
53
|
+
--vxe-ui-status-warning-disabled-color: #f2cd96;
|
|
54
|
+
--vxe-ui-status-danger-disabled-color: var(--vxe-ui-status-danger-disabled-color);
|
|
55
|
+
--vxe-ui-status-error-disabled-color: #f89c9c;
|
|
56
|
+
|
|
12
57
|
/*base*/
|
|
13
58
|
--vxe-ui-base-popup-border-color: #DADCE0;
|
|
14
59
|
--vxe-ui-base-popup-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.16);
|
|
@@ -27,9 +72,6 @@
|
|
|
27
72
|
/*modal*/
|
|
28
73
|
--vxe-ui-modal-header-background-color: #F8F8F8;
|
|
29
74
|
|
|
30
|
-
/*drawer*/
|
|
31
|
-
--vxe-ui-drawer-header-background-color: #F8F8F8;
|
|
32
|
-
|
|
33
75
|
/*tabs*/
|
|
34
76
|
--vxe-ui-tabs-card-header-background-color: #f5f7fa;
|
|
35
77
|
|
|
@@ -45,12 +87,4 @@
|
|
|
45
87
|
|
|
46
88
|
/*switch*/
|
|
47
89
|
--vxe-ui-switch-close-background-color: rgba(0,0,0,0.35);
|
|
48
|
-
|
|
49
|
-
/*tag*/
|
|
50
|
-
--vxe-ui-tag-primary-background-color: var(--vxe-ui-font-primary-tinge-color);
|
|
51
|
-
--vxe-ui-tag-success-background-color: var(--vxe-ui-status-success-tinge-color);
|
|
52
|
-
--vxe-ui-tag-info-background-color: var(--vxe-ui-status-info-tinge-color);
|
|
53
|
-
--vxe-ui-tag-warning-background-color: var(--vxe-ui-status-warning-tinge-color);
|
|
54
|
-
--vxe-ui-tag-danger-background-color: var(--vxe-ui-tag-error-background-color);
|
|
55
|
-
--vxe-ui-tag-error-background-color: var(--vxe-ui-status-error-tinge-color);
|
|
56
90
|
}
|
package/types/all.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { App } from 'vue'
|
|
2
2
|
import { VxeGlobalConfig } from './ui'
|
|
3
3
|
|
|
4
|
+
import VxeAlert from './components/alert'
|
|
4
5
|
import VxeAnchor from './components/anchor'
|
|
5
6
|
import VxeAnchorLink from './components/anchor-link'
|
|
6
7
|
import VxeBreadcrumb from './components/breadcrumb'
|
|
@@ -74,6 +75,7 @@ export function install (app: App, options?: VxeGlobalConfig): void
|
|
|
74
75
|
|
|
75
76
|
declare module '@vue/runtime-core' {
|
|
76
77
|
export interface GlobalComponents {
|
|
78
|
+
VxeAlert: typeof VxeAlert
|
|
77
79
|
VxeAnchor: typeof VxeAnchor
|
|
78
80
|
VxeAnchorLink: typeof VxeAnchorLink
|
|
79
81
|
VxeBreadcrumb: typeof VxeBreadcrumb
|
|
@@ -148,6 +150,7 @@ declare module '@vue/runtime-core' {
|
|
|
148
150
|
export * from './ui'
|
|
149
151
|
|
|
150
152
|
// Components
|
|
153
|
+
export * from './components/alert'
|
|
151
154
|
export * from './components/anchor'
|
|
152
155
|
export * from './components/anchor-link'
|
|
153
156
|
export * from './components/breadcrumb'
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { RenderFunction, SetupContext, Ref, ComponentPublicInstance, DefineComponent } from 'vue'
|
|
2
|
+
import { defineVxeComponent, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentStatusType, ValueOf } from '@vxe-ui/core'
|
|
3
|
+
|
|
4
|
+
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
|
+
|
|
6
|
+
export declare const VxeAlert: defineVxeComponent<VxeAlertProps, VxeAlertEventProps>
|
|
7
|
+
export type VxeAlertComponent = DefineComponent<VxeAlertProps, VxeAlertEmits>
|
|
8
|
+
|
|
9
|
+
export type VxeAlertInstance = ComponentPublicInstance<VxeAlertProps, VxeAlertConstructor>
|
|
10
|
+
|
|
11
|
+
export interface VxeAlertConstructor extends VxeComponentBaseOptions, VxeAlertMethods {
|
|
12
|
+
props: VxeAlertProps
|
|
13
|
+
context: SetupContext<VxeAlertEmits>
|
|
14
|
+
reactData: AlertReactData
|
|
15
|
+
getRefMaps(): AlertPrivateRef
|
|
16
|
+
getComputeMaps(): AlertPrivateComputed
|
|
17
|
+
renderVN: RenderFunction
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface AlertPrivateRef {
|
|
21
|
+
refElem: Ref<HTMLDivElement | undefined>
|
|
22
|
+
}
|
|
23
|
+
export interface VxeAlertPrivateRef extends AlertPrivateRef { }
|
|
24
|
+
|
|
25
|
+
export namespace VxeAlertPropTypes {
|
|
26
|
+
export type Title = string | number
|
|
27
|
+
export type Content = string | number
|
|
28
|
+
export type Status = VxeComponentStatusType
|
|
29
|
+
export type ShowIcon = boolean
|
|
30
|
+
export type ShowClose = boolean
|
|
31
|
+
export type Icon = string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type VxeAlertProps = {
|
|
35
|
+
title?: VxeAlertPropTypes.Title
|
|
36
|
+
content?: VxeAlertPropTypes.Content
|
|
37
|
+
status?: VxeAlertPropTypes.Status
|
|
38
|
+
showIcon?: VxeAlertPropTypes.ShowIcon
|
|
39
|
+
showClose?: VxeAlertPropTypes.ShowClose
|
|
40
|
+
icon?: VxeAlertPropTypes.Icon
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface AlertPrivateComputed {
|
|
44
|
+
}
|
|
45
|
+
export interface VxeAlertPrivateComputed extends AlertPrivateComputed { }
|
|
46
|
+
|
|
47
|
+
export interface AlertReactData {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface AlertMethods {
|
|
51
|
+
dispatchEvent(type: ValueOf<VxeAlertEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
52
|
+
}
|
|
53
|
+
export interface VxeAlertMethods extends AlertMethods { }
|
|
54
|
+
|
|
55
|
+
export interface AlertPrivateMethods { }
|
|
56
|
+
export interface VxeAlertPrivateMethods extends AlertPrivateMethods { }
|
|
57
|
+
|
|
58
|
+
export type VxeAlertEmits = [
|
|
59
|
+
'close'
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
export namespace VxeAlertDefines {
|
|
63
|
+
export interface AlertEventParams extends VxeComponentEventParams {
|
|
64
|
+
$alert: VxeAlertConstructor
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type VxeAlertEventProps = {}
|
|
69
|
+
|
|
70
|
+
export interface VxeAlertListeners { }
|
|
71
|
+
|
|
72
|
+
export namespace VxeAlertEvents { }
|
|
73
|
+
|
|
74
|
+
export namespace VxeAlertSlotTypes {
|
|
75
|
+
export interface DefaultSlotParams {}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface VxeAlertSlots {
|
|
79
|
+
default: (params: VxeAlertSlotTypes.DefaultSlotParams) => any
|
|
80
|
+
title: (params: VxeAlertSlotTypes.DefaultSlotParams) => any
|
|
81
|
+
icon: (params: VxeAlertSlotTypes.DefaultSlotParams) => any
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const Alert: typeof VxeAlert
|
|
85
|
+
export default VxeAlert
|
|
@@ -59,6 +59,7 @@ export namespace VxeDrawerPropTypes {
|
|
|
59
59
|
export type DestroyOnClose = boolean
|
|
60
60
|
export type ShowTitleOverflow = boolean
|
|
61
61
|
export type Transfer = boolean
|
|
62
|
+
export type Padding = boolean
|
|
62
63
|
export type BeforeHideMethod = (params: VxeDrawerDefines.DrawerVisibleParams) => Promise<any>
|
|
63
64
|
export type Slots = VxeDrawerSlots
|
|
64
65
|
}
|
|
@@ -90,6 +91,7 @@ export type VxeDrawerProps = {
|
|
|
90
91
|
destroyOnClose?: VxeDrawerPropTypes.DestroyOnClose
|
|
91
92
|
showTitleOverflow?: VxeDrawerPropTypes.ShowTitleOverflow
|
|
92
93
|
transfer?: VxeDrawerPropTypes.Transfer
|
|
94
|
+
padding?: VxeDrawerPropTypes.Padding
|
|
93
95
|
beforeHideMethod?: VxeDrawerPropTypes.BeforeHideMethod
|
|
94
96
|
slots?: VxeDrawerPropTypes.Slots
|
|
95
97
|
}
|
|
@@ -26,12 +26,15 @@ export namespace VxeImagePreviewPropTypes {
|
|
|
26
26
|
export type ModelValue = null | number
|
|
27
27
|
export type Url = string
|
|
28
28
|
export type UrlList = string[]
|
|
29
|
+
export type UrlField = string
|
|
30
|
+
export type MarginSize = string | number
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export type VxeImagePreviewProps = {
|
|
32
34
|
modelValue?: VxeImagePreviewPropTypes.ModelValue
|
|
33
|
-
url?: VxeImagePreviewPropTypes.Url
|
|
34
35
|
urlList?: VxeImagePreviewPropTypes.UrlList
|
|
36
|
+
urlField?: VxeImagePreviewPropTypes.UrlField
|
|
37
|
+
marginSize?: VxeImagePreviewPropTypes.MarginSize
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
export interface ImagePreviewPrivateComputed {
|
|
@@ -41,6 +44,8 @@ export interface VxeImagePreviewPrivateComputed extends ImagePreviewPrivateCompu
|
|
|
41
44
|
|
|
42
45
|
export interface ImagePreviewReactData {
|
|
43
46
|
activeIndex: undefined | VxeImagePreviewPropTypes.ModelValue
|
|
47
|
+
targetHeight: number
|
|
48
|
+
targetWidth: number
|
|
44
49
|
offsetPct11: boolean
|
|
45
50
|
offsetScale: number
|
|
46
51
|
offsetRotate: number
|
|
@@ -90,6 +90,7 @@ export namespace VxeModalPropTypes {
|
|
|
90
90
|
export type Storage = boolean
|
|
91
91
|
export type StorageKey = string
|
|
92
92
|
export type Animat = boolean
|
|
93
|
+
export type Padding = boolean
|
|
93
94
|
export type BeforeHideMethod = (params: ModalVisibleParams) => Promise<any>
|
|
94
95
|
export type Slots = VxeModalSlots
|
|
95
96
|
}
|
|
@@ -138,6 +139,7 @@ export type VxeModalProps = {
|
|
|
138
139
|
storage?: VxeModalPropTypes.Storage
|
|
139
140
|
storageKey?: VxeModalPropTypes.StorageKey
|
|
140
141
|
animat?: VxeModalPropTypes.Animat
|
|
142
|
+
padding?: VxeModalPropTypes.Padding
|
|
141
143
|
beforeHideMethod?: VxeModalPropTypes.BeforeHideMethod
|
|
142
144
|
slots?: VxeModalPropTypes.Slots
|
|
143
145
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Vxe UI
|
|
2
|
+
import { VxeAlertProps } from '../components/alert'
|
|
2
3
|
import { VxeAnchorProps } from '../components/anchor'
|
|
3
4
|
import { VxeAnchorLinkProps } from '../components/anchor-link'
|
|
4
5
|
import { VxeBreadcrumbProps } from '../components/breadcrumb'
|
|
@@ -21,6 +22,7 @@ import { VxeFormItemProps } from '../components/form-item'
|
|
|
21
22
|
import { VxeFormViewProps } from '../components/form-view'
|
|
22
23
|
import { VxeIconProps } from '../components/icon'
|
|
23
24
|
import { VxeImageProps } from '../components/image'
|
|
25
|
+
import { VxeImagePreviewProps } from '../components/image-preview'
|
|
24
26
|
import { VxeInputProps } from '../components/input'
|
|
25
27
|
import { VxeLayoutAsideProps } from '../components/layout-aside'
|
|
26
28
|
import { VxeLayoutBodyProps } from '../components/layout-body'
|
|
@@ -66,6 +68,7 @@ import { VxeToolbarProps } from '../components/toolbar'
|
|
|
66
68
|
|
|
67
69
|
declare module '@vxe-ui/core' {
|
|
68
70
|
export interface VxeGlobalConfig {
|
|
71
|
+
alert?: VxeAlertProps
|
|
69
72
|
anchor?: VxeAnchorProps
|
|
70
73
|
anchorLink?: VxeAnchorLinkProps
|
|
71
74
|
breadcrumb?: VxeBreadcrumbProps
|
|
@@ -87,9 +90,10 @@ declare module '@vxe-ui/core' {
|
|
|
87
90
|
formDesign?: VxeFormDesignProps
|
|
88
91
|
formGather?: VxeFormGatherProps
|
|
89
92
|
formItem?: VxeFormItemProps
|
|
90
|
-
icon?: VxeIconProps
|
|
91
93
|
formView?: VxeFormViewProps
|
|
94
|
+
icon?: VxeIconProps
|
|
92
95
|
image?: VxeImageProps
|
|
96
|
+
imagePreview?: VxeImagePreviewProps
|
|
93
97
|
input?: VxeInputProps
|
|
94
98
|
layoutAside?: VxeLayoutAsideProps
|
|
95
99
|
layoutBody?: VxeLayoutBodyProps
|
|
@@ -145,5 +145,12 @@ declare module '@vxe-ui/core' {
|
|
|
145
145
|
IMAGE_PREVIEW_ROTATE_LEFT?: string
|
|
146
146
|
IMAGE_PREVIEW_ROTATE_RIGHT?: string
|
|
147
147
|
IMAGE_PREVIEW_PRINT?: string
|
|
148
|
+
|
|
149
|
+
// alert
|
|
150
|
+
ALERT_CLOSE?: string
|
|
151
|
+
ALERT_INFO?: string
|
|
152
|
+
ALERT_SUCCESS?: string
|
|
153
|
+
ALERT_WARNING?: string
|
|
154
|
+
ALERT_ERROR?: string
|
|
148
155
|
}
|
|
149
156
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|