zartui 1.0.2 → 2.0.2
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 +62 -40
- 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 -15
- 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 +94 -9
- package/es/field/index.less +81 -11
- package/es/hierarchy-select/hierarchySelect.js +1 -8
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.js +6 -14
- package/es/hierarchy-select/index.less +4 -5
- package/es/hierarchy-select/markList.js +1 -16
- 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 +3 -4
- 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.js +22 -17
- package/es/media-picker/index.less +6 -4
- package/es/media-picker/style/index.js +4 -0
- package/es/media-picker/style/less.js +4 -0
- 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 -7
- 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 +120 -49
- package/es/popup/index.less +31 -2
- package/es/radio/index.css +1 -1
- package/es/radio/index.less +24 -29
- package/es/radio-group/index.js +1 -0
- package/es/search/index.css +1 -1
- package/es/search/index.js +1 -1
- package/es/search/index.less +31 -3
- 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 +106 -62
- 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 +62 -40
- 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 -15
- 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 +94 -9
- package/lib/field/index.less +81 -11
- package/lib/hierarchy-select/hierarchySelect.js +1 -8
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.js +6 -15
- package/lib/hierarchy-select/index.less +4 -5
- package/lib/hierarchy-select/markList.js +1 -16
- 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 +2 -6
- package/lib/index.less +3 -4
- 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.js +22 -11
- package/lib/media-picker/index.less +6 -4
- package/lib/media-picker/style/index.js +4 -0
- package/lib/media-picker/style/less.js +4 -0
- 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 -7
- 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 +120 -49
- package/lib/popup/index.less +31 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.less +24 -29
- package/lib/radio-group/index.js +1 -0
- package/lib/search/index.css +1 -1
- package/lib/search/index.js +1 -1
- package/lib/search/index.less +31 -3
- 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 +106 -62
- 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 +1199 -2181
- package/lib/zart.min.js +4 -4
- package/package.json +5 -6
- package/es/pdf-viewer-v2/index.css +0 -1
- package/es/pdf-viewer-v2/index.js +0 -231
- package/es/pdf-viewer-v2/index.less +0 -40
- package/es/pdf-viewer-v2/style/index.js +0 -8
- package/es/pdf-viewer-v2/style/less.js +0 -8
- package/lib/pdf-viewer-v2/index.css +0 -1
- package/lib/pdf-viewer-v2/index.js +0 -242
- package/lib/pdf-viewer-v2/index.less +0 -40
- package/lib/pdf-viewer-v2/style/index.js +0 -8
- package/lib/pdf-viewer-v2/style/less.js +0 -8
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,29 @@
|
|
|
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);
|
|
49
|
+
@text-color-5: rgba(45, 75, 115, 0.2);
|
|
36
50
|
@active-color: @gray-a04;
|
|
37
51
|
@active-opacity: 0.7;
|
|
38
52
|
@disabled-opacity: 0.4;
|
|
39
|
-
@background-color: @gray-
|
|
53
|
+
@background-color: @gray-9;
|
|
40
54
|
@background-color-light: #fafafa;
|
|
41
55
|
@text-link-color: #576b95;
|
|
42
56
|
|
|
43
57
|
// Padding
|
|
58
|
+
@padding-xxs: 2px;
|
|
44
59
|
@padding-base: 4px;
|
|
45
60
|
@padding-xs: @padding-base * 2;
|
|
46
61
|
@padding-sm: @padding-base * 3;
|
|
@@ -75,6 +90,10 @@
|
|
|
75
90
|
|
|
76
91
|
// Border
|
|
77
92
|
@border-color: rgba(0, 0, 0, 0.1);
|
|
93
|
+
@border-color-1: rgba(45, 75, 115, 0.1);
|
|
94
|
+
@border-color-2: rgba(45, 75, 115, 0.08);
|
|
95
|
+
@border-color-3: rgba(45,75,115,0.13);
|
|
96
|
+
@border-color-4: rgba(45,75,115,0.2);
|
|
78
97
|
@border-width-base: 1px;
|
|
79
98
|
@border-radius-sm: 2px;
|
|
80
99
|
@border-radius-md: 4px;
|
|
@@ -89,7 +108,7 @@
|
|
|
89
108
|
@action-sheet-description-font-size: @font-size-md;
|
|
90
109
|
@action-sheet-description-line-height: @line-height-md;
|
|
91
110
|
@action-sheet-item-background: @white;
|
|
92
|
-
@action-sheet-item-font-size: @font-size-
|
|
111
|
+
@action-sheet-item-font-size: @font-size-md;
|
|
93
112
|
@action-sheet-item-line-height: @line-height-xl;
|
|
94
113
|
@action-sheet-item-text-color: @text-color;
|
|
95
114
|
@action-sheet-item-disabled-text-color: @gray-a2;
|
|
@@ -100,7 +119,7 @@
|
|
|
100
119
|
@action-sheet-close-icon-color: @gray-a4;
|
|
101
120
|
@action-sheet-close-icon-active-color: @gray-6;
|
|
102
121
|
@action-sheet-close-icon-padding: 0 @padding-md;
|
|
103
|
-
@action-sheet-cancel-text-color: @
|
|
122
|
+
@action-sheet-cancel-text-color: @text-color-3;
|
|
104
123
|
@action-sheet-cancel-padding-top: @padding-sm;
|
|
105
124
|
@action-sheet-cancel-padding-color: @background-color;
|
|
106
125
|
@action-sheet-loading-icon-size: 20px;
|
|
@@ -140,38 +159,54 @@
|
|
|
140
159
|
@badge-font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
|
|
141
160
|
|
|
142
161
|
// Button
|
|
143
|
-
@button-mini-height:
|
|
144
|
-
@button-mini-
|
|
145
|
-
@button-
|
|
162
|
+
@button-mini-height: 24px;
|
|
163
|
+
@button-mini-padding: 0 @padding-sm;
|
|
164
|
+
@button-mini-font-size: @font-size-sm;
|
|
165
|
+
@button-small-height: 28px;
|
|
166
|
+
@button-small-padding: 0 @padding-sm;
|
|
146
167
|
@button-small-font-size: @font-size-md;
|
|
168
|
+
@button-medium-height: 36px;
|
|
169
|
+
@button-medium-padding: 0 @padding-md;
|
|
170
|
+
@button-medium-font-size: @font-size-md;
|
|
171
|
+
@button-normal-padding: 0 @padding-lg;
|
|
147
172
|
@button-normal-font-size: @font-size-lg;
|
|
148
173
|
@button-large-height: 50px;
|
|
149
174
|
@button-default-height: 44px;
|
|
150
|
-
@button-default-line-height:
|
|
175
|
+
@button-default-line-height: calc(
|
|
176
|
+
var(@button-normal-font-size) * 2 - 8px
|
|
177
|
+
);
|
|
151
178
|
@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;
|
|
179
|
+
@button-default-color: @text-color-3;
|
|
180
|
+
@button-default-background-color: @gray-9;
|
|
181
|
+
@button-default-border-color: @border-color-4;
|
|
155
182
|
@button-primary-color: @white;
|
|
156
|
-
@button-primary-background-color:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
@
|
|
160
|
-
|
|
183
|
+
@button-primary-background-color: linear-gradient(
|
|
184
|
+
-45deg,
|
|
185
|
+
#3cafff 0%,
|
|
186
|
+
@blue 100%
|
|
187
|
+
);
|
|
188
|
+
@button-primary-light-background: rgba(1, 144, 250, 0.1);
|
|
189
|
+
@button-primary-border-color: @blue-1;
|
|
161
190
|
@button-danger-color: @white;
|
|
162
|
-
@button-danger-background-color: @red;
|
|
163
|
-
@button-danger-border-color: @red;
|
|
191
|
+
@button-danger-background-color: @red-1;
|
|
192
|
+
@button-danger-border-color: @red-1;
|
|
164
193
|
@button-warning-color: @white;
|
|
165
|
-
@button-warning-background-color: @orange;
|
|
166
|
-
@button-warning-border-color: @orange;
|
|
194
|
+
@button-warning-background-color: @orange-1;
|
|
195
|
+
@button-warning-border-color: @orange-1;
|
|
167
196
|
@button-success-color: @white;
|
|
168
|
-
@button-success-background-color: @green;
|
|
169
|
-
@button-success-border-color: @green;
|
|
197
|
+
@button-success-background-color: @green-2;
|
|
198
|
+
@button-success-border-color: @green-2;
|
|
170
199
|
@button-border-width: @border-width-base;
|
|
171
|
-
@button-border-radius:
|
|
200
|
+
@button-border-radius: 22px;
|
|
172
201
|
@button-round-border-radius: @border-radius-max;
|
|
173
|
-
@button-plain-background-color:
|
|
202
|
+
@button-plain-background-color: transparent;
|
|
174
203
|
@button-disabled-opacity: @disabled-opacity;
|
|
204
|
+
@button-icon-mini-size: 16px;
|
|
205
|
+
@button-icon-small-size: 20px;
|
|
206
|
+
@button-icon-medium-size: 20px;
|
|
207
|
+
@button-icon-normal-size: 24px;
|
|
208
|
+
@button-loading-icon-size: 20px;
|
|
209
|
+
@button-inner-block-horizontal-margin: 16px;
|
|
175
210
|
|
|
176
211
|
// Calendar
|
|
177
212
|
@calendar-background-color: @white;
|
|
@@ -236,15 +271,15 @@
|
|
|
236
271
|
|
|
237
272
|
// Cell
|
|
238
273
|
@cell-font-size: @font-size-lg;
|
|
239
|
-
@cell-line-height:
|
|
240
|
-
@cell-vertical-padding:
|
|
274
|
+
@cell-line-height: 20px;
|
|
275
|
+
@cell-vertical-padding: 12px;
|
|
241
276
|
@cell-horizontal-padding: @padding-md;
|
|
242
|
-
@cell-text-color:
|
|
277
|
+
@cell-text-color: #2D4B73;
|
|
243
278
|
@cell-background-color: @white;
|
|
244
279
|
@cell-border-color: @border-color;
|
|
245
280
|
@cell-active-color: @active-color;
|
|
246
281
|
@cell-required-color: @red;
|
|
247
|
-
@cell-label-color:
|
|
282
|
+
@cell-label-color: #2D4B73;
|
|
248
283
|
@cell-label-font-size: @font-size-md;
|
|
249
284
|
@cell-label-line-height: @line-height-sm;
|
|
250
285
|
@cell-label-margin-top: 10px;
|
|
@@ -266,16 +301,19 @@
|
|
|
266
301
|
@cell-group-inset-title-padding: @padding-md @padding-md @padding-xs @padding-xl;
|
|
267
302
|
|
|
268
303
|
// Checkbox
|
|
269
|
-
@checkbox-size:
|
|
270
|
-
@checkbox-padding:
|
|
271
|
-
@checkbox-border-color: @
|
|
304
|
+
@checkbox-size: 20px;
|
|
305
|
+
@checkbox-padding: 14px 0;
|
|
306
|
+
@checkbox-border-color: @border-color-3;
|
|
272
307
|
@checkbox-transition-duration: @animation-duration-fast;
|
|
273
308
|
@checkbox-label-margin: @padding-xs;
|
|
274
309
|
@checkbox-label-color: @text-color;
|
|
275
310
|
@checkbox-checked-icon-color: @blue;
|
|
276
|
-
@checkbox-
|
|
311
|
+
@checkbox-checked-border-color: @border-color-2;
|
|
312
|
+
@checkbox-disabled-icon-color: @gradient-white;
|
|
277
313
|
@checkbox-disabled-label-color: @gray-5;
|
|
278
314
|
@checkbox-disabled-background-color: @border-color;
|
|
315
|
+
@checkbox-disabled-border-color: @white-1;
|
|
316
|
+
|
|
279
317
|
|
|
280
318
|
// Circle
|
|
281
319
|
@circle-size: 100px;
|
|
@@ -438,9 +476,10 @@
|
|
|
438
476
|
@field-text-area-min-height: 60px;
|
|
439
477
|
@field-word-limit-color: @gray-7;
|
|
440
478
|
@field-word-limit-font-size: @font-size-sm;
|
|
441
|
-
@field-word-limit-line-height:
|
|
479
|
+
@field-word-limit-line-height: 20px;
|
|
442
480
|
@field-disabled-text-color: @gray-5;
|
|
443
481
|
@field-zt-icon-size: 20px;
|
|
482
|
+
@field-zt-icon-color: rgba(45, 75, 115, .4);
|
|
444
483
|
|
|
445
484
|
// GridItem
|
|
446
485
|
@grid-item-content-padding: @padding-md @padding-xs;
|
|
@@ -507,14 +546,14 @@
|
|
|
507
546
|
// ImagePreview
|
|
508
547
|
@image-preview-index-text-color: @white;
|
|
509
548
|
@image-preview-index-font-size: @font-size-md;
|
|
510
|
-
@image-preview-index-line-height: @line-height-md;
|
|
511
549
|
@image-preview-index-text-shadow: 0 1px 1px @gray-8;
|
|
512
|
-
@image-preview-index-background: rgba(
|
|
513
|
-
@image-preview-index-padding
|
|
550
|
+
@image-preview-index-background: rgba(45,75,115,0.80);
|
|
551
|
+
@image-preview-index-padding: @padding-base @padding-xs;
|
|
514
552
|
@image-preview-index-line-height:@line-height-xl;
|
|
515
553
|
@image-preview-index-height:24px;
|
|
516
|
-
@image-preview-index-
|
|
517
|
-
@image-preview-index-
|
|
554
|
+
@image-preview-index-width:37px;
|
|
555
|
+
@image-preview-index-bottom:12px;
|
|
556
|
+
@image-preview-index-left:34px;
|
|
518
557
|
@image-preview-index-z-index:10;
|
|
519
558
|
@image-preview-overlay-background-color: rgba(0, 0, 0, 0.9);
|
|
520
559
|
@image-preview-close-icon-size: 22px;
|
|
@@ -527,10 +566,10 @@
|
|
|
527
566
|
@image-preview-title-height:48px;
|
|
528
567
|
@image-preview-title-width:100%;
|
|
529
568
|
@image-preview-title-line-height:48px;
|
|
530
|
-
@image-preview-title-font-size:
|
|
531
|
-
@image-preview-title-padding-left:
|
|
569
|
+
@image-preview-title-font-size:14px;
|
|
570
|
+
@image-preview-title-padding-left:60px;
|
|
532
571
|
@image-preview-title-z-index:9;
|
|
533
|
-
@image-preview-title-background:rgba(
|
|
572
|
+
@image-preview-title-background:rgba(45,75,115,0.50);
|
|
534
573
|
|
|
535
574
|
|
|
536
575
|
// List
|
|
@@ -542,7 +581,7 @@
|
|
|
542
581
|
@loading-text-color: @gray-a6;
|
|
543
582
|
@loading-text-font-size: @font-size-md;
|
|
544
583
|
@loading-text-line-height: @line-height-md;
|
|
545
|
-
@loading-spinner-color:
|
|
584
|
+
@loading-spinner-color: rgba(45,75,115,0.40);
|
|
546
585
|
@loading-spinner-size: 36px;
|
|
547
586
|
@loading-spinner-animation-duration: 0.7s;
|
|
548
587
|
|
|
@@ -635,12 +674,12 @@
|
|
|
635
674
|
@picker-title-font-size: @font-size-md;
|
|
636
675
|
@picker-title-line-height: @line-height-md;
|
|
637
676
|
@picker-action-padding: 0 @padding-md;
|
|
638
|
-
@picker-action-font-size: @font-size-
|
|
677
|
+
@picker-action-font-size: @font-size-md;
|
|
639
678
|
@picker-confirm-action-font-weight: @base-font-weight;
|
|
640
679
|
@picker-confirm-action-color: @blue;
|
|
641
680
|
@picker-cancel-action-font-weight: @plain-font-weight;
|
|
642
681
|
@picker-cancel-action-color: @black;
|
|
643
|
-
@picker-option-font-size: @font-size-
|
|
682
|
+
@picker-option-font-size: @font-size-md;
|
|
644
683
|
@picker-option-text-color: @black;
|
|
645
684
|
@picker-option-disabled-opacity: 0.3;
|
|
646
685
|
@picker-loading-icon-color: @blue;
|
|
@@ -668,12 +707,13 @@
|
|
|
668
707
|
// Popup
|
|
669
708
|
@popup-background-color: @white;
|
|
670
709
|
@popup-transition: transform @animation-duration-base;
|
|
671
|
-
@popup-round-border-radius:
|
|
672
|
-
@popup-close-icon-size:
|
|
673
|
-
@popup-close-icon-color:
|
|
710
|
+
@popup-round-border-radius: 16px;
|
|
711
|
+
@popup-close-icon-size: 24px;
|
|
712
|
+
@popup-close-icon-color: rgba(45, 75, 115, 0.6);
|
|
674
713
|
@popup-close-icon-active-color: @gray-6;
|
|
675
714
|
@popup-close-icon-margin: 16px;
|
|
676
715
|
@popup-close-icon-z-index: 1;
|
|
716
|
+
@popup-close-icon-z-margin-top: 12px;
|
|
677
717
|
|
|
678
718
|
// Progress
|
|
679
719
|
@progress-height: 4px;
|
|
@@ -691,16 +731,17 @@
|
|
|
691
731
|
@pull-refresh-head-text-color: @gray-6;
|
|
692
732
|
|
|
693
733
|
// Radio
|
|
694
|
-
@radio-size:
|
|
695
|
-
@radio-padding:
|
|
696
|
-
@radio-border-color: @
|
|
734
|
+
@radio-size: 20px;
|
|
735
|
+
@radio-padding: 14px 0;
|
|
736
|
+
@radio-border-color: @border-color-3;
|
|
697
737
|
@radio-transition-duration: @animation-duration-fast;
|
|
698
738
|
@radio-label-margin: @padding-xs;
|
|
699
739
|
@radio-label-color: @text-color;
|
|
700
740
|
@radio-checked-icon-color: @blue;
|
|
701
741
|
@radio-disabled-icon-color: @gray-5;
|
|
702
742
|
@radio-disabled-label-color: @gray-5;
|
|
703
|
-
@radio-disabled-
|
|
743
|
+
@radio-disabled-border-color: @border-color-2;
|
|
744
|
+
@radio-disabled-background-color: @gradient-white;
|
|
704
745
|
|
|
705
746
|
// Rate
|
|
706
747
|
@rate-icon-size: 20px;
|
|
@@ -728,18 +769,21 @@
|
|
|
728
769
|
|
|
729
770
|
// Search
|
|
730
771
|
@search-padding: 8px @padding-md;
|
|
731
|
-
@search-background-color: @
|
|
732
|
-
@search-content-background-color:
|
|
772
|
+
@search-background-color: @gray-9;
|
|
773
|
+
@search-content-background-color: rgba(45,75,115,0.04);
|
|
774
|
+
@search-content-box-shadow: inset 4px 4px 8px 0 rgba(45,75,115,0.10);
|
|
775
|
+
@search-content-border-color: linear-gradient(#fff, rgba(255, 255, 255, 0.4));
|
|
733
776
|
@search-input-height: 20px;
|
|
734
|
-
@search-label-padding:
|
|
777
|
+
@search-label-padding: 8px 0 8px 12px;
|
|
735
778
|
@search-label-color: @text-color;
|
|
736
779
|
@search-label-font-size: @font-size-md;
|
|
737
780
|
@search-left-icon-color: @gray-6;
|
|
738
|
-
@search-action-padding: 0 @padding-md;
|
|
781
|
+
@search-action-padding: 0 @padding-md 0 @padding-sm;
|
|
739
782
|
@search-action-text-color: @blue;
|
|
740
783
|
@search-action-font-size: @font-size-lg;
|
|
741
784
|
@search-action-height: 28px;
|
|
742
785
|
@search-input-caret-color: #0091FA;
|
|
786
|
+
@search-cell-padding: 8px 12px;
|
|
743
787
|
|
|
744
788
|
// Sidebar
|
|
745
789
|
@sidebar-width: 80px;
|
|
@@ -779,8 +823,8 @@
|
|
|
779
823
|
|
|
780
824
|
// Step
|
|
781
825
|
@step-line-color: @border-color;
|
|
782
|
-
@step-icon-size:
|
|
783
|
-
@step-circle-size:
|
|
826
|
+
@step-icon-size: 14px;
|
|
827
|
+
@step-circle-size: 20px;
|
|
784
828
|
@step-horizontal-title-font-size: @font-size-md;
|
|
785
829
|
|
|
786
830
|
// Steps
|
|
@@ -884,7 +928,7 @@
|
|
|
884
928
|
|
|
885
929
|
// Tab
|
|
886
930
|
@tab-text-color: @gray-7;
|
|
887
|
-
@tab-active-text-color: @text-color;
|
|
931
|
+
@tab-active-text-color: @text-color-3;
|
|
888
932
|
@tab-disabled-text-color: @gray-5;
|
|
889
933
|
@tab-font-size: @font-size-md;
|
|
890
934
|
@tab-line-height: @line-height-md;
|
|
@@ -892,10 +936,10 @@
|
|
|
892
936
|
// Tabs
|
|
893
937
|
@tabs-default-color: #0091FA;
|
|
894
938
|
@tabs-line-height: 44px;
|
|
895
|
-
@tabs-card-height:
|
|
939
|
+
@tabs-card-height: 32px;
|
|
896
940
|
@tabs-nav-background-color: @white;
|
|
897
|
-
@tabs-bottom-bar-width:
|
|
898
|
-
@tabs-bottom-bar-height:
|
|
941
|
+
@tabs-bottom-bar-width: 12px;
|
|
942
|
+
@tabs-bottom-bar-height: 4px;
|
|
899
943
|
@tabs-bottom-bar-color: #0091FA;
|
|
900
944
|
|
|
901
945
|
// Tag
|
|
@@ -922,8 +966,8 @@
|
|
|
922
966
|
@toast-text-color: @white;
|
|
923
967
|
@toast-loading-icon-color: @white;
|
|
924
968
|
@toast-line-height: @line-height-md;
|
|
925
|
-
@toast-border-radius: @border-radius-
|
|
926
|
-
@toast-background-color:
|
|
969
|
+
@toast-border-radius: @border-radius-lg;
|
|
970
|
+
@toast-background-color: @text-color-2;
|
|
927
971
|
@toast-icon-size: 36px;
|
|
928
972
|
@toast-text-min-width: 96px;
|
|
929
973
|
@toast-text-padding: @padding-xs @padding-sm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-switch-cell{padding-top:
|
|
1
|
+
.zt-switch-cell{padding-top:11px;padding-bottom:11px}.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
|
},
|
package/lib/tabs/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-tab{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-
|
|
1
|
+
.zt-tab{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:0 16px;color:rgba(45,75,115,.6);font-size:14px;line-height:20px;cursor:pointer}.zt-tab--active{color:#2d4b73;font-weight:700;font-size:16px}.zt-tab--disabled{color:#c8c9cc;cursor:not-allowed}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper{position:relative}.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__wrap--scrollable .zt-tab{-webkit-box-flex:1;-webkit-flex:1 0 auto;flex:1 0 auto;padding:0 12px}.zt-tabs__wrap--scrollable .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__wrap--scrollable .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;background-color:#f5faff;-webkit-user-select:none;user-select:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:15px}.zt-tabs__nav--line.zt-tabs__nav--complete{padding-right:8px;padding-left:8px}.zt-tabs__nav--card{-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 60px;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;height:32px;background:rgba(45,75,115,.04);box-shadow:inset 4px 4px 8px 0 rgba(45,75,115,.1);border-radius:16px}.zt-tabs__nav--card .zt-tab{color:#000}.zt-tabs__nav--card .zt-tab.zt-tab--active{height:24px;color:#fff;font-size:14px;background-image:-webkit-linear-gradient(top,#3cafff 0,#0091fa 100%);background-image:linear-gradient(180deg,#3cafff 0,#0091fa 100%);box-shadow:0 2px 4px 0 rgba(0,145,250,.24);border-radius:14px}.zt-tabs__nav--card .zt-tab--disabled{color:#c8c9cc}.zt-tabs__line{position:absolute;bottom:15px;left:0;z-index:1;width:12px;height:4px;background-color:#0091fa;border-radius:2px}.zt-tabs__track{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:44px}.zt-tabs--card>.zt-tabs__wrap{height:32px}
|
package/lib/tabs/index.js
CHANGED
|
@@ -219,11 +219,10 @@ var _default2 = createComponent({
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
var title = titles[_this4.currentIndex].$el;
|
|
222
|
-
var
|
|
223
|
-
lineHeight = _this4.lineHeight;
|
|
222
|
+
var lineHeight = _this4.lineHeight;
|
|
224
223
|
var left = title.offsetLeft + title.offsetWidth / 2;
|
|
225
224
|
var lineStyle = {
|
|
226
|
-
width:
|
|
225
|
+
// width: addUnit(title.offsetWidth),
|
|
227
226
|
backgroundColor: _this4.color,
|
|
228
227
|
transform: "translateX(" + left + "px) translateX(-50%)"
|
|
229
228
|
};
|
|
@@ -422,7 +421,6 @@ var _default2 = createComponent({
|
|
|
422
421
|
|
|
423
422
|
var Wrap = h("div", {
|
|
424
423
|
"ref": "wrap",
|
|
425
|
-
"style": wrapStyle,
|
|
426
424
|
"class": [bem('wrap', {
|
|
427
425
|
scrollable: scrollable
|
|
428
426
|
}), (_ref = {}, _ref[_constant.BORDER_TOP_BOTTOM] = type === 'line' && this.border, _ref)]
|
package/lib/tabs/index.less
CHANGED
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
.zt-tab {
|
|
5
5
|
position: relative;
|
|
6
6
|
display: flex;
|
|
7
|
-
flex: 1;
|
|
8
7
|
align-items: center;
|
|
9
8
|
justify-content: center;
|
|
10
9
|
box-sizing: border-box;
|
|
11
|
-
padding: 0 @padding-
|
|
12
|
-
color: @
|
|
10
|
+
padding: 0 @padding-md;
|
|
11
|
+
color: @text-color-1;
|
|
13
12
|
font-size: @tab-font-size;
|
|
14
13
|
line-height: @tab-line-height;
|
|
15
14
|
cursor: pointer;
|
|
@@ -17,6 +16,7 @@
|
|
|
17
16
|
&--active {
|
|
18
17
|
color: @tab-active-text-color;
|
|
19
18
|
font-weight: @font-weight-bold;
|
|
19
|
+
font-size: 16px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&--disabled {
|
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
&__nav {
|
|
75
75
|
position: relative;
|
|
76
76
|
display: flex;
|
|
77
|
-
|
|
77
|
+
justify-content: flex-start;
|
|
78
|
+
background-color: #f5faff;
|
|
78
79
|
user-select: none;
|
|
79
80
|
|
|
80
81
|
&--line {
|
|
@@ -89,26 +90,27 @@
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
&--card {
|
|
93
|
+
flex: 1;
|
|
94
|
+
margin: 0 60px;
|
|
95
|
+
justify-content: space-around;
|
|
96
|
+
align-items: center;
|
|
92
97
|
box-sizing: border-box;
|
|
93
98
|
height: @tabs-card-height;
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
background: rgba(45,75,115,0.04);
|
|
100
|
+
box-shadow: inset 4px 4px 8px 0 rgba(45,75,115,0.10);
|
|
101
|
+
border-radius: 16px;
|
|
96
102
|
|
|
97
|
-
&::after {
|
|
98
|
-
.hairline-surround(rgba(0, 0, 0, 0.2))
|
|
99
|
-
}
|
|
100
103
|
|
|
101
104
|
.zt-tab {
|
|
102
105
|
color: @black;
|
|
103
106
|
|
|
104
|
-
&:not(:last-child)::after {
|
|
105
|
-
.hairline-right(rgba(0, 0, 0, 0.2))
|
|
106
|
-
}
|
|
107
|
-
|
|
108
107
|
&.zt-tab--active {
|
|
108
|
+
height: 24px;
|
|
109
109
|
color: @white;
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
font-size: @tab-font-size;
|
|
111
|
+
background-image: linear-gradient(180deg, #3CAFFF 0%, #0091FA 100%);
|
|
112
|
+
box-shadow: 0 2px 4px 0 rgba(0,145,250,0.24);
|
|
113
|
+
border-radius: 14px;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
&--disabled {
|
|
@@ -126,6 +128,7 @@
|
|
|
126
128
|
width: @tabs-bottom-bar-width;
|
|
127
129
|
height: @tabs-bottom-bar-height;
|
|
128
130
|
background-color: @tabs-bottom-bar-color;
|
|
131
|
+
border-radius: 2px;
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
&__track {
|
package/lib/toast/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-toast{position:fixed;top:50%;left:50%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;width:88px;max-width:70%;min-height:84px;padding:16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-break:break-all;background-color:rgba(
|
|
1
|
+
.zt-toast{position:fixed;top:50%;left:50%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;width:88px;max-width:70%;min-height:84px;padding:16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-break:break-all;background-color:rgba(45,75,115,.8);border-radius:8px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.zt-toast--unclickable{overflow:hidden}.zt-toast--unclickable *{pointer-events:none}.zt-toast--html,.zt-toast--text{width:-webkit-fit-content;width:fit-content;min-width:96px;min-height:0;padding:8px 12px}.zt-toast--html .zt-toast__text,.zt-toast--text .zt-toast__text{margin-top:0}.zt-toast--top{top:20%}.zt-toast--bottom{top:auto;bottom:20%}.zt-toast__icon{font-size:36px}.zt-toast__loading{padding:4px;color:#fff}.zt-toast__text{margin-top:4px}.zt-toast--fail svg,.zt-toast--success svg{width:36px;height:36px}
|
package/lib/uploader/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-uploader{position:relative;display:inline-block}.zt-uploader__wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.zt-uploader__wrapper--disabled{opacity:.4}.zt-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.zt-uploader__input-wrapper{position:relative}.zt-uploader__input:disabled{cursor:not-allowed}.zt-uploader__upload{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:80px;height:80px;margin:0 8px 8px 0;background-color:#f5f5fa}.zt-uploader__upload:active{background-color:rgba(0,0,0,.04)}.zt-uploader__upload--readonly:active{background-color:#f5f5fa}.zt-uploader__upload-icon{color:#dcdee0;font-size:24px}.zt-uploader__upload-text{margin-top:8px;color:#969799;font-size:12px}.zt-uploader__preview{position:relative;margin:0 8px 8px 0;cursor:pointer}.zt-uploader__preview-image{display:block;width:80px;height:80px;overflow:hidden}.zt-uploader__preview-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 12px}.zt-uploader__preview-delete-icon{position:absolute;top:-2px;right:-2px;color:#fff;font-size:16px;-webkit-transform:scale(.5);transform:scale(.5)}.zt-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.zt-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#fff;background-color:rgba(50,50,51,.88)}.zt-uploader__mask-icon{font-size:22px}.zt-uploader__mask-message{margin-top:6px;padding:0 4px;font-size:12px;line-height:14px}.zt-uploader__loading{width:22px;height:22px;color:#fff}.zt-uploader__file{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:80px;height:80px;background-color:#
|
|
1
|
+
.zt-uploader{position:relative;display:inline-block}.zt-uploader__wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.zt-uploader__wrapper--disabled{opacity:.4}.zt-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.zt-uploader__input-wrapper{position:relative}.zt-uploader__input:disabled{cursor:not-allowed}.zt-uploader__upload{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:80px;height:80px;margin:0 8px 8px 0;background-color:#f5f5fa}.zt-uploader__upload:active{background-color:rgba(0,0,0,.04)}.zt-uploader__upload--readonly:active{background-color:#f5f5fa}.zt-uploader__upload-icon{color:#dcdee0;font-size:24px}.zt-uploader__upload-text{margin-top:8px;color:#969799;font-size:12px}.zt-uploader__preview{position:relative;margin:0 8px 8px 0;cursor:pointer}.zt-uploader__preview-image{display:block;width:80px;height:80px;overflow:hidden}.zt-uploader__preview-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 12px}.zt-uploader__preview-delete-icon{position:absolute;top:-2px;right:-2px;color:#fff;font-size:16px;-webkit-transform:scale(.5);transform:scale(.5)}.zt-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.zt-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#fff;background-color:rgba(50,50,51,.88)}.zt-uploader__mask-icon{font-size:22px}.zt-uploader__mask-message{margin-top:6px;padding:0 4px;font-size:12px;line-height:14px}.zt-uploader__loading{width:22px;height:22px;color:#fff}.zt-uploader__file{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:80px;height:80px;background-color:#f5faff}.zt-uploader__file-icon{color:#646566;font-size:20px}.zt-uploader__file-name{box-sizing:border-box;width:100%;margin-top:8px;padding:0 4px;color:#646566;font-size:12px;text-align:center}
|