n20-common-lib 3.0.94 → 3.0.96
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/package.json +1 -1
- package/src/assets/css/font/OpenSans-Regular.ttf +0 -0
- package/src/assets/css/font/OpenSans-Semibold.ttf +0 -0
- package/src/assets/css/index.scss +17 -0
- package/src/assets/css/normalize.scss +19 -66
- package/src/assets/css/rootvar.scss +7 -0
- package/src/components/Statis/statisItem.vue +8 -4
- package/style/fonts/OpenSans-Regular.629a55a7.ttf +0 -0
- package/style/fonts/OpenSans-Semibold.33f225b8.ttf +0 -0
- package/style/index.css +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/fonts/OpenSans-Regular.629a55a7.ttf +0 -0
- package/theme/fonts/OpenSans-Semibold.33f225b8.ttf +0 -0
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
@import '~normalize.css';
|
|
2
2
|
|
|
3
|
+
/* 引入 Open Sans 自定义字体 */
|
|
4
|
+
@font-face {
|
|
5
|
+
font-family: 'Open Sans';
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
font-display: swap;
|
|
9
|
+
src: url('./font/OpenSans-Regular.ttf') format('truetype');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: 'Open Sans';
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
src: url('./font/OpenSans-Semibold.ttf') format('truetype');
|
|
18
|
+
}
|
|
19
|
+
|
|
3
20
|
@import './element-variables.scss';
|
|
4
21
|
@import './normalize.scss';
|
|
5
22
|
/* 改变 icon 字体路径变量,必需 */
|
|
@@ -142,78 +142,31 @@ iframe {
|
|
|
142
142
|
@include set-pm('-ss', 4px !important);
|
|
143
143
|
@include set-pm('-0', 0 !important);
|
|
144
144
|
|
|
145
|
-
/* 内外边距 */
|
|
145
|
+
/* 内外边距 — 4px 基础单位,所有值均为 4 的倍数 */
|
|
146
146
|
@mixin pm-fn($n) {
|
|
147
|
-
.pa-#{$n} {
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.pl-#{$n} {
|
|
156
|
-
padding-left: #{$n}px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.pr-#{$n} {
|
|
160
|
-
padding-right: #{$n}px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.pb-#{$n} {
|
|
164
|
-
padding-bottom: #{$n}px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.px-#{$n} {
|
|
168
|
-
padding-left: #{$n}px;
|
|
169
|
-
padding-right: #{$n}px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.py-#{$n} {
|
|
173
|
-
padding-top: #{$n}px;
|
|
174
|
-
padding-bottom: #{$n}px;
|
|
175
|
-
}
|
|
147
|
+
.pa-#{$n} { padding: #{$n}px; }
|
|
148
|
+
.pt-#{$n} { padding-top: #{$n}px; }
|
|
149
|
+
.pr-#{$n} { padding-right: #{$n}px; }
|
|
150
|
+
.pb-#{$n} { padding-bottom: #{$n}px; }
|
|
151
|
+
.pl-#{$n} { padding-left: #{$n}px; }
|
|
152
|
+
.px-#{$n} { padding-left: #{$n}px; padding-right: #{$n}px; }
|
|
153
|
+
.py-#{$n} { padding-top: #{$n}px; padding-bottom: #{$n}px; }
|
|
176
154
|
|
|
177
|
-
.ma-#{$n} {
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.ml-#{$n} {
|
|
186
|
-
margin-left: #{$n}px;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.mr-#{$n} {
|
|
190
|
-
margin-right: #{$n}px;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.mb-#{$n} {
|
|
194
|
-
margin-bottom: #{$n}px;
|
|
195
|
-
}
|
|
155
|
+
.ma-#{$n} { margin: #{$n}px; }
|
|
156
|
+
.mt-#{$n} { margin-top: #{$n}px; }
|
|
157
|
+
.mr-#{$n} { margin-right: #{$n}px; }
|
|
158
|
+
.mb-#{$n} { margin-bottom: #{$n}px; }
|
|
159
|
+
.ml-#{$n} { margin-left: #{$n}px; }
|
|
160
|
+
.mx-#{$n} { margin-left: #{$n}px; margin-right: #{$n}px; }
|
|
161
|
+
.my-#{$n} { margin-top: #{$n}px; margin-bottom: #{$n}px; }
|
|
162
|
+
}
|
|
196
163
|
|
|
197
|
-
|
|
198
|
-
margin-left: #{$n}px;
|
|
199
|
-
margin-right: #{$n}px;
|
|
200
|
-
}
|
|
164
|
+
$spacing-values: 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 48, 64;
|
|
201
165
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
margin-bottom: #{$n}px;
|
|
205
|
-
}
|
|
166
|
+
@each $n in $spacing-values {
|
|
167
|
+
@include pm-fn($n);
|
|
206
168
|
}
|
|
207
169
|
|
|
208
|
-
@include pm-fn(0);
|
|
209
|
-
@include pm-fn(2);
|
|
210
|
-
@include pm-fn(4);
|
|
211
|
-
@include pm-fn(6);
|
|
212
|
-
@include pm-fn(8);
|
|
213
|
-
@include pm-fn(10);
|
|
214
|
-
@include pm-fn(12);
|
|
215
|
-
@include pm-fn(14);
|
|
216
|
-
|
|
217
170
|
/* 浮动布局 */
|
|
218
171
|
.left,
|
|
219
172
|
.float-left {
|
|
@@ -75,6 +75,7 @@ $--color-FFBF00: #ffbf00;
|
|
|
75
75
|
// fontSize
|
|
76
76
|
--font-family-pingfang: 'Pingfang SC';
|
|
77
77
|
--font-family-yahei: 'Microsoft YaHe';
|
|
78
|
+
--font-family-openSans: 'Open sans';
|
|
78
79
|
--font-size-extra-large: #{$--font-size-extra-large};
|
|
79
80
|
--font-size-large: #{$--font-size-large};
|
|
80
81
|
--font-size-medium: #{$--font-size-medium};
|
|
@@ -100,6 +101,7 @@ $--color-FFBF00: #ffbf00;
|
|
|
100
101
|
// line-height
|
|
101
102
|
--line-height-16: 16px;
|
|
102
103
|
--line-height-18: 18px;
|
|
104
|
+
--line-height-20: 20px;
|
|
103
105
|
--line-height-22: 22px;
|
|
104
106
|
--line-height-24: 24px;
|
|
105
107
|
--line-height-26: 26px;
|
|
@@ -116,6 +118,11 @@ $--color-FFBF00: #ffbf00;
|
|
|
116
118
|
#{mix($--color-white, $--color-success, 8.5%)},
|
|
117
119
|
#{$--color-success}
|
|
118
120
|
);
|
|
121
|
+
--color-danger-linear-gradient: linear-gradient(
|
|
122
|
+
to bottom right,
|
|
123
|
+
#{mix($--color-white, $--color-danger, 8.5%)},
|
|
124
|
+
#{$--color-danger}
|
|
125
|
+
);
|
|
119
126
|
--color-FFBF00-linear-gradient: linear-gradient(
|
|
120
127
|
to bottom right,
|
|
121
128
|
#{mix($--color-white, $--color-FFBF00, 8.5%)},
|
|
@@ -32,13 +32,17 @@ export default {
|
|
|
32
32
|
filters: {
|
|
33
33
|
numerify({ label, value }, f, w, unit = '') {
|
|
34
34
|
unit = unit ? (unit === true ? $lc('元') : unit) : ''
|
|
35
|
+
|
|
36
|
+
// 🔧 修复:将字符串类型的 value 转换为数字
|
|
37
|
+
const numValue = typeof value === 'string' ? parseFloat(value) : value
|
|
38
|
+
|
|
35
39
|
if (!w) {
|
|
36
|
-
return XEUtils.commafy(
|
|
40
|
+
return XEUtils.commafy(numValue, { digits: 2 }) + unit
|
|
37
41
|
} else {
|
|
38
|
-
if (
|
|
39
|
-
return XEUtils.commafy(
|
|
42
|
+
if (numValue > n) {
|
|
43
|
+
return XEUtils.commafy(numValue / n, { digits: 2 }) + $lc('万') + unit
|
|
40
44
|
} else {
|
|
41
|
-
return XEUtils.commafy(
|
|
45
|
+
return XEUtils.commafy(numValue, { digits: 2 }) + unit
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
}
|
|
Binary file
|
|
Binary file
|