zartui 0.1.113 → 2.0.1
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/action-sheet/index.css +1 -1
- package/es/action-sheet/index.js +3 -3
- package/es/action-sheet/index.less +12 -8
- package/es/area/style/index.js +1 -0
- package/es/area/style/less.js +1 -0
- package/es/avatar/index.css +1 -1
- package/es/button/index.css +1 -1
- package/es/button/index.js +28 -13
- package/es/button/index.less +60 -27
- package/es/calendar/components/Header.js +1 -6
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.js +31 -8
- package/es/calendar/index.less +16 -10
- package/es/cell/index.css +1 -1
- package/es/cell/index.js +60 -38
- package/es/cell/index.less +67 -12
- package/es/cell/shared.js +2 -0
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.less +18 -6
- package/es/checkbox-group/index.js +1 -0
- package/es/datetime-picker/style/index.js +1 -0
- package/es/datetime-picker/style/less.js +1 -0
- package/es/field/index.css +1 -1
- package/es/field/index.js +80 -7
- package/es/field/index.less +60 -8
- package/es/icon/index.css +1 -1
- package/es/image/index.css +1 -1
- package/es/image-preview/ImagePreview.js +1 -1
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +4 -2
- package/es/index.js +1 -1
- package/es/loading/index.css +1 -1
- package/es/loading/index.js +3 -3
- package/es/loading/index.less +1 -1
- package/es/media-picker/image/PickFileIcon.js +2 -9
- package/es/media-picker/image/PickPhotoIcon.js +2 -9
- package/es/media-picker/image/TakeAudioIcon.js +2 -9
- package/es/media-picker/image/TakePhotoIcon.js +2 -9
- package/es/media-picker/image/TakeVideoIcon.js +2 -9
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/index.less +6 -4
- package/es/mixins/checkbox.js +12 -30
- package/es/multiple-picker/index.css +1 -1
- package/es/multiple-picker/index.js +18 -11
- package/es/multiple-picker/index.less +11 -5
- package/es/multiple-picker/style/index.js +1 -0
- package/es/multiple-picker/style/less.js +1 -0
- package/es/pdf-viewer/style/index.js +1 -0
- package/es/pdf-viewer/style/less.js +1 -0
- package/es/picker/index.css +1 -1
- package/es/picker/index.js +18 -9
- package/es/picker/index.less +18 -2
- package/es/picker/style/index.js +1 -0
- package/es/picker/style/less.js +1 -0
- package/es/popup/index.css +1 -1
- package/es/popup/index.js +1 -1
- package/es/popup/index.less +2 -2
- package/es/radio/index.css +1 -1
- package/es/radio/index.less +23 -22
- package/es/radio-group/index.js +1 -0
- package/es/signature/index.js +7 -6
- package/es/signature/index.less +1 -1
- package/es/step/index.css +1 -1
- package/es/step/index.js +3 -5
- package/es/step/index.less +3 -1
- package/es/stepper/index.css +1 -1
- package/es/steps/index.css +1 -1
- package/es/steps/index.less +3 -3
- package/es/style/reset.css +1 -1
- package/es/style/var.less +92 -53
- package/es/switch-cell/index.css +1 -1
- package/es/tabs/Title.js +6 -1
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.js +2 -4
- package/es/tabs/index.less +18 -15
- package/es/toast/index.css +1 -1
- package/es/uploader/index.css +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.js +3 -3
- package/lib/action-sheet/index.less +12 -8
- package/lib/area/style/index.js +1 -0
- package/lib/area/style/less.js +1 -0
- package/lib/avatar/index.css +1 -1
- package/lib/button/index.css +1 -1
- package/lib/button/index.js +28 -13
- package/lib/button/index.less +60 -27
- package/lib/calendar/components/Header.js +1 -6
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +31 -8
- package/lib/calendar/index.less +16 -10
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.js +60 -38
- package/lib/cell/index.less +67 -12
- package/lib/cell/shared.js +2 -0
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.less +18 -6
- package/lib/checkbox-group/index.js +1 -0
- package/lib/datetime-picker/style/index.js +1 -0
- package/lib/datetime-picker/style/less.js +1 -0
- package/lib/field/index.css +1 -1
- package/lib/field/index.js +80 -7
- package/lib/field/index.less +60 -8
- package/lib/icon/index.css +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image-preview/ImagePreview.js +1 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +4 -2
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.js +3 -3
- package/lib/loading/index.less +1 -1
- package/lib/media-picker/image/PickFileIcon.js +2 -9
- package/lib/media-picker/image/PickPhotoIcon.js +2 -9
- package/lib/media-picker/image/TakeAudioIcon.js +2 -9
- package/lib/media-picker/image/TakePhotoIcon.js +2 -9
- package/lib/media-picker/image/TakeVideoIcon.js +2 -9
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.less +6 -4
- package/lib/mixins/checkbox.js +12 -30
- package/lib/multiple-picker/index.css +1 -1
- package/lib/multiple-picker/index.js +19 -11
- package/lib/multiple-picker/index.less +11 -5
- package/lib/multiple-picker/style/index.js +1 -0
- package/lib/multiple-picker/style/less.js +1 -0
- package/lib/pdf-viewer/style/index.js +1 -0
- package/lib/pdf-viewer/style/less.js +1 -0
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.js +19 -9
- package/lib/picker/index.less +18 -2
- package/lib/picker/style/index.js +1 -0
- package/lib/picker/style/less.js +1 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +1 -1
- package/lib/popup/index.less +2 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.less +23 -22
- package/lib/radio-group/index.js +1 -0
- package/lib/signature/index.js +7 -6
- package/lib/signature/index.less +1 -1
- package/lib/step/index.css +1 -1
- package/lib/step/index.js +3 -5
- package/lib/step/index.less +3 -1
- package/lib/stepper/index.css +1 -1
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.less +3 -3
- package/lib/style/reset.css +1 -1
- package/lib/style/var.less +92 -53
- package/lib/switch-cell/index.css +1 -1
- package/lib/tabs/Title.js +6 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.js +2 -4
- package/lib/tabs/index.less +18 -15
- package/lib/toast/index.css +1 -1
- package/lib/uploader/index.css +1 -1
- package/lib/zart.js +547 -450
- package/lib/zart.min.js +1 -1
- package/package.json +3 -3
package/lib/popup/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-overflow-scrolling:touch}.zt-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:
|
|
1
|
+
.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-overflow-scrolling:touch}.zt-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:16px}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 16px 16px}.zt-popup--right{top:50%;right:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:16px 0 0 16px}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:16px 16px 0 0}.zt-popup--left{top:50%;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 16px 16px 0}.zt-popup--safe-area-inset-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-popup-slide-bottom-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-top-enter-active{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.zt-popup-slide-bottom-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-top-leave-active{-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}.zt-popup-slide-top-enter,.zt-popup-slide-top-leave-active{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter,.zt-popup-slide-right-leave-active{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter,.zt-popup-slide-bottom-leave-active{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter,.zt-popup-slide-left-leave-active{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.zt-popup__close-icon{position:absolute;z-index:1;color:rgba(45,75,115,.6);font-size:24px;cursor:pointer}.zt-popup__close-icon:active{color:#969799}.zt-popup__close-icon--top-left{top:12px;left:16px}.zt-popup__close-icon--top-right{top:12px;right:16px}.zt-popup__close-icon--bottom-left{bottom:16px;left:16px}.zt-popup__close-icon--bottom-right{right:16px;bottom:16px}
|
package/lib/popup/index.js
CHANGED
package/lib/popup/index.less
CHANGED
|
@@ -114,12 +114,12 @@
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&--top-left {
|
|
117
|
-
top: @popup-close-icon-margin;
|
|
117
|
+
top: @popup-close-icon-z-margin-top;
|
|
118
118
|
left: @popup-close-icon-margin;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&--top-right {
|
|
122
|
-
top: @popup-close-icon-margin;
|
|
122
|
+
top: @popup-close-icon-z-margin-top;
|
|
123
123
|
right: @popup-close-icon-margin;
|
|
124
124
|
}
|
|
125
125
|
|
package/lib/radio/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-radio{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:10px 0}.zt-
|
|
1
|
+
.zt-radio{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:10px 0}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-left:12px}.zt-radio__icon{-webkit-box-flex:0;-webkit-flex:none;flex:none;height:1em;font-size:24px;line-height:1em;cursor:pointer}.zt-radio__icon i,.zt-radio__icon img{-webkit-transform:scale(.8333);transform:scale(.8333);-webkit-transform-origin:center;transform-origin:center}.zt-radio__icon .zt-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.15em;text-align:center;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-radio__icon--round .zt-icon{border-radius:100%}.zt-radio__icon--checked .zt-icon{color:#fff;background-color:#0091fa;border:1px solid rgba(255,255,255,.5);box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2)}.zt-radio__icon--disabled{cursor:not-allowed}.zt-radio__icon--disabled .zt-icon{background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%);border:1px solid rgba(45,75,115,.08);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2)}.zt-radio__icon--disabled.zt-radio__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-radio__label{margin-left:8px;color:#000;line-height:24px}.zt-radio__label--left{margin:0 8px 0 0}.zt-radio__label--disabled{color:#c8c9cc}.zt-radio__disable-icon .zt-radio__icon--round:not(.zt-radio__icon--disabled,.zt-radio__icon--checked){width:18px;height:18px;border-radius:100%;background-image:-webkit-linear-gradient(315deg,#e6ebf0 0,#fff 100%);background-image:linear-gradient(135deg,#e6ebf0 0,#fff 100%);border:1px solid rgba(45,75,115,.13);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2)}
|
package/lib/radio/index.less
CHANGED
|
@@ -8,15 +8,6 @@
|
|
|
8
8
|
user-select: none;
|
|
9
9
|
padding: @radio-padding;
|
|
10
10
|
|
|
11
|
-
&__custom-svg {
|
|
12
|
-
width: @radio-size;
|
|
13
|
-
height: @radio-size;
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
}
|
|
16
|
-
&__icon--disabled &__custom-svg {
|
|
17
|
-
opacity: .2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
11
|
&--disabled {
|
|
21
12
|
cursor: not-allowed;
|
|
22
13
|
}
|
|
@@ -39,21 +30,16 @@
|
|
|
39
30
|
transform: scale(0.8333);
|
|
40
31
|
transform-origin: center;
|
|
41
32
|
}
|
|
42
|
-
img {
|
|
43
|
-
width: 1em;
|
|
44
|
-
height: 1em;
|
|
45
|
-
}
|
|
46
33
|
|
|
47
34
|
.zt-icon {
|
|
48
35
|
display: block;
|
|
49
36
|
box-sizing: border-box;
|
|
50
|
-
width:
|
|
51
|
-
height:
|
|
37
|
+
width: 1.25em;
|
|
38
|
+
height: 1.25em;
|
|
52
39
|
color: transparent;
|
|
53
|
-
font-size:
|
|
54
|
-
line-height: 1.
|
|
40
|
+
font-size: 0.8em;
|
|
41
|
+
line-height: 1.15em;
|
|
55
42
|
text-align: center;
|
|
56
|
-
border: 1px solid @radio-border-color;
|
|
57
43
|
transition-duration: @radio-transition-duration;
|
|
58
44
|
transition-property: color, border-color, background-color;
|
|
59
45
|
}
|
|
@@ -68,7 +54,8 @@
|
|
|
68
54
|
.zt-icon {
|
|
69
55
|
color: @white;
|
|
70
56
|
background-color: @radio-checked-icon-color;
|
|
71
|
-
border
|
|
57
|
+
border: 1px solid @checkbox-disabled-border-color;
|
|
58
|
+
box-shadow: inset 1px 1px 2px 0 @gray-a2;
|
|
72
59
|
}
|
|
73
60
|
}
|
|
74
61
|
|
|
@@ -76,14 +63,17 @@
|
|
|
76
63
|
cursor: not-allowed;
|
|
77
64
|
|
|
78
65
|
.zt-icon {
|
|
79
|
-
background-
|
|
80
|
-
border
|
|
66
|
+
background-image: @radio-disabled-background-color;
|
|
67
|
+
border: 1px solid @radio-disabled-border-color;
|
|
68
|
+
box-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 rgba(45,75,115,0.20);
|
|
81
69
|
}
|
|
82
70
|
}
|
|
83
71
|
|
|
84
72
|
&--disabled&--checked {
|
|
85
73
|
.zt-icon {
|
|
86
|
-
|
|
74
|
+
opacity: .4;
|
|
75
|
+
background: @checkbox-checked-icon-color;
|
|
76
|
+
color: @white;
|
|
87
77
|
}
|
|
88
78
|
}
|
|
89
79
|
}
|
|
@@ -102,3 +92,14 @@
|
|
|
102
92
|
}
|
|
103
93
|
}
|
|
104
94
|
}
|
|
95
|
+
|
|
96
|
+
.zt-radio__disable-icon {
|
|
97
|
+
.zt-radio__icon--round:not(.zt-radio__icon--disabled,.zt-radio__icon--checked){
|
|
98
|
+
width: 18px;
|
|
99
|
+
height: 18px;
|
|
100
|
+
border-radius: 100%;
|
|
101
|
+
background-image: @gradient-white-1;
|
|
102
|
+
border: 1px solid @radio-border-color;
|
|
103
|
+
box-shadow: -1px -1px 2px 0 #FFF, 0 0 3px 0 rgba(45,75,115,0.20);
|
|
104
|
+
}
|
|
105
|
+
}
|
package/lib/radio-group/index.js
CHANGED
package/lib/signature/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var _default = createComponent({
|
|
|
37
37
|
},
|
|
38
38
|
backgroundStyle: {
|
|
39
39
|
type: String,
|
|
40
|
-
default: '#
|
|
40
|
+
default: '#FFFFFF'
|
|
41
41
|
},
|
|
42
42
|
imageType: {
|
|
43
43
|
type: String,
|
|
@@ -266,23 +266,24 @@ var _default = createComponent({
|
|
|
266
266
|
"class": bem('actions')
|
|
267
267
|
}, [h(_button.default, {
|
|
268
268
|
"attrs": {
|
|
269
|
-
"
|
|
270
|
-
"
|
|
269
|
+
"border-color": "#FF8700",
|
|
270
|
+
"color": "#FF8700",
|
|
271
|
+
"background-color": "#fff"
|
|
271
272
|
},
|
|
272
273
|
"on": {
|
|
273
274
|
"click": this.clear
|
|
274
275
|
}
|
|
275
276
|
}, [t('reSign')]), h(_button.default, {
|
|
276
277
|
"attrs": {
|
|
277
|
-
"
|
|
278
|
-
"
|
|
278
|
+
"border-color": "rgba(45,75,115,0.20)",
|
|
279
|
+
"color": "#2D4B73",
|
|
280
|
+
"background-color": "#fff"
|
|
279
281
|
},
|
|
280
282
|
"on": {
|
|
281
283
|
"click": this.cancel
|
|
282
284
|
}
|
|
283
285
|
}, [t('cancel')]), h(_button.default, {
|
|
284
286
|
"attrs": {
|
|
285
|
-
"block": true,
|
|
286
287
|
"type": "primary",
|
|
287
288
|
"disabled": this.isCompleteButtonDisabled
|
|
288
289
|
},
|
package/lib/signature/index.less
CHANGED
package/lib/step/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-step{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt-step__circle{display:block;width:
|
|
1
|
+
.zt-step{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt-step__circle{display:block;width:20px;height:20px;line-height:20px;border-radius:50%;text-align:center;font-size:14px}.zt-step__line{position:absolute;background-color:rgba(0,0,0,.1);-webkit-transition:background-color .3s;transition:background-color .3s}.zt-step--horizontal{float:left}.zt-step--horizontal .zt-step__circle-container{position:absolute;top:10px;left:calc(50% - 10px);z-index:1;background-color:#fff;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.zt-step--horizontal .zt-step__title{display:inline-block;margin-top:26px;font-size:14px;width:100%;text-align:center;color:#2d4b73}@media (max-width:321px){.zt-step--horizontal .zt-step__title{font-size:13px}}.zt-step--horizontal .zt-step__line{top:10px;left:calc(50% + 10px + 4px);width:calc(100% - 20px - 8px);height:1px}.zt-step--horizontal .zt-step__icon{display:block;font-size:14px;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.zt-step--vertical{display:block;float:none;padding:10px 16px 10px 8px;line-height:18px}.zt-step--vertical .zt-step__circle-container{position:absolute;top:20px;left:0;z-index:1;font-size:14px;line-height:1;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.zt-step--vertical .zt-step__line{left:-10px;top:34px;height:calc(100% - 28px);width:1px}.zt-step--vertical .zt-step__icon{display:block;font-size:14px;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.zt-step:last-child .zt-step__line{width:0}.zt-step__icon,.zt-step__title{-webkit-transition:color .3s;transition:color .3s}
|
package/lib/step/index.js
CHANGED
|
@@ -32,14 +32,12 @@ var _default = createComponent({
|
|
|
32
32
|
if (this.active) {
|
|
33
33
|
return {
|
|
34
34
|
background: "" + (this.parent.activeBgColor || 'rgba(0,145,250,0.20)'),
|
|
35
|
-
border: "1px solid " + (this.parent.activeBorderColor || '#0091FA'),
|
|
36
35
|
'font-weight': 'bold',
|
|
37
36
|
color: "" + (this.parent.activeColor || '#0091FA')
|
|
38
37
|
};
|
|
39
38
|
} else {
|
|
40
39
|
return {
|
|
41
|
-
background: "" + (this.parent.inactiveBgColor || 'rgba(
|
|
42
|
-
border: "1px solid " + (this.parent.inactiveBorderColor || 'rgba(0,0,0,0)'),
|
|
40
|
+
background: "" + (this.parent.inactiveBgColor || 'rgba(45,75,115,0.20)'),
|
|
43
41
|
'font-weight': 'normal',
|
|
44
42
|
color: "" + (this.parent.inactiveColor || '#FFFFFF')
|
|
45
43
|
};
|
|
@@ -48,11 +46,11 @@ var _default = createComponent({
|
|
|
48
46
|
titleStyle: function titleStyle() {
|
|
49
47
|
if (this.active) {
|
|
50
48
|
return {
|
|
51
|
-
color: this.parent.titleActiveColor || 'rgba(
|
|
49
|
+
color: this.parent.titleActiveColor || 'rgba(45, 75, 115, 1)'
|
|
52
50
|
};
|
|
53
51
|
} else {
|
|
54
52
|
return {
|
|
55
|
-
color: this.parent.titleInactiveColor || 'rgba(
|
|
53
|
+
color: this.parent.titleInactiveColor || 'rgba(45, 75, 115, 0.6)'
|
|
56
54
|
};
|
|
57
55
|
}
|
|
58
56
|
}
|
package/lib/step/index.less
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
line-height: @step-circle-size;
|
|
12
12
|
border-radius: 50%;
|
|
13
13
|
text-align: center;
|
|
14
|
+
font-size: @step-icon-size;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
&__line {
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
font-size: @step-horizontal-title-font-size;
|
|
38
39
|
width: 100%;
|
|
39
40
|
text-align: center;
|
|
41
|
+
color: #2D4B73;
|
|
40
42
|
@media (max-width: 321px) {
|
|
41
43
|
font-size: @step-horizontal-title-font-size - 1px;
|
|
42
44
|
}
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
.zt-step__circle-container {
|
|
68
70
|
position: absolute;
|
|
69
71
|
top: 20px;
|
|
70
|
-
left:
|
|
72
|
+
left: 0;
|
|
71
73
|
z-index: 1;
|
|
72
74
|
font-size: @step-icon-size;
|
|
73
75
|
line-height: 1;
|
package/lib/stepper/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-stepper{font-size:0;-webkit-user-select:none;user-select:none}.zt-stepper__minus__box,.zt-stepper__plus__box{width:16px;height:16px;margin-left:6px}.zt-stepper__minus__box::before,.zt-stepper__plus__box::before{width:40%;height:1px}.zt-stepper__minus__box::after,.zt-stepper__plus__box::after{width:1px;height:40%}.zt-stepper__minus__box::after,.zt-stepper__minus__box::before,.zt-stepper__plus__box::after,.zt-stepper__plus__box::before{position:absolute;top:50%;left:50%;background-color:currentColor;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);content:''}.zt-stepper__minus,.zt-stepper__plus{position:relative;box-sizing:border-box;width:30px;height:30px;margin:0;padding:0;color:#000;vertical-align:middle;background-color:#fff;border:1px solid rgba(0,0,0,.4);cursor:pointer;margin-right:12px;border-radius:2px}.zt-stepper__minus:active,.zt-stepper__plus:active{background-color:rgba(0,0,0,.1)}.zt-stepper__minus--disabled,.zt-stepper__plus--disabled{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2);cursor:not-allowed}.zt-stepper__minus--disabled:active,.zt-stepper__plus--disabled:active{background-color:#
|
|
1
|
+
.zt-stepper{font-size:0;-webkit-user-select:none;user-select:none}.zt-stepper__minus__box,.zt-stepper__plus__box{width:16px;height:16px;margin-left:6px}.zt-stepper__minus__box::before,.zt-stepper__plus__box::before{width:40%;height:1px}.zt-stepper__minus__box::after,.zt-stepper__plus__box::after{width:1px;height:40%}.zt-stepper__minus__box::after,.zt-stepper__minus__box::before,.zt-stepper__plus__box::after,.zt-stepper__plus__box::before{position:absolute;top:50%;left:50%;background-color:currentColor;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);content:''}.zt-stepper__minus,.zt-stepper__plus{position:relative;box-sizing:border-box;width:30px;height:30px;margin:0;padding:0;color:#000;vertical-align:middle;background-color:#fff;border:1px solid rgba(0,0,0,.4);cursor:pointer;margin-right:12px;border-radius:2px}.zt-stepper__minus:active,.zt-stepper__plus:active{background-color:rgba(0,0,0,.1)}.zt-stepper__minus--disabled,.zt-stepper__plus--disabled{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2);cursor:not-allowed}.zt-stepper__minus--disabled:active,.zt-stepper__plus--disabled:active{background-color:#f5faff}.zt-stepper__minus__box::after{display:none}.zt-stepper__minus{margin-right:12px}.zt-stepper__input{box-sizing:border-box;width:60px;height:30px;border:1px solid rgba(0,0,0,.4);padding:0;color:#000;font-weight:700;font-size:14px;line-height:normal;text-align:center;vertical-align:middle;background-color:#fff;border-radius:2px;-webkit-appearance:none;margin-right:12px;caret-color:#0e97fa}.zt-stepper__input:disabled{color:#c8c9cc;background-color:rgba(0,0,0,.04);-webkit-text-fill-color:#c8c9cc;opacity:1}.zt-stepper__input:read-only{cursor:default}.zt-stepper--round .zt-stepper__input{background-color:transparent}.zt-stepper--round .zt-stepper__minus,.zt-stepper--round .zt-stepper__plus{border-radius:100%}.zt-stepper--round .zt-stepper__minus:active,.zt-stepper--round .zt-stepper__plus:active{opacity:.7}.zt-stepper--round .zt-stepper__minus--disabled,.zt-stepper--round .zt-stepper__minus--disabled:active,.zt-stepper--round .zt-stepper__plus--disabled,.zt-stepper--round .zt-stepper__plus--disabled:active{opacity:.3}
|
package/lib/steps/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-steps{overflow:hidden;background-color:#fff;margin:
|
|
1
|
+
.zt-steps{overflow:hidden;background-color:#fff;margin:16px;border:0 solid rgba(0,0,0,.1);box-shadow:0 8px 16px 0 rgba(45,75,115,.1);border-radius:8px}.zt-steps--horizontal{padding:8px 0}.zt-steps--horizontal .zt-steps__items{position:relative;display:-webkit-box;display:-webkit-flex;display:flex}.zt-steps--vertical{padding:0 0 0 36px}
|
package/lib/steps/index.less
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
.zt-steps {
|
|
4
4
|
overflow: hidden;
|
|
5
5
|
background-color: @steps-background-color;
|
|
6
|
-
margin:
|
|
6
|
+
margin: 16px;
|
|
7
7
|
border: 0 solid rgba(0,0,0,0.10);
|
|
8
|
-
box-shadow: 0
|
|
9
|
-
border-radius:
|
|
8
|
+
box-shadow: 0 8px 16px 0 rgba(45,75,115,0.10);
|
|
9
|
+
border-radius: 8px;
|
|
10
10
|
|
|
11
11
|
&--horizontal {
|
|
12
12
|
padding: 8px 0;
|
package/lib/style/reset.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}html{line-height:1;-webkit-tap-highlight-color:transparent}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}caption,td,th{font-weight:400;vertical-align:middle}blockquote,q{quotes:none}blockquote::after,blockquote::before,q::after,q::before{content:'';content:none}a img{border:none}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary{display:block}*{box-sizing:content-box}body{color:rgba(0,0,0,.6);background-color:#
|
|
1
|
+
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}html{line-height:1;-webkit-tap-highlight-color:transparent}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}caption,td,th{font-weight:400;vertical-align:middle}blockquote,q{quotes:none}blockquote::after,blockquote::before,q::after,q::before{content:'';content:none}a img{border:none}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary{display:block}*{box-sizing:content-box}body{color:rgba(0,0,0,.6);background-color:#f5faff}a{text-decoration:none;background:0 0}button,input[type=email],input[type=number],input[type=password],input[type=search],input[type=text],select,textarea{margin:0;font-family:inherit;-webkit-appearance:none}
|
package/lib/style/var.less
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Color Palette
|
|
2
2
|
@black: #000;
|
|
3
3
|
@white: #fff;
|
|
4
|
+
@white-1: rgba(255,255,255,0.50);
|
|
4
5
|
@gray-1: #F5F5FA;
|
|
5
6
|
@gray-2: #f2f3f5;
|
|
6
7
|
@gray-3: #ebedf0;
|
|
@@ -9,10 +10,14 @@
|
|
|
9
10
|
@gray-6: #969799;
|
|
10
11
|
@gray-7: #646566;
|
|
11
12
|
@gray-8: #323233;
|
|
13
|
+
@gray-9: #F5FAFF;
|
|
12
14
|
@red: #E62314;
|
|
15
|
+
@red-1: #ff5a5a;
|
|
13
16
|
@blue: #0091FA;
|
|
17
|
+
@blue-1: #3caafa;
|
|
14
18
|
@cyan: #00C8F0;
|
|
15
19
|
@orange: #FF9623;
|
|
20
|
+
@orange-1: #FFAF00;
|
|
16
21
|
@yellow: #FFCD23;
|
|
17
22
|
@orange-dark: #ed6a0c;
|
|
18
23
|
@orange-light: #fffbe8;
|
|
@@ -20,6 +25,7 @@
|
|
|
20
25
|
@orange-a2: rgba(255,205,35,0.20);
|
|
21
26
|
@green: #28CD78;
|
|
22
27
|
@green-1: #00AF91;
|
|
28
|
+
@green-2: #00E173;
|
|
23
29
|
@gray-a04: rgba(0,0,0,0.04);
|
|
24
30
|
@gray-a1: rgba(0,0,0,0.1);
|
|
25
31
|
@gray-a2: rgba(0,0,0,0.2);
|
|
@@ -27,20 +33,28 @@
|
|
|
27
33
|
@gray-a6: rgba(0,0,0,0.6);
|
|
28
34
|
@gray-a8: rgba(0,0,0,0.8);
|
|
29
35
|
|
|
36
|
+
|
|
30
37
|
// Gradient Colors
|
|
31
38
|
@gradient-red: linear-gradient(to right, #ff6034, #ee0a24);
|
|
32
39
|
@gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);
|
|
40
|
+
@gradient-white: linear-gradient(134deg, #E1E6EB 0%, #E5EDF5 100%);
|
|
41
|
+
@gradient-white-1:linear-gradient(135deg, #E6EBF0 0%, #FFF 100%);
|
|
33
42
|
|
|
34
43
|
// Component Colors
|
|
35
44
|
@text-color: rgba(0,0,0,0.6);
|
|
45
|
+
@text-color-1: rgba(45, 75, 115, 0.6);
|
|
46
|
+
@text-color-2: rgba(45, 75, 115, 0.8);
|
|
47
|
+
@text-color-3: #2d4b73;
|
|
48
|
+
@text-color-4: rgba(45, 75, 115, 0.4);
|
|
36
49
|
@active-color: @gray-a04;
|
|
37
50
|
@active-opacity: 0.7;
|
|
38
51
|
@disabled-opacity: 0.4;
|
|
39
|
-
@background-color: @gray-
|
|
52
|
+
@background-color: @gray-9;
|
|
40
53
|
@background-color-light: #fafafa;
|
|
41
54
|
@text-link-color: #576b95;
|
|
42
55
|
|
|
43
56
|
// Padding
|
|
57
|
+
@padding-xxs: 2px;
|
|
44
58
|
@padding-base: 4px;
|
|
45
59
|
@padding-xs: @padding-base * 2;
|
|
46
60
|
@padding-sm: @padding-base * 3;
|
|
@@ -75,6 +89,10 @@
|
|
|
75
89
|
|
|
76
90
|
// Border
|
|
77
91
|
@border-color: rgba(0, 0, 0, 0.1);
|
|
92
|
+
@border-color-1: rgba(45, 75, 115, 0.1);
|
|
93
|
+
@border-color-2: rgba(45, 75, 115, 0.08);
|
|
94
|
+
@border-color-3: rgba(45,75,115,0.13);
|
|
95
|
+
@border-color-4: rgba(45,75,115,0.2);
|
|
78
96
|
@border-width-base: 1px;
|
|
79
97
|
@border-radius-sm: 2px;
|
|
80
98
|
@border-radius-md: 4px;
|
|
@@ -89,7 +107,7 @@
|
|
|
89
107
|
@action-sheet-description-font-size: @font-size-md;
|
|
90
108
|
@action-sheet-description-line-height: @line-height-md;
|
|
91
109
|
@action-sheet-item-background: @white;
|
|
92
|
-
@action-sheet-item-font-size: @font-size-
|
|
110
|
+
@action-sheet-item-font-size: @font-size-md;
|
|
93
111
|
@action-sheet-item-line-height: @line-height-xl;
|
|
94
112
|
@action-sheet-item-text-color: @text-color;
|
|
95
113
|
@action-sheet-item-disabled-text-color: @gray-a2;
|
|
@@ -100,7 +118,7 @@
|
|
|
100
118
|
@action-sheet-close-icon-color: @gray-a4;
|
|
101
119
|
@action-sheet-close-icon-active-color: @gray-6;
|
|
102
120
|
@action-sheet-close-icon-padding: 0 @padding-md;
|
|
103
|
-
@action-sheet-cancel-text-color: @
|
|
121
|
+
@action-sheet-cancel-text-color: @text-color-3;
|
|
104
122
|
@action-sheet-cancel-padding-top: @padding-sm;
|
|
105
123
|
@action-sheet-cancel-padding-color: @background-color;
|
|
106
124
|
@action-sheet-loading-icon-size: 20px;
|
|
@@ -140,38 +158,54 @@
|
|
|
140
158
|
@badge-font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
|
|
141
159
|
|
|
142
160
|
// Button
|
|
143
|
-
@button-mini-height:
|
|
144
|
-
@button-mini-
|
|
145
|
-
@button-
|
|
161
|
+
@button-mini-height: 24px;
|
|
162
|
+
@button-mini-padding: 0 @padding-sm;
|
|
163
|
+
@button-mini-font-size: @font-size-sm;
|
|
164
|
+
@button-small-height: 28px;
|
|
165
|
+
@button-small-padding: 0 @padding-sm;
|
|
146
166
|
@button-small-font-size: @font-size-md;
|
|
167
|
+
@button-medium-height: 36px;
|
|
168
|
+
@button-medium-padding: 0 @padding-md;
|
|
169
|
+
@button-medium-font-size: @font-size-md;
|
|
170
|
+
@button-normal-padding: 0 @padding-lg;
|
|
147
171
|
@button-normal-font-size: @font-size-lg;
|
|
148
172
|
@button-large-height: 50px;
|
|
149
173
|
@button-default-height: 44px;
|
|
150
|
-
@button-default-line-height:
|
|
174
|
+
@button-default-line-height: calc(
|
|
175
|
+
var(@button-normal-font-size) * 2 - 8px
|
|
176
|
+
);
|
|
151
177
|
@button-default-font-size: @font-size-lg;
|
|
152
|
-
@button-default-color: @text-color;
|
|
153
|
-
@button-default-background-color: @
|
|
154
|
-
@button-default-border-color: @border-color;
|
|
178
|
+
@button-default-color: @text-color-3;
|
|
179
|
+
@button-default-background-color: @gray-9;
|
|
180
|
+
@button-default-border-color: @border-color-4;
|
|
155
181
|
@button-primary-color: @white;
|
|
156
|
-
@button-primary-background-color:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
@
|
|
160
|
-
|
|
182
|
+
@button-primary-background-color: linear-gradient(
|
|
183
|
+
-45deg,
|
|
184
|
+
#3cafff 0%,
|
|
185
|
+
@blue 100%
|
|
186
|
+
);
|
|
187
|
+
@button-primary-light-background: rgba(1, 144, 250, 0.1);
|
|
188
|
+
@button-primary-border-color: @blue-1;
|
|
161
189
|
@button-danger-color: @white;
|
|
162
|
-
@button-danger-background-color: @red;
|
|
163
|
-
@button-danger-border-color: @red;
|
|
190
|
+
@button-danger-background-color: @red-1;
|
|
191
|
+
@button-danger-border-color: @red-1;
|
|
164
192
|
@button-warning-color: @white;
|
|
165
|
-
@button-warning-background-color: @orange;
|
|
166
|
-
@button-warning-border-color: @orange;
|
|
193
|
+
@button-warning-background-color: @orange-1;
|
|
194
|
+
@button-warning-border-color: @orange-1;
|
|
167
195
|
@button-success-color: @white;
|
|
168
|
-
@button-success-background-color: @green;
|
|
169
|
-
@button-success-border-color: @green;
|
|
196
|
+
@button-success-background-color: @green-2;
|
|
197
|
+
@button-success-border-color: @green-2;
|
|
170
198
|
@button-border-width: @border-width-base;
|
|
171
|
-
@button-border-radius:
|
|
199
|
+
@button-border-radius: 22px;
|
|
172
200
|
@button-round-border-radius: @border-radius-max;
|
|
173
|
-
@button-plain-background-color: @
|
|
201
|
+
@button-plain-background-color: @gray-9;
|
|
174
202
|
@button-disabled-opacity: @disabled-opacity;
|
|
203
|
+
@button-icon-mini-size: 16px;
|
|
204
|
+
@button-icon-small-size: 20px;
|
|
205
|
+
@button-icon-medium-size: 20px;
|
|
206
|
+
@button-icon-normal-size: 24px;
|
|
207
|
+
@button-loading-icon-size: 20px;
|
|
208
|
+
@button-inner-block-horizontal-margin: 16px;
|
|
175
209
|
|
|
176
210
|
// Calendar
|
|
177
211
|
@calendar-background-color: @white;
|
|
@@ -237,14 +271,14 @@
|
|
|
237
271
|
// Cell
|
|
238
272
|
@cell-font-size: @font-size-lg;
|
|
239
273
|
@cell-line-height: 24px;
|
|
240
|
-
@cell-vertical-padding:
|
|
274
|
+
@cell-vertical-padding: 16px;
|
|
241
275
|
@cell-horizontal-padding: @padding-md;
|
|
242
|
-
@cell-text-color:
|
|
276
|
+
@cell-text-color: #2D4B73;
|
|
243
277
|
@cell-background-color: @white;
|
|
244
278
|
@cell-border-color: @border-color;
|
|
245
279
|
@cell-active-color: @active-color;
|
|
246
280
|
@cell-required-color: @red;
|
|
247
|
-
@cell-label-color:
|
|
281
|
+
@cell-label-color: #2D4B73;
|
|
248
282
|
@cell-label-font-size: @font-size-md;
|
|
249
283
|
@cell-label-line-height: @line-height-sm;
|
|
250
284
|
@cell-label-margin-top: 10px;
|
|
@@ -267,15 +301,18 @@
|
|
|
267
301
|
|
|
268
302
|
// Checkbox
|
|
269
303
|
@checkbox-size: 24px;
|
|
270
|
-
@checkbox-padding:
|
|
271
|
-
@checkbox-border-color: @
|
|
304
|
+
@checkbox-padding: 14px 0;
|
|
305
|
+
@checkbox-border-color: @border-color-3;
|
|
272
306
|
@checkbox-transition-duration: @animation-duration-fast;
|
|
273
307
|
@checkbox-label-margin: @padding-xs;
|
|
274
308
|
@checkbox-label-color: @text-color;
|
|
275
309
|
@checkbox-checked-icon-color: @blue;
|
|
276
|
-
@checkbox-
|
|
310
|
+
@checkbox-checked-border-color: @border-color-2;
|
|
311
|
+
@checkbox-disabled-icon-color: @gradient-white;
|
|
277
312
|
@checkbox-disabled-label-color: @gray-5;
|
|
278
313
|
@checkbox-disabled-background-color: @border-color;
|
|
314
|
+
@checkbox-disabled-border-color: @white-1;
|
|
315
|
+
|
|
279
316
|
|
|
280
317
|
// Circle
|
|
281
318
|
@circle-size: 100px;
|
|
@@ -507,14 +544,14 @@
|
|
|
507
544
|
// ImagePreview
|
|
508
545
|
@image-preview-index-text-color: @white;
|
|
509
546
|
@image-preview-index-font-size: @font-size-md;
|
|
510
|
-
@image-preview-index-line-height: @line-height-md;
|
|
511
547
|
@image-preview-index-text-shadow: 0 1px 1px @gray-8;
|
|
512
|
-
@image-preview-index-background: rgba(
|
|
513
|
-
@image-preview-index-padding
|
|
548
|
+
@image-preview-index-background: rgba(45,75,115,0.80);
|
|
549
|
+
@image-preview-index-padding: @padding-base @padding-xs;
|
|
514
550
|
@image-preview-index-line-height:@line-height-xl;
|
|
515
551
|
@image-preview-index-height:24px;
|
|
516
|
-
@image-preview-index-
|
|
517
|
-
@image-preview-index-
|
|
552
|
+
@image-preview-index-width:37px;
|
|
553
|
+
@image-preview-index-bottom:12px;
|
|
554
|
+
@image-preview-index-left:34px;
|
|
518
555
|
@image-preview-index-z-index:10;
|
|
519
556
|
@image-preview-overlay-background-color: rgba(0, 0, 0, 0.9);
|
|
520
557
|
@image-preview-close-icon-size: 22px;
|
|
@@ -527,10 +564,10 @@
|
|
|
527
564
|
@image-preview-title-height:48px;
|
|
528
565
|
@image-preview-title-width:100%;
|
|
529
566
|
@image-preview-title-line-height:48px;
|
|
530
|
-
@image-preview-title-font-size:
|
|
531
|
-
@image-preview-title-padding-left:
|
|
567
|
+
@image-preview-title-font-size:14px;
|
|
568
|
+
@image-preview-title-padding-left:60px;
|
|
532
569
|
@image-preview-title-z-index:9;
|
|
533
|
-
@image-preview-title-background:rgba(
|
|
570
|
+
@image-preview-title-background:rgba(45,75,115,0.50);
|
|
534
571
|
|
|
535
572
|
|
|
536
573
|
// List
|
|
@@ -542,7 +579,7 @@
|
|
|
542
579
|
@loading-text-color: @gray-a6;
|
|
543
580
|
@loading-text-font-size: @font-size-md;
|
|
544
581
|
@loading-text-line-height: @line-height-md;
|
|
545
|
-
@loading-spinner-color:
|
|
582
|
+
@loading-spinner-color: rgba(45,75,115,0.40);
|
|
546
583
|
@loading-spinner-size: 36px;
|
|
547
584
|
@loading-spinner-animation-duration: 0.7s;
|
|
548
585
|
|
|
@@ -635,12 +672,12 @@
|
|
|
635
672
|
@picker-title-font-size: @font-size-md;
|
|
636
673
|
@picker-title-line-height: @line-height-md;
|
|
637
674
|
@picker-action-padding: 0 @padding-md;
|
|
638
|
-
@picker-action-font-size: @font-size-
|
|
675
|
+
@picker-action-font-size: @font-size-md;
|
|
639
676
|
@picker-confirm-action-font-weight: @base-font-weight;
|
|
640
677
|
@picker-confirm-action-color: @blue;
|
|
641
678
|
@picker-cancel-action-font-weight: @plain-font-weight;
|
|
642
679
|
@picker-cancel-action-color: @black;
|
|
643
|
-
@picker-option-font-size: @font-size-
|
|
680
|
+
@picker-option-font-size: @font-size-md;
|
|
644
681
|
@picker-option-text-color: @black;
|
|
645
682
|
@picker-option-disabled-opacity: 0.3;
|
|
646
683
|
@picker-loading-icon-color: @blue;
|
|
@@ -668,12 +705,13 @@
|
|
|
668
705
|
// Popup
|
|
669
706
|
@popup-background-color: @white;
|
|
670
707
|
@popup-transition: transform @animation-duration-base;
|
|
671
|
-
@popup-round-border-radius:
|
|
672
|
-
@popup-close-icon-size:
|
|
673
|
-
@popup-close-icon-color:
|
|
708
|
+
@popup-round-border-radius: 16px;
|
|
709
|
+
@popup-close-icon-size: 24px;
|
|
710
|
+
@popup-close-icon-color: rgba(45, 75, 115, 0.6);
|
|
674
711
|
@popup-close-icon-active-color: @gray-6;
|
|
675
712
|
@popup-close-icon-margin: 16px;
|
|
676
713
|
@popup-close-icon-z-index: 1;
|
|
714
|
+
@popup-close-icon-z-margin-top: 12px;
|
|
677
715
|
|
|
678
716
|
// Progress
|
|
679
717
|
@progress-height: 4px;
|
|
@@ -693,14 +731,15 @@
|
|
|
693
731
|
// Radio
|
|
694
732
|
@radio-size: 24px;
|
|
695
733
|
@radio-padding: 10px 0;
|
|
696
|
-
@radio-border-color: @
|
|
734
|
+
@radio-border-color: @border-color-3;
|
|
697
735
|
@radio-transition-duration: @animation-duration-fast;
|
|
698
736
|
@radio-label-margin: @padding-xs;
|
|
699
737
|
@radio-label-color: @text-color;
|
|
700
738
|
@radio-checked-icon-color: @blue;
|
|
701
739
|
@radio-disabled-icon-color: @gray-5;
|
|
702
740
|
@radio-disabled-label-color: @gray-5;
|
|
703
|
-
@radio-disabled-
|
|
741
|
+
@radio-disabled-border-color: @border-color-2;
|
|
742
|
+
@radio-disabled-background-color: @gradient-white;
|
|
704
743
|
|
|
705
744
|
// Rate
|
|
706
745
|
@rate-icon-size: 20px;
|
|
@@ -779,8 +818,8 @@
|
|
|
779
818
|
|
|
780
819
|
// Step
|
|
781
820
|
@step-line-color: @border-color;
|
|
782
|
-
@step-icon-size:
|
|
783
|
-
@step-circle-size:
|
|
821
|
+
@step-icon-size: 14px;
|
|
822
|
+
@step-circle-size: 20px;
|
|
784
823
|
@step-horizontal-title-font-size: @font-size-md;
|
|
785
824
|
|
|
786
825
|
// Steps
|
|
@@ -884,7 +923,7 @@
|
|
|
884
923
|
|
|
885
924
|
// Tab
|
|
886
925
|
@tab-text-color: @gray-7;
|
|
887
|
-
@tab-active-text-color: @text-color;
|
|
926
|
+
@tab-active-text-color: @text-color-3;
|
|
888
927
|
@tab-disabled-text-color: @gray-5;
|
|
889
928
|
@tab-font-size: @font-size-md;
|
|
890
929
|
@tab-line-height: @line-height-md;
|
|
@@ -892,10 +931,10 @@
|
|
|
892
931
|
// Tabs
|
|
893
932
|
@tabs-default-color: #0091FA;
|
|
894
933
|
@tabs-line-height: 44px;
|
|
895
|
-
@tabs-card-height:
|
|
934
|
+
@tabs-card-height: 32px;
|
|
896
935
|
@tabs-nav-background-color: @white;
|
|
897
|
-
@tabs-bottom-bar-width:
|
|
898
|
-
@tabs-bottom-bar-height:
|
|
936
|
+
@tabs-bottom-bar-width: 12px;
|
|
937
|
+
@tabs-bottom-bar-height: 4px;
|
|
899
938
|
@tabs-bottom-bar-color: #0091FA;
|
|
900
939
|
|
|
901
940
|
// Tag
|
|
@@ -922,8 +961,8 @@
|
|
|
922
961
|
@toast-text-color: @white;
|
|
923
962
|
@toast-loading-icon-color: @white;
|
|
924
963
|
@toast-line-height: @line-height-md;
|
|
925
|
-
@toast-border-radius: @border-radius-
|
|
926
|
-
@toast-background-color:
|
|
964
|
+
@toast-border-radius: @border-radius-lg;
|
|
965
|
+
@toast-background-color: @text-color-2;
|
|
927
966
|
@toast-icon-size: 36px;
|
|
928
967
|
@toast-text-min-width: 96px;
|
|
929
968
|
@toast-text-padding: @padding-xs @padding-sm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-switch-cell{padding-top:
|
|
1
|
+
.zt-switch-cell{padding-top:15px;padding-bottom:15px}.zt-switch-cell--large{padding-top:11px;padding-bottom:11px}.zt-switch-cell .zt-switch{float:right}
|
package/lib/tabs/Title.js
CHANGED
|
@@ -24,7 +24,11 @@ var _default = createComponent({
|
|
|
24
24
|
disabled: Boolean,
|
|
25
25
|
scrollable: Boolean,
|
|
26
26
|
activeColor: String,
|
|
27
|
-
inactiveColor: String
|
|
27
|
+
inactiveColor: String,
|
|
28
|
+
maxWidth: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: '112px'
|
|
31
|
+
}
|
|
28
32
|
},
|
|
29
33
|
computed: {
|
|
30
34
|
style: function style() {
|
|
@@ -51,6 +55,7 @@ var _default = createComponent({
|
|
|
51
55
|
style.color = titleColor;
|
|
52
56
|
}
|
|
53
57
|
|
|
58
|
+
style.maxWidth = this.maxWidth;
|
|
54
59
|
return style;
|
|
55
60
|
}
|
|
56
61
|
},
|