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.
Files changed (191) 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 +62 -40
  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 -15
  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 +94 -9
  25. package/es/field/index.less +81 -11
  26. package/es/hierarchy-select/hierarchySelect.js +1 -8
  27. package/es/hierarchy-select/index.css +1 -1
  28. package/es/hierarchy-select/index.js +6 -14
  29. package/es/hierarchy-select/index.less +4 -5
  30. package/es/hierarchy-select/markList.js +1 -16
  31. package/es/icon/index.css +1 -1
  32. package/es/image/index.css +1 -1
  33. package/es/image-preview/ImagePreview.js +1 -1
  34. package/es/image-preview/index.css +1 -1
  35. package/es/image-preview/index.less +4 -2
  36. package/es/index.js +3 -4
  37. package/es/loading/index.css +1 -1
  38. package/es/loading/index.js +3 -3
  39. package/es/loading/index.less +1 -1
  40. package/es/media-picker/image/PickFileIcon.js +2 -9
  41. package/es/media-picker/image/PickPhotoIcon.js +2 -9
  42. package/es/media-picker/image/TakeAudioIcon.js +2 -9
  43. package/es/media-picker/image/TakePhotoIcon.js +2 -9
  44. package/es/media-picker/image/TakeVideoIcon.js +2 -9
  45. package/es/media-picker/index.css +1 -1
  46. package/es/media-picker/index.js +22 -17
  47. package/es/media-picker/index.less +6 -4
  48. package/es/media-picker/style/index.js +4 -0
  49. package/es/media-picker/style/less.js +4 -0
  50. package/es/mixins/checkbox.js +12 -30
  51. package/es/multiple-picker/index.css +1 -1
  52. package/es/multiple-picker/index.js +18 -11
  53. package/es/multiple-picker/index.less +11 -7
  54. package/es/multiple-picker/style/index.js +1 -0
  55. package/es/multiple-picker/style/less.js +1 -0
  56. package/es/pdf-viewer/style/index.js +1 -0
  57. package/es/pdf-viewer/style/less.js +1 -0
  58. package/es/picker/index.css +1 -1
  59. package/es/picker/index.js +18 -9
  60. package/es/picker/index.less +18 -2
  61. package/es/picker/style/index.js +1 -0
  62. package/es/picker/style/less.js +1 -0
  63. package/es/popup/index.css +1 -1
  64. package/es/popup/index.js +120 -49
  65. package/es/popup/index.less +31 -2
  66. package/es/radio/index.css +1 -1
  67. package/es/radio/index.less +24 -29
  68. package/es/radio-group/index.js +1 -0
  69. package/es/search/index.css +1 -1
  70. package/es/search/index.js +1 -1
  71. package/es/search/index.less +31 -3
  72. package/es/signature/index.js +7 -6
  73. package/es/signature/index.less +1 -1
  74. package/es/step/index.css +1 -1
  75. package/es/step/index.js +3 -5
  76. package/es/step/index.less +3 -1
  77. package/es/stepper/index.css +1 -1
  78. package/es/steps/index.css +1 -1
  79. package/es/steps/index.less +3 -3
  80. package/es/style/reset.css +1 -1
  81. package/es/style/var.less +106 -62
  82. package/es/switch-cell/index.css +1 -1
  83. package/es/tabs/Title.js +6 -1
  84. package/es/tabs/index.css +1 -1
  85. package/es/tabs/index.js +2 -4
  86. package/es/tabs/index.less +18 -15
  87. package/es/toast/index.css +1 -1
  88. package/es/uploader/index.css +1 -1
  89. package/lib/action-sheet/index.css +1 -1
  90. package/lib/action-sheet/index.js +3 -3
  91. package/lib/action-sheet/index.less +12 -8
  92. package/lib/area/style/index.js +1 -0
  93. package/lib/area/style/less.js +1 -0
  94. package/lib/avatar/index.css +1 -1
  95. package/lib/button/index.css +1 -1
  96. package/lib/button/index.js +28 -13
  97. package/lib/button/index.less +60 -27
  98. package/lib/calendar/components/Header.js +1 -6
  99. package/lib/calendar/index.css +1 -1
  100. package/lib/calendar/index.js +31 -8
  101. package/lib/calendar/index.less +16 -10
  102. package/lib/cell/index.css +1 -1
  103. package/lib/cell/index.js +62 -40
  104. package/lib/cell/index.less +67 -12
  105. package/lib/cell/shared.js +2 -0
  106. package/lib/checkbox/index.css +1 -1
  107. package/lib/checkbox/index.less +18 -15
  108. package/lib/checkbox-group/index.js +1 -0
  109. package/lib/datetime-picker/style/index.js +1 -0
  110. package/lib/datetime-picker/style/less.js +1 -0
  111. package/lib/field/index.css +1 -1
  112. package/lib/field/index.js +94 -9
  113. package/lib/field/index.less +81 -11
  114. package/lib/hierarchy-select/hierarchySelect.js +1 -8
  115. package/lib/hierarchy-select/index.css +1 -1
  116. package/lib/hierarchy-select/index.js +6 -15
  117. package/lib/hierarchy-select/index.less +4 -5
  118. package/lib/hierarchy-select/markList.js +1 -16
  119. package/lib/icon/index.css +1 -1
  120. package/lib/image/index.css +1 -1
  121. package/lib/image-preview/ImagePreview.js +1 -1
  122. package/lib/image-preview/index.css +1 -1
  123. package/lib/image-preview/index.less +4 -2
  124. package/lib/index.css +1 -1
  125. package/lib/index.js +2 -6
  126. package/lib/index.less +3 -4
  127. package/lib/loading/index.css +1 -1
  128. package/lib/loading/index.js +3 -3
  129. package/lib/loading/index.less +1 -1
  130. package/lib/media-picker/image/PickFileIcon.js +2 -9
  131. package/lib/media-picker/image/PickPhotoIcon.js +2 -9
  132. package/lib/media-picker/image/TakeAudioIcon.js +2 -9
  133. package/lib/media-picker/image/TakePhotoIcon.js +2 -9
  134. package/lib/media-picker/image/TakeVideoIcon.js +2 -9
  135. package/lib/media-picker/index.css +1 -1
  136. package/lib/media-picker/index.js +22 -11
  137. package/lib/media-picker/index.less +6 -4
  138. package/lib/media-picker/style/index.js +4 -0
  139. package/lib/media-picker/style/less.js +4 -0
  140. package/lib/mixins/checkbox.js +12 -30
  141. package/lib/multiple-picker/index.css +1 -1
  142. package/lib/multiple-picker/index.js +19 -11
  143. package/lib/multiple-picker/index.less +11 -7
  144. package/lib/multiple-picker/style/index.js +1 -0
  145. package/lib/multiple-picker/style/less.js +1 -0
  146. package/lib/pdf-viewer/style/index.js +1 -0
  147. package/lib/pdf-viewer/style/less.js +1 -0
  148. package/lib/picker/index.css +1 -1
  149. package/lib/picker/index.js +19 -9
  150. package/lib/picker/index.less +18 -2
  151. package/lib/picker/style/index.js +1 -0
  152. package/lib/picker/style/less.js +1 -0
  153. package/lib/popup/index.css +1 -1
  154. package/lib/popup/index.js +120 -49
  155. package/lib/popup/index.less +31 -2
  156. package/lib/radio/index.css +1 -1
  157. package/lib/radio/index.less +24 -29
  158. package/lib/radio-group/index.js +1 -0
  159. package/lib/search/index.css +1 -1
  160. package/lib/search/index.js +1 -1
  161. package/lib/search/index.less +31 -3
  162. package/lib/signature/index.js +7 -6
  163. package/lib/signature/index.less +1 -1
  164. package/lib/step/index.css +1 -1
  165. package/lib/step/index.js +3 -5
  166. package/lib/step/index.less +3 -1
  167. package/lib/stepper/index.css +1 -1
  168. package/lib/steps/index.css +1 -1
  169. package/lib/steps/index.less +3 -3
  170. package/lib/style/reset.css +1 -1
  171. package/lib/style/var.less +106 -62
  172. package/lib/switch-cell/index.css +1 -1
  173. package/lib/tabs/Title.js +6 -1
  174. package/lib/tabs/index.css +1 -1
  175. package/lib/tabs/index.js +2 -4
  176. package/lib/tabs/index.less +18 -15
  177. package/lib/toast/index.css +1 -1
  178. package/lib/uploader/index.css +1 -1
  179. package/lib/zart.js +1199 -2181
  180. package/lib/zart.min.js +4 -4
  181. package/package.json +5 -6
  182. package/es/pdf-viewer-v2/index.css +0 -1
  183. package/es/pdf-viewer-v2/index.js +0 -231
  184. package/es/pdf-viewer-v2/index.less +0 -40
  185. package/es/pdf-viewer-v2/style/index.js +0 -8
  186. package/es/pdf-viewer-v2/style/less.js +0 -8
  187. package/lib/pdf-viewer-v2/index.css +0 -1
  188. package/lib/pdf-viewer-v2/index.js +0 -242
  189. package/lib/pdf-viewer-v2/index.less +0 -40
  190. package/lib/pdf-viewer-v2/style/index.js +0 -8
  191. package/lib/pdf-viewer-v2/style/less.js +0 -8
@@ -13,6 +13,29 @@
13
13
  transition: @popup-transition;
14
14
  -webkit-overflow-scrolling: touch;
15
15
 
16
+ &__slider {
17
+ position: fixed;
18
+ width: 100%;
19
+ bottom: 0;
20
+ border-radius: 16px 16px 0 0;
21
+ background-color: #fff;
22
+
23
+ &-title {
24
+ height: 40px;
25
+ text-align: center;
26
+ }
27
+ &-bar {
28
+ display: inline-block;
29
+ width: 32px;
30
+ height: 4px;
31
+ transform: scaleY(-1);
32
+ background: rgba(45,75,115,0.20);
33
+ border-radius: 3px;
34
+ }
35
+ &-content {
36
+ overflow-y: auto;
37
+ }
38
+ }
16
39
  &--center {
17
40
  top: 50%;
18
41
  left: 50%;
@@ -101,7 +124,13 @@
101
124
  &-slide-left-leave-active {
102
125
  transform: translate3d(-100%, -50%, 0);
103
126
  }
127
+ &__slider-icon{
128
+ z-index: @popup-close-icon-z-index;
129
+ color: @popup-close-icon-color;
130
+ font-size: @popup-close-icon-size;
131
+ cursor: pointer;
104
132
 
133
+ }
105
134
  &__close-icon {
106
135
  position: absolute;
107
136
  z-index: @popup-close-icon-z-index;
@@ -114,12 +143,12 @@
114
143
  }
115
144
 
116
145
  &--top-left {
117
- top: @popup-close-icon-margin;
146
+ top: @popup-close-icon-z-margin-top;
118
147
  left: @popup-close-icon-margin;
119
148
  }
120
149
 
121
150
  &--top-right {
122
- top: @popup-close-icon-margin;
151
+ top: @popup-close-icon-z-margin-top;
123
152
  right: @popup-close-icon-margin;
124
153
  }
125
154
 
@@ -1 +1 @@
1
- .zt-radio{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:10px 0}.zt-radio__custom-svg{width:24px;height:24px;border-radius:50%}.zt-radio__icon--disabled .zt-radio__custom-svg{opacity:.2}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-left:12px}.zt-radio__icon{-webkit-box-flex:0;-webkit-flex:none;flex:none;height:1em;font-size:24px;line-height:1em;cursor:pointer}.zt-radio__icon i,.zt-radio__icon img{-webkit-transform:scale(.8333);transform:scale(.8333);-webkit-transform-origin:center;transform-origin:center}.zt-radio__icon img{width:1em;height:1em}.zt-radio__icon .zt-icon{display:block;box-sizing:border-box;width:1em;height:1em;color:transparent;font-size:1em;line-height:1.25;text-align:center;border:1px solid #c8c9cc;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-radio__icon--round .zt-icon{border-radius:100%}.zt-radio__icon--checked .zt-icon{color:#fff;background-color:#0091fa;border-color:#0091fa}.zt-radio__icon--disabled{cursor:not-allowed}.zt-radio__icon--disabled .zt-icon{background-color:rgba(0,0,0,.1);border-color:#c8c9cc}.zt-radio__icon--disabled.zt-radio__icon--checked .zt-icon{color:#c8c9cc}.zt-radio__label{margin-left:8px;color:#000;line-height:24px}.zt-radio__label--left{margin:0 8px 0 0}.zt-radio__label--disabled{color:#c8c9cc}
1
+ .zt-radio{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-left:12px}.zt-radio__icon{font-size:20px;cursor:pointer}.zt-radio__icon .zt-icon{display:block;box-sizing:border-box;width:1em;height:1em;color:transparent;font-size:inherit;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-radio__icon--round .zt-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:100%}.zt-radio__icon--checked .zt-icon{color:#fff;background-color:#0091fa;border:1px solid rgba(255,255,255,.5);box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2)}.zt-radio__icon--disabled{cursor:not-allowed}.zt-radio__icon--disabled .zt-icon{background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%);border:1px solid rgba(45,75,115,.08);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2)}.zt-radio__icon--disabled.zt-radio__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-radio__label{margin-left:8px;color:#000;line-height:20px}.zt-radio__label--left{margin:0 8px 0 0}.zt-radio__label--disabled{color:#c8c9cc}.zt-radio__disable-icon .zt-radio__icon--round:not(.zt-radio__icon--disabled,.zt-radio__icon--checked){width:1em;height:1em;box-sizing:border-box;border-radius:100%;background-image:-webkit-linear-gradient(315deg,#e6ebf0 0,#fff 100%);background-image:linear-gradient(135deg,#e6ebf0 0,#fff 100%);border:1px solid rgba(45,75,115,.13);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2)}
@@ -2,21 +2,11 @@
2
2
 
3
3
  .zt-radio {
4
4
  display: flex;
5
- align-items: center;
6
5
  overflow: hidden;
7
6
  cursor: pointer;
8
7
  user-select: none;
9
8
  padding: @radio-padding;
10
9
 
11
- &__custom-svg {
12
- width: @radio-size;
13
- height: @radio-size;
14
- border-radius: 50%;
15
- }
16
- &__icon--disabled &__custom-svg {
17
- opacity: .2;
18
- }
19
-
20
10
  &--disabled {
21
11
  cursor: not-allowed;
22
12
  }
@@ -30,19 +20,8 @@
30
20
  }
31
21
 
32
22
  &__icon {
33
- flex: none;
34
- height: 1em;
35
23
  font-size: @radio-size;
36
- line-height: 1em;
37
24
  cursor: pointer;
38
- i, img {
39
- transform: scale(0.8333);
40
- transform-origin: center;
41
- }
42
- img {
43
- width: 1em;
44
- height: 1em;
45
- }
46
25
 
47
26
  .zt-icon {
48
27
  display: block;
@@ -50,16 +29,16 @@
50
29
  width: 1em;
51
30
  height: 1em;
52
31
  color: transparent;
53
- font-size: 1em;
54
- line-height: 1.25;
55
- text-align: center;
56
- border: 1px solid @radio-border-color;
32
+ font-size: inherit;
57
33
  transition-duration: @radio-transition-duration;
58
34
  transition-property: color, border-color, background-color;
59
35
  }
60
36
 
61
37
  &--round {
62
38
  .zt-icon {
39
+ display: flex;
40
+ justify-content: center;
41
+ align-items: center;
63
42
  border-radius: 100%;
64
43
  }
65
44
  }
@@ -68,7 +47,8 @@
68
47
  .zt-icon {
69
48
  color: @white;
70
49
  background-color: @radio-checked-icon-color;
71
- border-color: @radio-checked-icon-color;
50
+ border: 1px solid @checkbox-disabled-border-color;
51
+ box-shadow: inset 1px 1px 2px 0 @gray-a2;
72
52
  }
73
53
  }
74
54
 
@@ -76,14 +56,17 @@
76
56
  cursor: not-allowed;
77
57
 
78
58
  .zt-icon {
79
- background-color: @radio-disabled-background-color;
80
- border-color: @radio-disabled-icon-color;
59
+ background-image: @radio-disabled-background-color;
60
+ border: 1px solid @radio-disabled-border-color;
61
+ box-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 rgba(45,75,115,0.20);
81
62
  }
82
63
  }
83
64
 
84
65
  &--disabled&--checked {
85
66
  .zt-icon {
86
- color: @radio-disabled-icon-color;
67
+ opacity: .4;
68
+ background: @checkbox-checked-icon-color;
69
+ color: @white;
87
70
  }
88
71
  }
89
72
  }
@@ -102,3 +85,15 @@
102
85
  }
103
86
  }
104
87
  }
88
+
89
+ .zt-radio__disable-icon {
90
+ .zt-radio__icon--round:not(.zt-radio__icon--disabled,.zt-radio__icon--checked){
91
+ width: 1em;
92
+ height: 1em;
93
+ box-sizing: border-box;
94
+ border-radius: 100%;
95
+ background-image: @gradient-white-1;
96
+ border: 1px solid @radio-border-color;
97
+ box-shadow: -1px -1px 2px 0 #FFF, 0 0 3px 0 rgba(45,75,115,0.20);
98
+ }
99
+ }
@@ -13,6 +13,7 @@ export default createComponent({
13
13
  disabled: Boolean,
14
14
  direction: String,
15
15
  checkedColor: String,
16
+ boxShadow: String,
16
17
  iconSize: [Number, String]
17
18
  },
18
19
  watch: {
@@ -1 +1 @@
1
- .zt-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:8px 16px;background-color:#fff}.zt-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:rgba(0,0,0,.04);border:0 solid rgba(0,0,0,.06);border-radius:2px}.zt-search__content--round{border-radius:999px}.zt-search__label{padding:4px 0 4px 8px;color:rgba(0,0,0,.6);font-family:PingFangSC-Semibold;font-weight:400;font-size:14px;line-height:20px}.zt-search .zt-field__root{background-color:transparent;padding:0}.zt-search .zt-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:4px 8px;background-color:transparent;line-height:20px;font-size:14px;font-family:PingFangSC-Regular;font-weight:400}.zt-search .zt-cell__left-icon{color:#969799}.zt-search .zt-field{margin:0}.zt-search .zt-field__control{color:#000}.zt-search--show-action{padding-right:0}.zt-search input{caret-color:#0091fa}.zt-search input::-webkit-search-cancel-button,.zt-search input::-webkit-search-decoration,.zt-search input::-webkit-search-results-button,.zt-search input::-webkit-search-results-decoration{display:none}.zt-search__action{padding:0 16px;color:#0091fa;font-size:16px;font-family:PingFangSC-Semibold;height:28px;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-search__action:active{background-color:rgba(0,0,0,.04)}
1
+ .zt-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:8px 16px;background-color:#f5faff}.zt-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:rgba(45,75,115,.04);border:1px solid transparent;border-radius:2px;box-shadow:inset 4px 4px 8px 0 rgba(45,75,115,.1);background-clip:padding-box;position:relative}.zt-search__content::before{content:'';position:absolute;top:0;right:0;left:0;bottom:0;z-index:-1;margin:-1px;border-radius:inherit;background:-webkit-linear-gradient(#fff,rgba(255,255,255,.4));background:linear-gradient(#fff,rgba(255,255,255,.4))}.zt-search__content--round{border-radius:999px}.zt-search__label{padding:8px 0 8px 12px;color:rgba(0,0,0,.6);font-family:PingFangSC-Semibold;font-weight:400;font-size:14px;line-height:20px}.zt-search .zt-field__root{background-color:transparent;padding:0}.zt-search .zt-field__label{margin-right:0}.zt-search .zt-cell__title.zt-field__label{-webkit-box-flex:unset;-webkit-flex:unset;flex:unset}.zt-search .zt-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:8px 12px;background:0 0;line-height:20px;font-size:14px;font-family:PingFangSC-Regular;font-weight:400}.zt-search .zt-cell__left-icon{color:#969799}.zt-search .zt-field{margin:0}.zt-search .zt-field__control{color:#000}.zt-search--show-action{padding-right:0}.zt-search input{caret-color:#0091fa}.zt-search input::-webkit-search-cancel-button,.zt-search input::-webkit-search-decoration,.zt-search input::-webkit-search-results-button,.zt-search input::-webkit-search-results-decoration{display:none}.zt-search input::-webkit-input-placeholder{color:rgba(45,75,115,.2)}.zt-search input::placeholder{color:rgba(45,75,115,.2)}.zt-search__action{padding:0 16px 0 12px;color:#0091fa;font-size:16px;font-family:PingFangSC-Semibold;height:28px;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-search__action:active{background-color:rgba(0,0,0,.04)}
@@ -103,7 +103,7 @@ Search.props = {
103
103
  clearTrigger: String,
104
104
  shape: {
105
105
  type: String,
106
- default: 'square'
106
+ default: 'round'
107
107
  },
108
108
  clearable: {
109
109
  type: Boolean,
@@ -11,8 +11,24 @@
11
11
  display: flex;
12
12
  flex: 1;
13
13
  background-color: @search-content-background-color;
14
- border: 0 solid rgba(0,0,0,0.06);
14
+ border: 1px solid transparent;
15
15
  border-radius: @border-radius-sm;
16
+ box-shadow: @search-content-box-shadow;
17
+ background-clip: padding-box;
18
+ position: relative;
19
+
20
+ &::before {
21
+ content: '';
22
+ position: absolute;
23
+ top: 0;
24
+ right: 0;
25
+ left: 0;
26
+ bottom: 0;
27
+ z-index: -1;
28
+ margin: -1px;
29
+ border-radius: inherit;
30
+ background: @search-content-border-color;
31
+ }
16
32
 
17
33
  &--round {
18
34
  border-radius: @border-radius-max;
@@ -33,10 +49,18 @@
33
49
  padding: 0;
34
50
  }
35
51
 
52
+ .zt-field__label {
53
+ margin-right: 0;
54
+ }
55
+
56
+ .zt-cell__title.zt-field__label {
57
+ flex: unset;
58
+ }
59
+
36
60
  .zt-cell {
37
61
  flex: 1;
38
- padding: 4px @padding-xs;
39
- background-color: transparent;
62
+ padding: @search-cell-padding;
63
+ background: transparent;
40
64
  line-height: @search-input-height;
41
65
  font-size: @font-size-md;
42
66
  font-family: PingFangSC-Regular;
@@ -66,6 +90,10 @@
66
90
  display: none;
67
91
  }
68
92
 
93
+ &::placeholder {
94
+ color: @text-color-5;
95
+ }
96
+
69
97
  caret-color:@search-input-caret-color;
70
98
  }
71
99
 
@@ -26,7 +26,7 @@ export default createComponent({
26
26
  },
27
27
  backgroundStyle: {
28
28
  type: String,
29
- default: '#f5f5f5'
29
+ default: '#FFFFFF'
30
30
  },
31
31
  imageType: {
32
32
  type: String,
@@ -255,23 +255,24 @@ export default createComponent({
255
255
  "class": bem('actions')
256
256
  }, [h(Button, {
257
257
  "attrs": {
258
- "plain": true,
259
- "type": "warning"
258
+ "border-color": "#FF8700",
259
+ "color": "#FF8700",
260
+ "background-color": "#fff"
260
261
  },
261
262
  "on": {
262
263
  "click": this.clear
263
264
  }
264
265
  }, [t('reSign')]), h(Button, {
265
266
  "attrs": {
266
- "plain": true,
267
- "type": "default"
267
+ "border-color": "rgba(45,75,115,0.20)",
268
+ "color": "#2D4B73",
269
+ "background-color": "#fff"
268
270
  },
269
271
  "on": {
270
272
  "click": this.cancel
271
273
  }
272
274
  }, [t('cancel')]), h(Button, {
273
275
  "attrs": {
274
- "block": true,
275
276
  "type": "primary",
276
277
  "disabled": this.isCompleteButtonDisabled
277
278
  },
@@ -37,7 +37,7 @@
37
37
  &__actions {
38
38
  z-index: @signature-actions-z-index;
39
39
  position: absolute;
40
- right: 0px;
40
+ right: 0;
41
41
  bottom: 16px;
42
42
  width: 320px;
43
43
  float: right;
package/es/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:18px;height:18px;line-height:18px;border-radius:50%;text-align:center}.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}@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:12px;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:12px;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:12px;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}
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/es/step/index.js CHANGED
@@ -22,14 +22,12 @@ export default createComponent({
22
22
  if (this.active) {
23
23
  return {
24
24
  background: "" + (this.parent.activeBgColor || 'rgba(0,145,250,0.20)'),
25
- border: "1px solid " + (this.parent.activeBorderColor || '#0091FA'),
26
25
  'font-weight': 'bold',
27
26
  color: "" + (this.parent.activeColor || '#0091FA')
28
27
  };
29
28
  } else {
30
29
  return {
31
- background: "" + (this.parent.inactiveBgColor || 'rgba(0,0,0,0.20)'),
32
- border: "1px solid " + (this.parent.inactiveBorderColor || 'rgba(0,0,0,0)'),
30
+ background: "" + (this.parent.inactiveBgColor || 'rgba(45,75,115,0.20)'),
33
31
  'font-weight': 'normal',
34
32
  color: "" + (this.parent.inactiveColor || '#FFFFFF')
35
33
  };
@@ -38,11 +36,11 @@ export default createComponent({
38
36
  titleStyle: function titleStyle() {
39
37
  if (this.active) {
40
38
  return {
41
- color: this.parent.titleActiveColor || 'rgba(0,0,0,1)'
39
+ color: this.parent.titleActiveColor || 'rgba(45, 75, 115, 1)'
42
40
  };
43
41
  } else {
44
42
  return {
45
- color: this.parent.titleInactiveColor || 'rgba(0,0,0,0.4)'
43
+ color: this.parent.titleInactiveColor || 'rgba(45, 75, 115, 0.6)'
46
44
  };
47
45
  }
48
46
  }
@@ -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}