mali-applet-ui 1.0.170 → 1.0.172
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/lib/components/ml-form/ml-form.vue +4 -0
- package/package.json +1 -1
- package/theme.scss +8 -8
|
@@ -134,6 +134,10 @@ export default {
|
|
|
134
134
|
errRule = rule
|
|
135
135
|
break
|
|
136
136
|
}
|
|
137
|
+
if (XEUtils.isString(itemValue) && !itemValue.trim()) {
|
|
138
|
+
errRule = rule
|
|
139
|
+
break
|
|
140
|
+
}
|
|
137
141
|
if (rule.type === 'integer' || rule.type === 'number') {
|
|
138
142
|
if (rule.type === 'integer') {
|
|
139
143
|
if (!/^\d+$/.test(itemValue)) {
|
package/package.json
CHANGED
package/theme.scss
CHANGED
|
@@ -12,15 +12,15 @@ $ml-theme-warning-color: #f0ad4e;
|
|
|
12
12
|
$ml-theme-error-color: #dd524d;
|
|
13
13
|
|
|
14
14
|
// 字体
|
|
15
|
-
$ml-base-font-size:
|
|
15
|
+
$ml-base-font-size: 34rpx;
|
|
16
16
|
// 副标题字体
|
|
17
|
-
$ml-subhead-font-size:
|
|
17
|
+
$ml-subhead-font-size: 30rpx;
|
|
18
18
|
// 描述字体
|
|
19
|
-
$ml-describe-font-size:
|
|
19
|
+
$ml-describe-font-size: 28rpx;
|
|
20
20
|
|
|
21
21
|
// 页面间隔宽度
|
|
22
|
-
$ml-page-interval-margin:
|
|
23
|
-
$ml-page-toolbar-left-width:
|
|
22
|
+
$ml-page-interval-margin: 16rpx;
|
|
23
|
+
$ml-page-toolbar-left-width: 120rpx;
|
|
24
24
|
|
|
25
25
|
// 全局色调
|
|
26
26
|
$ml-gray-color: #F0F2F5;
|
|
@@ -33,11 +33,11 @@ $ml-dark-blue-color: #5e7092;
|
|
|
33
33
|
$ml-white-color: #ffffff;
|
|
34
34
|
|
|
35
35
|
// 边框圆角
|
|
36
|
-
$ml-border-radius:
|
|
36
|
+
$ml-border-radius: 8rpx;
|
|
37
37
|
// 按钮间隔宽度
|
|
38
|
-
$ml-button-interval-margin:
|
|
38
|
+
$ml-button-interval-margin: 16rpx;
|
|
39
39
|
// 输入框清除按钮颜色
|
|
40
40
|
$ml-input-clear-icon-color: rgba(23, 26, 29, 0.4);
|
|
41
|
-
$ml-input-clear-icon-font-size:
|
|
41
|
+
$ml-input-clear-icon-font-size: 44rpx;
|
|
42
42
|
// 输入框提示文本颜色
|
|
43
43
|
$ml-input-color-placeholder: rgba(23, 26, 29, 0.7);
|