@vue-ui-kit/ant 1.8.2 → 1.8.3
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.scss +301 -0
- package/dist/variables.scss +3 -0
- package/package.json +3 -2
package/dist/style.scss
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
.p-pane {
|
|
4
|
+
background-color: var(--p-theme-bg);
|
|
5
|
+
padding: 16px;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//region patch for env without unocss/tailwind/windicss
|
|
10
|
+
.w-full {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.cursor-pointer {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.py-4x {
|
|
19
|
+
padding-top: 4px;
|
|
20
|
+
padding-bottom: 4px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.px-2x {
|
|
24
|
+
padding-left: 2px;
|
|
25
|
+
padding-right: 2px;
|
|
26
|
+
}
|
|
27
|
+
.pl-4x {
|
|
28
|
+
padding-left: 1em;
|
|
29
|
+
}
|
|
30
|
+
.pl-8 {
|
|
31
|
+
padding-left: 2em;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.h-0 {
|
|
35
|
+
height: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.h-full {
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.flex {
|
|
43
|
+
display: flex;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.flex-col {
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.flex-1 {
|
|
51
|
+
flex: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.items-center {
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.justify-between {
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.gap-4px {
|
|
63
|
+
gap: 4px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.gap-8px {
|
|
67
|
+
gap: 8px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.pt-8px {
|
|
71
|
+
padding-top: 8px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.px-16px {
|
|
75
|
+
padding-left: 16px;
|
|
76
|
+
padding-right: 16px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.mt-4px {
|
|
80
|
+
margin-top: 4px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.text-right {
|
|
84
|
+
text-align: right;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.overflow-y-auto {
|
|
88
|
+
overflow-y: auto;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
//endregion
|
|
92
|
+
|
|
93
|
+
//region P family styles
|
|
94
|
+
.p-theme-bg {
|
|
95
|
+
background-color: var(--p-theme-bg);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.p-wrapper {
|
|
99
|
+
.p-form-wrapper {
|
|
100
|
+
z-index: 4;
|
|
101
|
+
}
|
|
102
|
+
.p-error-hang-out {
|
|
103
|
+
.ant-input-affix-wrapper-status-error:not(
|
|
104
|
+
.ant-input-affix-wrapper-disabled
|
|
105
|
+
):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper {
|
|
106
|
+
border-color: #d9d9d9 !important;
|
|
107
|
+
|
|
108
|
+
&:focus {
|
|
109
|
+
border-color: #4096ff !important;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.ant-form-item-explain-error {
|
|
113
|
+
opacity: 0 !important;
|
|
114
|
+
transform: translateY(-10px) !important;
|
|
115
|
+
max-height: 0 !important;
|
|
116
|
+
overflow: hidden !important;
|
|
117
|
+
transition: none !important;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.ant-form-item-explain-error {
|
|
121
|
+
opacity: 0;
|
|
122
|
+
transform: translateY(-10px);
|
|
123
|
+
max-height: 0;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
transition: opacity 0.3s ease-out 0.3s, transform 0.3s ease-out 0.3s,
|
|
126
|
+
max-height 0.3s ease-out 0.3s;
|
|
127
|
+
}
|
|
128
|
+
.ant-form-item-has-error .ant-form-item-explain-error {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
transform: translateY(0);
|
|
131
|
+
max-height: 100px;
|
|
132
|
+
}
|
|
133
|
+
.p-toolbar-wrapper {
|
|
134
|
+
box-shadow: 0 8px #fff;
|
|
135
|
+
border-radius: 0.5em 0.5em 0 0;
|
|
136
|
+
margin-bottom: -0.5em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ant-form {
|
|
140
|
+
.ant-form-item {
|
|
141
|
+
margin-bottom: 0;
|
|
142
|
+
|
|
143
|
+
&.p-required {
|
|
144
|
+
.ant-form-item-label > label:before {
|
|
145
|
+
display: inline-block;
|
|
146
|
+
margin-inline-end: 4px;
|
|
147
|
+
color: #ff4d4f;
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
font-family: SimSun, sans-serif;
|
|
150
|
+
line-height: 1;
|
|
151
|
+
content: '*';
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ant-form-item-label {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: start;
|
|
158
|
+
justify-content: flex-end;
|
|
159
|
+
|
|
160
|
+
& > label {
|
|
161
|
+
white-space: break-spaces;
|
|
162
|
+
align-items: flex-start;
|
|
163
|
+
height: fit-content;
|
|
164
|
+
padding-top: 0.36em;
|
|
165
|
+
|
|
166
|
+
&:after {
|
|
167
|
+
padding-left: 4px;
|
|
168
|
+
margin-inline-start: unset;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.ant-form-vertical {
|
|
175
|
+
.ant-form-item {
|
|
176
|
+
.ant-form-item-label {
|
|
177
|
+
justify-content: flex-start;
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ant-table-sticky-scroll {
|
|
185
|
+
visibility: hidden;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.ant-table-header.ant-table-sticky-holder {
|
|
189
|
+
//overflow: unset !important;
|
|
190
|
+
|
|
191
|
+
&:before {
|
|
192
|
+
content: '';
|
|
193
|
+
width: 100%;
|
|
194
|
+
position: absolute;
|
|
195
|
+
height: 22px;
|
|
196
|
+
display: block;
|
|
197
|
+
backdrop-filter: blur(2px);
|
|
198
|
+
top: -16px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.ant-table-wrapper .ant-table-pagination.ant-pagination {
|
|
203
|
+
margin: unset;
|
|
204
|
+
padding: 16px 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.p-inner-scroll {
|
|
208
|
+
& > .ant-table-wrapper {
|
|
209
|
+
height: 100%;
|
|
210
|
+
|
|
211
|
+
& > .ant-spin-nested-loading {
|
|
212
|
+
height: 100%;
|
|
213
|
+
|
|
214
|
+
& > .ant-spin-container {
|
|
215
|
+
height: 100%;
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: column;
|
|
218
|
+
|
|
219
|
+
& > .ant-table {
|
|
220
|
+
//flex: 1;
|
|
221
|
+
//height: 0;
|
|
222
|
+
//overflow: auto;
|
|
223
|
+
/*border-radius: unset; 修复模糊问题 according to https://stackoverflow.com/questions/49349337/chrome-text-blur-with-overflow-yscroll-and-fixed-height*/
|
|
224
|
+
border-radius: unset;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.ant-pagination-options {
|
|
232
|
+
.ant-select {
|
|
233
|
+
width: 100px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
.p-error-group-tab{
|
|
238
|
+
position:relative;
|
|
239
|
+
overflow: visible;
|
|
240
|
+
color:#f5222d!important;
|
|
241
|
+
&:after{
|
|
242
|
+
content:'🏷️';
|
|
243
|
+
position:absolute;
|
|
244
|
+
top:-1em;
|
|
245
|
+
right:0;
|
|
246
|
+
width:1em;
|
|
247
|
+
height:1em;
|
|
248
|
+
font-size:0.8em;
|
|
249
|
+
animation: heartbeat 2s infinite;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
.p-error-hang-out {
|
|
253
|
+
.ant-input-affix-wrapper-status-error:not(
|
|
254
|
+
.ant-input-affix-wrapper-disabled
|
|
255
|
+
):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper {
|
|
256
|
+
border-color: #d9d9d9 !important;
|
|
257
|
+
|
|
258
|
+
&:focus {
|
|
259
|
+
border-color: #4096ff !important;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
.ant-form-item-explain-error {
|
|
263
|
+
display: none;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
.no-error-border {
|
|
267
|
+
border-color: #d9d9d9 !important;
|
|
268
|
+
|
|
269
|
+
&:focus {
|
|
270
|
+
border-color: #4096ff !important;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
//endregion
|
|
274
|
+
|
|
275
|
+
@each $align in right center {
|
|
276
|
+
/**/
|
|
277
|
+
.p-content-align-#{$align}.ant-form-item .ant-form-item-control-input-content {
|
|
278
|
+
display: flex;
|
|
279
|
+
@if $align == right {
|
|
280
|
+
justify-content: flex-end;
|
|
281
|
+
} @else {
|
|
282
|
+
justify-content: center;
|
|
283
|
+
}
|
|
284
|
+
align-items: center;
|
|
285
|
+
text-align: #{$align};
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@keyframes heartbeat {
|
|
290
|
+
0% { transform: scale(1); }
|
|
291
|
+
6% { transform: scale(1.22); }
|
|
292
|
+
12% { transform: scale(1); }
|
|
293
|
+
18% { transform: scale(1.18); }
|
|
294
|
+
24% { transform: scale(1); }
|
|
295
|
+
48% { transform: scale(1); } // 长停顿
|
|
296
|
+
54% { transform: scale(1.22); }
|
|
297
|
+
60% { transform: scale(1); }
|
|
298
|
+
66% { transform: scale(1.18); }
|
|
299
|
+
72% { transform: scale(1); }
|
|
300
|
+
100% { transform: scale(1); } // 长停顿
|
|
301
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-ui-kit/ant",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "Vue3 UI Kit based on Ant Design",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"import": "./dist/es/index.js",
|
|
11
11
|
"types": "./dist/index.d.ts"
|
|
12
12
|
},
|
|
13
|
-
"./
|
|
13
|
+
"./style.css": "./dist/style.css",
|
|
14
|
+
"./style.scss": "./dist/style.scss"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"dist",
|