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.
Files changed (159) hide show
  1. package/es/action-sheet/index.css +1 -1
  2. package/es/action-sheet/index.js +3 -3
  3. package/es/action-sheet/index.less +12 -8
  4. package/es/area/style/index.js +1 -0
  5. package/es/area/style/less.js +1 -0
  6. package/es/avatar/index.css +1 -1
  7. package/es/button/index.css +1 -1
  8. package/es/button/index.js +28 -13
  9. package/es/button/index.less +60 -27
  10. package/es/calendar/components/Header.js +1 -6
  11. package/es/calendar/index.css +1 -1
  12. package/es/calendar/index.js +31 -8
  13. package/es/calendar/index.less +16 -10
  14. package/es/cell/index.css +1 -1
  15. package/es/cell/index.js +60 -38
  16. package/es/cell/index.less +67 -12
  17. package/es/cell/shared.js +2 -0
  18. package/es/checkbox/index.css +1 -1
  19. package/es/checkbox/index.less +18 -6
  20. package/es/checkbox-group/index.js +1 -0
  21. package/es/datetime-picker/style/index.js +1 -0
  22. package/es/datetime-picker/style/less.js +1 -0
  23. package/es/field/index.css +1 -1
  24. package/es/field/index.js +80 -7
  25. package/es/field/index.less +60 -8
  26. package/es/icon/index.css +1 -1
  27. package/es/image/index.css +1 -1
  28. package/es/image-preview/ImagePreview.js +1 -1
  29. package/es/image-preview/index.css +1 -1
  30. package/es/image-preview/index.less +4 -2
  31. package/es/index.js +1 -1
  32. package/es/loading/index.css +1 -1
  33. package/es/loading/index.js +3 -3
  34. package/es/loading/index.less +1 -1
  35. package/es/media-picker/image/PickFileIcon.js +2 -9
  36. package/es/media-picker/image/PickPhotoIcon.js +2 -9
  37. package/es/media-picker/image/TakeAudioIcon.js +2 -9
  38. package/es/media-picker/image/TakePhotoIcon.js +2 -9
  39. package/es/media-picker/image/TakeVideoIcon.js +2 -9
  40. package/es/media-picker/index.css +1 -1
  41. package/es/media-picker/index.less +6 -4
  42. package/es/mixins/checkbox.js +12 -30
  43. package/es/multiple-picker/index.css +1 -1
  44. package/es/multiple-picker/index.js +18 -11
  45. package/es/multiple-picker/index.less +11 -5
  46. package/es/multiple-picker/style/index.js +1 -0
  47. package/es/multiple-picker/style/less.js +1 -0
  48. package/es/pdf-viewer/style/index.js +1 -0
  49. package/es/pdf-viewer/style/less.js +1 -0
  50. package/es/picker/index.css +1 -1
  51. package/es/picker/index.js +18 -9
  52. package/es/picker/index.less +18 -2
  53. package/es/picker/style/index.js +1 -0
  54. package/es/picker/style/less.js +1 -0
  55. package/es/popup/index.css +1 -1
  56. package/es/popup/index.js +1 -1
  57. package/es/popup/index.less +2 -2
  58. package/es/radio/index.css +1 -1
  59. package/es/radio/index.less +23 -22
  60. package/es/radio-group/index.js +1 -0
  61. package/es/signature/index.js +7 -6
  62. package/es/signature/index.less +1 -1
  63. package/es/step/index.css +1 -1
  64. package/es/step/index.js +3 -5
  65. package/es/step/index.less +3 -1
  66. package/es/stepper/index.css +1 -1
  67. package/es/steps/index.css +1 -1
  68. package/es/steps/index.less +3 -3
  69. package/es/style/reset.css +1 -1
  70. package/es/style/var.less +92 -53
  71. package/es/switch-cell/index.css +1 -1
  72. package/es/tabs/Title.js +6 -1
  73. package/es/tabs/index.css +1 -1
  74. package/es/tabs/index.js +2 -4
  75. package/es/tabs/index.less +18 -15
  76. package/es/toast/index.css +1 -1
  77. package/es/uploader/index.css +1 -1
  78. package/lib/action-sheet/index.css +1 -1
  79. package/lib/action-sheet/index.js +3 -3
  80. package/lib/action-sheet/index.less +12 -8
  81. package/lib/area/style/index.js +1 -0
  82. package/lib/area/style/less.js +1 -0
  83. package/lib/avatar/index.css +1 -1
  84. package/lib/button/index.css +1 -1
  85. package/lib/button/index.js +28 -13
  86. package/lib/button/index.less +60 -27
  87. package/lib/calendar/components/Header.js +1 -6
  88. package/lib/calendar/index.css +1 -1
  89. package/lib/calendar/index.js +31 -8
  90. package/lib/calendar/index.less +16 -10
  91. package/lib/cell/index.css +1 -1
  92. package/lib/cell/index.js +60 -38
  93. package/lib/cell/index.less +67 -12
  94. package/lib/cell/shared.js +2 -0
  95. package/lib/checkbox/index.css +1 -1
  96. package/lib/checkbox/index.less +18 -6
  97. package/lib/checkbox-group/index.js +1 -0
  98. package/lib/datetime-picker/style/index.js +1 -0
  99. package/lib/datetime-picker/style/less.js +1 -0
  100. package/lib/field/index.css +1 -1
  101. package/lib/field/index.js +80 -7
  102. package/lib/field/index.less +60 -8
  103. package/lib/icon/index.css +1 -1
  104. package/lib/image/index.css +1 -1
  105. package/lib/image-preview/ImagePreview.js +1 -1
  106. package/lib/image-preview/index.css +1 -1
  107. package/lib/image-preview/index.less +4 -2
  108. package/lib/index.css +1 -1
  109. package/lib/index.js +1 -1
  110. package/lib/index.less +1 -1
  111. package/lib/loading/index.css +1 -1
  112. package/lib/loading/index.js +3 -3
  113. package/lib/loading/index.less +1 -1
  114. package/lib/media-picker/image/PickFileIcon.js +2 -9
  115. package/lib/media-picker/image/PickPhotoIcon.js +2 -9
  116. package/lib/media-picker/image/TakeAudioIcon.js +2 -9
  117. package/lib/media-picker/image/TakePhotoIcon.js +2 -9
  118. package/lib/media-picker/image/TakeVideoIcon.js +2 -9
  119. package/lib/media-picker/index.css +1 -1
  120. package/lib/media-picker/index.less +6 -4
  121. package/lib/mixins/checkbox.js +12 -30
  122. package/lib/multiple-picker/index.css +1 -1
  123. package/lib/multiple-picker/index.js +19 -11
  124. package/lib/multiple-picker/index.less +11 -5
  125. package/lib/multiple-picker/style/index.js +1 -0
  126. package/lib/multiple-picker/style/less.js +1 -0
  127. package/lib/pdf-viewer/style/index.js +1 -0
  128. package/lib/pdf-viewer/style/less.js +1 -0
  129. package/lib/picker/index.css +1 -1
  130. package/lib/picker/index.js +19 -9
  131. package/lib/picker/index.less +18 -2
  132. package/lib/picker/style/index.js +1 -0
  133. package/lib/picker/style/less.js +1 -0
  134. package/lib/popup/index.css +1 -1
  135. package/lib/popup/index.js +1 -1
  136. package/lib/popup/index.less +2 -2
  137. package/lib/radio/index.css +1 -1
  138. package/lib/radio/index.less +23 -22
  139. package/lib/radio-group/index.js +1 -0
  140. package/lib/signature/index.js +7 -6
  141. package/lib/signature/index.less +1 -1
  142. package/lib/step/index.css +1 -1
  143. package/lib/step/index.js +3 -5
  144. package/lib/step/index.less +3 -1
  145. package/lib/stepper/index.css +1 -1
  146. package/lib/steps/index.css +1 -1
  147. package/lib/steps/index.less +3 -3
  148. package/lib/style/reset.css +1 -1
  149. package/lib/style/var.less +92 -53
  150. package/lib/switch-cell/index.css +1 -1
  151. package/lib/tabs/Title.js +6 -1
  152. package/lib/tabs/index.css +1 -1
  153. package/lib/tabs/index.js +2 -4
  154. package/lib/tabs/index.less +18 -15
  155. package/lib/toast/index.css +1 -1
  156. package/lib/uploader/index.css +1 -1
  157. package/lib/zart.js +547 -450
  158. package/lib/zart.min.js +1 -1
  159. package/package.json +3 -3
@@ -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: 0px;
72
+ left: 0;
71
73
  z-index: 1;
72
74
  font-size: @step-icon-size;
73
75
  line-height: 1;
@@ -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:#f5f5fa}.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}
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}
@@ -1 +1 @@
1
- .zt-steps{overflow:hidden;background-color:#fff;margin:12px;border:0 solid rgba(0,0,0,.1);box-shadow:0 4px 8px 0 rgba(0,0,0,.1);border-radius:4px}.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}
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}
@@ -3,10 +3,10 @@
3
3
  .zt-steps {
4
4
  overflow: hidden;
5
5
  background-color: @steps-background-color;
6
- margin: 12px;
6
+ margin: 16px;
7
7
  border: 0 solid rgba(0,0,0,0.10);
8
- box-shadow: 0 4px 8px 0 rgba(0,0,0,0.10);
9
- border-radius: 4px;
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;
@@ -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:#f5f5fa}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}
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/es/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-1;
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-lg;
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: @black;
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: 28px;
144
- @button-mini-font-size: @font-size-md;
145
- @button-small-height: 32px;
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: 1.2;
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: @white;
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: @blue;
157
- @button-primary-border-color: @blue;
158
- @button-info-color: @white;
159
- @button-info-background-color: @cyan;
160
- @button-info-border-color: @cyan;
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: @border-radius-md;
199
+ @button-border-radius: 22px;
172
200
  @button-round-border-radius: @border-radius-max;
173
- @button-plain-background-color: @white;
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: 10px;
274
+ @cell-vertical-padding: 16px;
241
275
  @cell-horizontal-padding: @padding-md;
242
- @cell-text-color: @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: @black;
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: 10px 0;
271
- @checkbox-border-color: @gray-5;
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-disabled-icon-color: @gray-5;
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(0, 0, 0, 0.6);
513
- @image-preview-index-padding:@padding-base @padding-xs;
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-bottom:8px;
517
- @image-preview-index-left:40px;
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:18px;
531
- @image-preview-title-padding-left:70px;
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(0, 0, 0, 0.4);
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: @gray-6;
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-lg;
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-lg;
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: 8px;
672
- @popup-close-icon-size: 20px;
673
- @popup-close-icon-color: @gray-5;
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: @gray-5;
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-background-color: @border-color;
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: 12px;
783
- @step-circle-size: 18px;
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: 30px;
934
+ @tabs-card-height: 32px;
896
935
  @tabs-nav-background-color: @white;
897
- @tabs-bottom-bar-width: 40px;
898
- @tabs-bottom-bar-height: 3px;
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-md;
926
- @toast-background-color: fade(@black, 80%);
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:9px;padding-bottom:9px}.zt-switch-cell--large{padding-top:11px;padding-bottom:11px}.zt-switch-cell .zt-switch{float:right}
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/es/tabs/Title.js CHANGED
@@ -16,7 +16,11 @@ export default createComponent({
16
16
  disabled: Boolean,
17
17
  scrollable: Boolean,
18
18
  activeColor: String,
19
- inactiveColor: String
19
+ inactiveColor: String,
20
+ maxWidth: {
21
+ type: String,
22
+ default: '112px'
23
+ }
20
24
  },
21
25
  computed: {
22
26
  style: function style() {
@@ -43,6 +47,7 @@ export default createComponent({
43
47
  style.color = titleColor;
44
48
  }
45
49
 
50
+ style.maxWidth = this.maxWidth;
46
51
  return style;
47
52
  }
48
53
  },
package/es/tabs/index.css CHANGED
@@ -1 +1 @@
1
- .zt-tab{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-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 4px;color:#646566;font-size:14px;line-height:20px;cursor:pointer}.zt-tab--active{color:rgba(0,0,0,.6);font-weight:700}.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;background-color:#fff;-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{box-sizing:border-box;height:30px;margin:0 16px;border-radius:2px}.zt-tabs__nav--card::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:1px solid rgba(0,0,0,.2);-webkit-transform:scale(.5);transform:scale(.5)}.zt-tabs__nav--card .zt-tab{color:#000}.zt-tabs__nav--card .zt-tab:not(:last-child)::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:0;right:0;bottom:0;border-right:1px solid rgba(0,0,0,.2);-webkit-transform:scaleX(.5);transform:scaleX(.5)}.zt-tabs__nav--card .zt-tab.zt-tab--active{color:#fff;background-color:#0091fa;border:1px solid #0091fa}.zt-tabs__nav--card .zt-tab--disabled{color:#c8c9cc}.zt-tabs__line{position:absolute;bottom:15px;left:0;z-index:1;width:40px;height:3px;background-color:#0091fa}.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:30px}
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/es/tabs/index.js CHANGED
@@ -199,11 +199,10 @@ export default createComponent({
199
199
  }
200
200
 
201
201
  var title = titles[_this4.currentIndex].$el;
202
- var lineWidth = _this4.lineWidth,
203
- lineHeight = _this4.lineHeight;
202
+ var lineHeight = _this4.lineHeight;
204
203
  var left = title.offsetLeft + title.offsetWidth / 2;
205
204
  var lineStyle = {
206
- width: addUnit(title.offsetWidth),
205
+ // width: addUnit(title.offsetWidth),
207
206
  backgroundColor: _this4.color,
208
207
  transform: "translateX(" + left + "px) translateX(-50%)"
209
208
  };
@@ -402,7 +401,6 @@ export default createComponent({
402
401
 
403
402
  var Wrap = h("div", {
404
403
  "ref": "wrap",
405
- "style": wrapStyle,
406
404
  "class": [bem('wrap', {
407
405
  scrollable: scrollable
408
406
  }), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = type === 'line' && this.border, _ref)]
@@ -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-base;
12
- color: @tab-text-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
- background-color: @tabs-nav-background-color;
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
- margin: 0 @padding-md;
95
- border-radius: @border-radius-sm;
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
- background-color: @tabs-default-color;
111
- border: @border-width-base solid @tabs-default-color;
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 {
@@ -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(0,0,0,.8);border-radius:4px;-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}
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}
@@ -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:#f5f5fa}.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}
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}
@@ -1 +1 @@
1
- .zt-action-sheet{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;max-height:80%;overflow:hidden;color:rgba(0,0,0,.6)}.zt-action-sheet__content{-webkit-box-flex:1;-webkit-flex:1 auto;flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.zt-action-sheet__cancel,.zt-action-sheet__item{display:block;width:100%;padding:10px 16px;font-size:16px;line-height:24px;background-color:#fff;border:none;cursor:pointer}.zt-action-sheet__cancel:active,.zt-action-sheet__item:active{background-color:rgba(0,0,0,.04)}.zt-action-sheet__item{position:relative;color:#000}.zt-action-sheet__item:not(:last-child).zt-action-sheet__item::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-action-sheet__item--disabled,.zt-action-sheet__item--loading{color:rgba(0,0,0,.2)}.zt-action-sheet__item--disabled:active,.zt-action-sheet__item--loading:active{background-color:#fff}.zt-action-sheet__item--disabled{cursor:not-allowed}.zt-action-sheet__item--loading{cursor:default}.zt-action-sheet__item--has-subname{padding-top:9px;padding-bottom:9px}.zt-action-sheet__cancel{-webkit-flex-shrink:0;flex-shrink:0;box-sizing:border-box;color:#000}.zt-action-sheet__subname{margin-top:2px;color:#969799;font-size:12px;line-height:16px}.zt-action-sheet__gap{display:block;height:12px;background-color:#f5f5fa}.zt-action-sheet__header{-webkit-flex-shrink:0;flex-shrink:0;font-size:14px;line-height:44px;text-align:center;position:relative;color:rgba(0,0,0,.4)}.zt-action-sheet__header::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-action-sheet__header--align-start{text-align:start}.zt-action-sheet__description{position:relative;-webkit-flex-shrink:0;flex-shrink:0;padding:20px 16px;color:#969799;font-size:14px;line-height:20px;text-align:center}.zt-action-sheet__description::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-action-sheet__loading-icon .zt-loading__spinner{width:20px;height:20px}.zt-action-sheet__close{position:absolute;top:0;right:0;padding:0 16px;color:rgba(0,0,0,.4);font-size:20px;line-height:inherit}.zt-action-sheet__close:active{color:#969799}
1
+ .zt-action-sheet{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;max-height:80%;overflow:hidden;color:rgba(0,0,0,.6)}.zt-action-sheet__content{-webkit-box-flex:1;-webkit-flex:1 auto;flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.zt-action-sheet__cancel,.zt-action-sheet__item{display:block;width:100%;padding:10px 16px;font-size:14px;line-height:24px;background-color:#fff;border:none;cursor:pointer}.zt-action-sheet__cancel:active,.zt-action-sheet__item:active{background-color:rgba(0,0,0,.04)}.zt-action-sheet__item{position:relative;color:#2d4b73}.zt-action-sheet__item::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-action-sheet__item--disabled,.zt-action-sheet__item--loading{color:rgba(0,0,0,.2)}.zt-action-sheet__item--disabled:active,.zt-action-sheet__item--loading:active{background-color:#fff}.zt-action-sheet__item--disabled{cursor:not-allowed}.zt-action-sheet__item--loading{cursor:default}.zt-action-sheet__item--has-subname{padding-top:9px;padding-bottom:9px}.zt-action-sheet__cancel{box-sizing:border-box;color:#2d4b73;background:rgba(45,75,115,.04);border-radius:20px;font-size:16px}.zt-action-sheet__subname{margin-top:2px;color:#969799;font-size:12px;line-height:16px}.zt-action-sheet__cancel-box{display:-webkit-box;display:-webkit-flex;display:flex;height:60px;padding:0 16px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-action-sheet__header{-webkit-flex-shrink:0;flex-shrink:0;font-size:14px;line-height:44px;text-align:center;position:relative;color:rgba(45,75,115,.4)}.zt-action-sheet__header::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-action-sheet__header--align-start{text-align:start}.zt-action-sheet__description{position:relative;-webkit-flex-shrink:0;flex-shrink:0;padding:20px 16px;color:#969799;font-size:14px;line-height:20px;text-align:center}.zt-action-sheet__description::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-action-sheet__loading-icon .zt-loading__spinner{width:20px;height:20px}.zt-action-sheet__close{position:absolute;top:0;right:0;padding:0 16px;color:rgba(0,0,0,.4);font-size:20px;line-height:inherit}.zt-action-sheet__close:active{color:#969799}
@@ -131,8 +131,8 @@ function ActionSheet(h, props, slots, ctx) {
131
131
  function CancelText() {
132
132
  if (cancelText) {
133
133
  return [h("div", {
134
- "class": bem('gap')
135
- }), h("button", {
134
+ "class": bem('cancel-box')
135
+ }, [h("button", {
136
136
  "attrs": {
137
137
  "type": "button"
138
138
  },
@@ -140,7 +140,7 @@ function ActionSheet(h, props, slots, ctx) {
140
140
  "on": {
141
141
  "click": onCancel
142
142
  }
143
- }, [cancelText])];
143
+ }, [cancelText])])];
144
144
  }
145
145
  }
146
146
 
@@ -32,9 +32,9 @@
32
32
 
33
33
  &__item {
34
34
  position: relative;
35
- color: @black;
35
+ color: @text-color-3;
36
36
 
37
- &:not(:last-child)&::after {
37
+ &::after {
38
38
  .hairline-bottom(@cell-border-color);
39
39
  }
40
40
 
@@ -62,9 +62,12 @@
62
62
  }
63
63
 
64
64
  &__cancel {
65
- flex-shrink: 0;
65
+ //flex-shrink: 0;
66
66
  box-sizing: border-box;
67
67
  color: @action-sheet-cancel-text-color;
68
+ background: rgba(45, 75, 115, 0.04);
69
+ border-radius: 20px;
70
+ font-size: @font-size-lg;
68
71
  }
69
72
 
70
73
  &__subname {
@@ -74,10 +77,11 @@
74
77
  line-height: @action-sheet-subname-line-height;
75
78
  }
76
79
 
77
- &__gap {
78
- display: block;
79
- height: @action-sheet-cancel-padding-top;
80
- background-color: @action-sheet-cancel-padding-color;
80
+ &__cancel-box {
81
+ display: flex;
82
+ height: 60px;
83
+ padding: 0 16px;
84
+ align-items: center;
81
85
  }
82
86
 
83
87
  &__header {
@@ -86,7 +90,7 @@
86
90
  line-height: @action-sheet-header-height;
87
91
  text-align: center;
88
92
  position: relative;
89
- color: @gray-a4;
93
+ color: @text-color-4;
90
94
 
91
95
  &::after {
92
96
  .hairline-bottom(@cell-border-color);
@@ -4,4 +4,5 @@ require('../../info/index.css');
4
4
  require('../../icon/index.css');
5
5
  require('../../popup/index.css');
6
6
  require('../../loading/index.css');
7
+ require('../../button/index.css');
7
8
  require('../../picker/index.css');