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
package/es/field/index.js CHANGED
@@ -51,7 +51,10 @@ export default createComponent({
51
51
  labelWidth: [Number, String],
52
52
  labelClass: null,
53
53
  labelAlign: String,
54
- inputAlign: String,
54
+ inputAlign: {
55
+ type: String,
56
+ default: 'left'
57
+ },
55
58
  placeholder: String,
56
59
  errorMessage: String,
57
60
  errorMessageAlign: String,
@@ -68,7 +71,7 @@ export default createComponent({
68
71
  },
69
72
  error: {
70
73
  type: Boolean,
71
- default: null
74
+ default: false
72
75
  },
73
76
  colon: {
74
77
  type: Boolean,
@@ -525,7 +528,10 @@ export default createComponent({
525
528
  "on": {
526
529
  "click": this.onClickLeftIcon
527
530
  }
528
- }, [h(SearchIcon, {
531
+ }, [h(Icon, {
532
+ "attrs": {
533
+ "name": "search"
534
+ },
529
535
  "class": bem('zt-left-icon-size')
530
536
  })]);
531
537
  } else if (this.leftIcon) {
@@ -585,7 +591,7 @@ export default createComponent({
585
591
  if (message) {
586
592
  var errorMessageAlign = this.getProp('errorMessageAlign');
587
593
  return h("div", {
588
- "class": bem('error-message', errorMessageAlign)
594
+ "class": [bem('error-message', errorMessageAlign), this.error ? '' : bem('no-error')]
589
595
  }, [message]);
590
596
  }
591
597
  },
@@ -607,12 +613,14 @@ export default createComponent({
607
613
  }
608
614
 
609
615
  if (this.label) {
610
- return h("span", [this.label + colon]);
616
+ return h("span", {
617
+ "class": bem('label-content')
618
+ }, [this.label + colon]);
611
619
  }
612
620
  }
613
621
  },
614
622
  render: function render() {
615
- var _bem;
623
+ var _bem2;
616
624
 
617
625
  var h = arguments[0];
618
626
  var slots = this.slots;
@@ -637,6 +645,82 @@ export default createComponent({
637
645
  };
638
646
  }
639
647
 
648
+ if (this.direction === 'column') {
649
+ var _bem;
650
+
651
+ return h("div", {
652
+ "class": [bem('root'), bem("column")]
653
+ }, [h(Cell, {
654
+ "attrs": {
655
+ "icon": this.leftIcon,
656
+ "size": this.size,
657
+ "center": this.center,
658
+ "border": this.border,
659
+ "isLink": this.isLink,
660
+ "required": this.required,
661
+ "clickable": this.clickable,
662
+ "titleStyle": this.labelStyle,
663
+ "valueClass": bem('value'),
664
+ "titleClass": [bem('label', labelAlign), this.labelClass, {
665
+ 'zt-field--error-label': this.showErrorMessage
666
+ }],
667
+ "arrowDirection": this.arrowDirection,
668
+ "noFlex": this.type === 'textarea',
669
+ "direction": this.direction
670
+ },
671
+ "scopedSlots": scopedSlots,
672
+ "class": bem((_bem = {
673
+ error: this.showError,
674
+ disabled: disabled
675
+ }, _bem["label-" + labelAlign] = labelAlign, _bem['min-height'] = this.type === 'textarea' && !this.autosize, _bem)),
676
+ "on": {
677
+ "click": this.onClick
678
+ }
679
+ }, [h("div", {
680
+ "class": bem('body')
681
+ }, [this.genInput(), this.showClear &&
682
+ /*<Icon
683
+ name="clear"
684
+ class={bem('clear')}
685
+ onTouchstart={this.onClear}
686
+ />*/
687
+ h("div", {
688
+ "class": bem('zt-clear-icon'),
689
+ "on": {
690
+ "touchstart": this.onClear,
691
+ "click": this.onClear
692
+ }
693
+ }, [h(ClearIcon, {
694
+ "class": bem('zt-clear-size'),
695
+ "attrs": {
696
+ "color": this.iconColor
697
+ }
698
+ })]), this.type === 'password' && h("div", {
699
+ "on": {
700
+ "click": this.togglePwdVisible
701
+ },
702
+ "style": "width:20px;height:20px;margin-left:12px;display:flex;justify-content:center;align-items:center;color:rgba(0,0,0,.4);"
703
+ }, [this.showPassword ? h(Icon, {
704
+ "attrs": {
705
+ "name": "eye-open",
706
+ "color": this.iconColor
707
+ }
708
+ }) : h(Icon, {
709
+ "attrs": {
710
+ "name": "eye-closed",
711
+ "color": this.iconColor
712
+ }
713
+ })]), this.genWordLimit(), this.type === "textarea" ? h("div", {
714
+ "class": bem("right-icon-box")
715
+ }, [this.genRightIcon(), slots('button') && h("div", {
716
+ "class": bem('button')
717
+ }, [slots('button')])]) : h("div", {
718
+ "class": bem("right-icon-box-row")
719
+ }, [this.genRightIcon(), slots('button') && h("div", {
720
+ "class": bem('button')
721
+ }, [slots('button')])])])]), this.genMessage()]);
722
+ }
723
+
640
724
  return h("div", {
641
725
  "class": bem('root')
642
726
  }, [h(Cell, {
@@ -654,13 +738,14 @@ export default createComponent({
654
738
  'zt-field--error-label': this.showErrorMessage
655
739
  }],
656
740
  "arrowDirection": this.arrowDirection,
657
- "noFlex": this.type === 'textarea'
741
+ "noFlex": this.type === 'textarea',
742
+ "direction": this.direction
658
743
  },
659
744
  "scopedSlots": scopedSlots,
660
- "class": bem((_bem = {
745
+ "class": bem((_bem2 = {
661
746
  error: this.showError,
662
747
  disabled: disabled
663
- }, _bem["label-" + labelAlign] = labelAlign, _bem['min-height'] = this.type === 'textarea' && !this.autosize, _bem)),
748
+ }, _bem2["label-" + labelAlign] = labelAlign, _bem2['min-height'] = this.type === 'textarea' && !this.autosize, _bem2)),
664
749
  "on": {
665
750
  "click": this.onClick
666
751
  }
@@ -7,9 +7,9 @@
7
7
  background-color: @field-background-color;
8
8
  padding: @field-vertical-padding @field-horizontal-padding;
9
9
 
10
- &::after {
11
- .hairline-bottom(@cell-border-color, @padding-md, );
12
- }
10
+ // &::after {
11
+ // .hairline-bottom(@cell-border-color, @padding-md, );
12
+ // }
13
13
 
14
14
  &:last-child::after,
15
15
  &--borderless::after {
@@ -19,8 +19,9 @@
19
19
 
20
20
  .zt-field {
21
21
  padding: 0;
22
- background-color: @field-background-color;
23
-
22
+ // background-color: @field-background-color;
23
+ font-size: 14px;
24
+ line-height: 20px;
24
25
  &::after {
25
26
  display: none;
26
27
  }
@@ -28,12 +29,17 @@
28
29
  &__label {
29
30
  flex: none;
30
31
  box-sizing: border-box;
31
- width: @field-label-width;
32
+ // width: @field-label-width;
32
33
  margin-right: @field-label-margin-right;
33
34
  color: @field-label-color;
34
35
  text-align: left;
35
36
  word-wrap: break-word;
36
37
  vertical-align: middle;
38
+ flex: 4;
39
+ &-content {
40
+ color: #2D4B73;
41
+
42
+ }
37
43
  &--center {
38
44
  text-align: center;
39
45
  }
@@ -51,14 +57,18 @@
51
57
 
52
58
  &__value {
53
59
  overflow: visible;
60
+ flex: 6;
61
+ justify-content: flex-end;
54
62
  }
55
63
 
56
64
  &__body {
57
65
  display: flex;
58
66
  align-items: center;
67
+ width: 100%;
59
68
  input {
60
69
  caret-color: @blue;
61
70
  }
71
+
62
72
  }
63
73
 
64
74
  &__control {
@@ -68,12 +78,12 @@
68
78
  min-width: 0; // for flex-shrink in field__button
69
79
  margin: 0;
70
80
  padding: 0;
71
- color: @field-input-text-color;
81
+ color: #2D4B73;
72
82
  line-height: inherit;
73
- text-align: left;
74
83
  background-color: transparent;
75
84
  border: 0;
76
85
  resize: none;
86
+ font-size: 14px;
77
87
 
78
88
  &::placeholder {
79
89
  color: @field-placeholder-text-color;
@@ -160,6 +170,7 @@
160
170
  &__zt-left-icon-size, &__zt-clear-size {
161
171
  width: @field-zt-icon-size;
162
172
  height: @field-zt-icon-size;
173
+ color: @field-zt-icon-color;
163
174
  }
164
175
 
165
176
  &__left-icon {
@@ -171,13 +182,14 @@
171
182
  }
172
183
 
173
184
  &__button {
174
- padding-left: @padding-xs;
185
+ padding: 0 @padding-xs 0 @padding-xs;
175
186
  }
176
187
 
177
188
  &__error-message {
178
189
  position: relative;
179
190
  background-color: @field-error-background-color;
180
- margin-top: @field-error-message-margin-top;
191
+ // margin-top: @field-error-message-margin-top;
192
+ margin-top: 0;
181
193
  padding: @field-error-message-padding;
182
194
  color: @field-error-message-color;
183
195
  font-size: @field-error-message-text-size;
@@ -198,8 +210,10 @@
198
210
  }
199
211
  }
200
212
 
213
+
214
+
201
215
  &__word-limit {
202
- margin-top: @padding-base;
216
+ // margin-top: @padding-base;
203
217
  color: @field-word-limit-color;
204
218
  font-size: @field-word-limit-font-size;
205
219
  line-height: @field-word-limit-line-height;
@@ -229,3 +243,59 @@
229
243
  }
230
244
  }
231
245
  }
246
+
247
+ .zt-field__column {
248
+ background-color: #f5faff;
249
+ .zt-field__label {
250
+ margin-right: 0px;
251
+ line-height: 20px;
252
+ // label内容
253
+ &-content {
254
+ color: #2D4B73;
255
+ }
256
+ }
257
+ .zt-field__right-icon-box {
258
+ position: absolute;
259
+ right: 12px;
260
+ bottom: 12px;
261
+ display: flex;
262
+ align-items: center;
263
+ }
264
+
265
+ .zt-field__right-icon-box-row {
266
+ flex-shrink: 0;
267
+ }
268
+
269
+ .zt-field__value {
270
+ justify-content: flex-start;
271
+ .zt-field__body {
272
+ flex: 8;
273
+ textarea {
274
+ padding-bottom: 16px;
275
+ }
276
+ }
277
+ }
278
+
279
+ .zt-field__word-limit {
280
+ position: absolute;
281
+ bottom: 12px;
282
+ }
283
+
284
+ .zt-field__no-error {
285
+ background: rgba(45,75,115,0.04);
286
+ color: rgba(45,75,115,0.60);
287
+ &::after {
288
+ position: absolute;
289
+ box-sizing: border-box;
290
+ content: ' ';
291
+ pointer-events: none;
292
+ top: 0;
293
+ right: 0;
294
+ left: 0;
295
+ border-top: 1px solid #000000;
296
+ -webkit-transform: scaleY(0.5);
297
+ transform: scaleY(0.5);
298
+ opacity: 0.2;
299
+ }
300
+ }
301
+ }
@@ -58,12 +58,6 @@ export default createComponent({
58
58
  returnChainData: {
59
59
  type: Boolean,
60
60
  default: false
61
- },
62
- confirmedList: {
63
- type: Array,
64
- default: function _default() {
65
- return [];
66
- }
67
61
  }
68
62
  },
69
63
  data: function data() {
@@ -154,8 +148,7 @@ export default createComponent({
154
148
  "resetReplaceCancel": this.resetReplaceCancel,
155
149
  "disableParent": this.disableParent,
156
150
  "valueKey": this.valueKey,
157
- "textKey": this.textKey,
158
- "confirmedList": this.confirmedList
151
+ "textKey": this.textKey
159
152
  },
160
153
  "on": {
161
154
  "clickNext": this.clickNext,
@@ -1 +1 @@
1
- .zt-hierarchy-select__popup{height:100%}.zt-hierarchy-select__popup .zt-hierarchy-select{background-color:#f5f5ff;height:100%}.zt-hierarchy-select__popup .zt-hierarchy-select__title{height:44px;position:relative;background-color:#fff;border-bottom:1px solid rgba(0,0,0,.1)}.zt-hierarchy-select__popup .zt-hierarchy-select__title i{font-size:14px;position:absolute;left:15px;top:16px}.zt-hierarchy-select__popup .zt-hierarchy-select__title div{line-height:44px;text-align:center;font-weight:700;font-size:18px;color:#142841}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core .zt-loading{position:absolute;top:50%;left:50%;margin-left:-18px;margin-right:-18px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core__list span{height:24px;font-size:16px;font-family:PingFangSC,PingFangSC-Semibold;font-weight:600;color:#0091fa;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core__list .flex{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;padding:10px 0;background-color:#fff;margin-bottom:16px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__indicator-crumb-list{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 16px;overflow-x:auto}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__indicator-crumb-list span{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;white-space:nowrap;height:24px;font-size:16px;font-family:PingFangSC,PingFangSC-Regular;text-align:left;color:#000;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__indicator-crumb-list__icon-arrow{margin:0 4px;width:20px;height:20px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__crumb-item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__fill-blur{position:absolute;top:0;width:16px;height:44px;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,0)),to(#fff))}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__fill-blur:last-child{right:0;top:0;background:-webkit-gradient(linear,right top,left top,from(#fff),to(rgba(255,255,255,0)))}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list{background-color:#fff}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__multiple-button{margin-right:8px;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-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__check-icon{color:#0091fa;font-size:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__uncheck-icon{color:#e4e4e4;font-size:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__score-item{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:10px 0;background-color:#fff;margin-left:16px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__score-item:after{content:" ";position:absolute;bottom:0;height:1px;width:100%;background-color:rgba(0,0,0,.1);box-shadow:0 0 0 0 #000 inset}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__item-content{-webkit-box-flex:1;-webkit-flex:1;flex:1;margin-right:16px;width:278px;font-size:16px;font-family:PingFangSC,PingFangSC-Regular;font-weight:400;text-align:left;color:#000;line-height:24px;word-break:break-all}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__item-content span{color:#0091fa}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__item-nav{padding:0 16px;border-left:rgba(0,0,0,.1) 1px solid}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level span{color:#0091fa}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level--disable{opacity:.2}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-icon{margin-right:4px;font-size:0;width:20px;height:20px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__result-box{position:fixed;left:0;bottom:0;background:#fff;width:100%}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__result-list{height:160px;box-shadow:0 -4px 8px 0 rgba(0,0,0,.1);border-radius:8px 8px 0 0;padding:12px 16px;font-size:14px;color:#000;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__operate-box{display:-webkit-box;display:-webkit-flex;display:flex;height:44px;line-height:44px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected{border-top:1px solid rgba(0,0,0,.1);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 16px;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:44px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected i{color:#0091fa;font-size:20px;margin-right:4px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected span{font-size:14px;color:rgba(0,0,0,.6)}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected span.zt-hierarchy-mark-list__blue{color:#0091fa;margin-left:8px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__line{width:1px;height:24px;background:rgba(0,0,0,.1);-webkit-transform:scaleX(.5);transform:scaleX(.5);border-top:1px solid rgba(0,0,0,.1)}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__reset-button{width:110px;border-top:1px solid rgba(0,0,0,.1);font-size:16px;color:#000;text-align:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__cancel-button{width:110px;border-top:1px solid rgba(0,0,0,.1);font-size:16px;color:#000;text-align:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__confirm-button{width:110px;border-top:1px solid #0091fa;font-weight:700;font-size:16px;color:#fff;text-align:center;background:#0091fa}
1
+ .zt-hierarchy-select__popup{height:100%}.zt-hierarchy-select__popup .zt-hierarchy-select{background-color:#f5f5ff;height:100%}.zt-hierarchy-select__popup .zt-hierarchy-select__title{height:44px;position:relative;background-color:#fff;border-bottom:1px solid rgba(0,0,0,.1)}.zt-hierarchy-select__popup .zt-hierarchy-select__title i{font-size:14px;position:absolute;left:15px;top:16px}.zt-hierarchy-select__popup .zt-hierarchy-select__title div{line-height:44px;text-align:center;font-weight:700;font-size:18px;color:#142841}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core .zt-loading{position:absolute;top:50%;left:50%;margin-left:-18px;margin-right:-18px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core__list span{height:24px;font-size:16px;font-family:PingFangSC,PingFangSC-Semibold;font-weight:600;color:#0091fa;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core__list .flex{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;padding:10px 0;background-color:#fff;margin-bottom:16px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__indicator-crumb-list{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 16px;overflow-x:auto}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__indicator-crumb-list span{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;white-space:nowrap;height:24px;font-size:16px;font-family:PingFangSC,PingFangSC-Regular;text-align:left;color:#000;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__indicator-crumb-list__icon-arrow{margin:0 4px;width:20px;height:20px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__crumb-item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__fill-blur{position:absolute;top:0;width:16px;height:44px;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,0)),to(#fff))}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__fill-blur:last-child{right:0;top:0;background:-webkit-gradient(linear,right top,left top,from(#fff),to(rgba(255,255,255,0)))}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list{background-color:#fff}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__multiple-button{margin-right:8px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__check-icon{color:#0091fa;font-size:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__uncheck-icon{width:24px;height:24px;border:1px solid rgba(0,0,0,.1);border-radius:50%}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__score-item{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:10px 0;background-color:#fff;margin-left:16px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__score-item:after{content:" ";position:absolute;bottom:0;height:1px;width:100%;background-color:rgba(0,0,0,.1);box-shadow:0 0 0 0 #000 inset}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__item-content{-webkit-box-flex:1;-webkit-flex:1;flex:1;margin-right:16px;width:278px;font-size:16px;font-family:PingFangSC,PingFangSC-Regular;font-weight:400;text-align:left;color:#000;line-height:24px;word-break:break-all}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__item-content span{color:#0091fa}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__item-nav{padding:0 16px;border-left:rgba(0,0,0,.1) 1px solid}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level span{color:#0091fa}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level--disable{opacity:.2}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-icon{margin-right:4px;font-size:0;width:20px;height:20px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__result-box{position:fixed;left:0;bottom:0;background:#fff;width:100%}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__result-list{height:160px;box-shadow:0 -4px 8px 0 rgba(0,0,0,.1);border-radius:8px 8px 0 0;padding:12px 16px;font-size:14px;color:#000;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__operate-box{display:-webkit-box;display:-webkit-flex;display:flex;height:44px;line-height:44px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected{border-top:1px solid rgba(0,0,0,.1);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 16px;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:44px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected i{color:#0091fa;font-size:20px;margin-right:4px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected span{font-size:14px;color:rgba(0,0,0,.6)}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected span.zt-hierarchy-mark-list__blue{color:#0091fa;margin-left:8px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__line{width:1px;height:24px;background:rgba(0,0,0,.1);-webkit-transform:scaleX(.5);transform:scaleX(.5);border-top:1px solid rgba(0,0,0,.1)}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__reset-button{width:110px;border-top:1px solid rgba(0,0,0,.1);font-size:16px;color:#000;text-align:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__cancel-button{width:110px;border-top:1px solid rgba(0,0,0,.1);font-size:16px;color:#000;text-align:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__confirm-button{width:110px;border-top:1px solid #0091fa;font-weight:700;font-size:16px;color:#fff;text-align:center;background:#0091fa}
@@ -10,7 +10,6 @@ import HierarchySelect from './hierarchySelect';
10
10
  import Popup from '../popup';
11
11
  import { PopupMixin } from '../mixins/popup';
12
12
  import Icon from "../icon";
13
- import { deepClone } from '../utils/deep-clone';
14
13
  export default createComponent({
15
14
  mixins: [PopupMixin()],
16
15
  props: {
@@ -61,8 +60,7 @@ export default createComponent({
61
60
  },
62
61
  data: function data() {
63
62
  return {
64
- showPicker: false,
65
- confirmedList: []
63
+ showPicker: false
66
64
  };
67
65
  },
68
66
  methods: {
@@ -87,13 +85,7 @@ export default createComponent({
87
85
  }
88
86
  },
89
87
  confirm: function confirm(list) {
90
- this.confirmedList = deepClone(list);
91
- this.$emit("confirm", this.confirmedList);
92
- },
93
- onBack: function onBack() {
94
- if (this.$refs.hierarchySelect && this.$refs.hierarchySelect.$refs.markList) {
95
- this.$refs.hierarchySelect.$refs.markList.cancel();
96
- }
88
+ this.$emit("confirm", list);
97
89
  }
98
90
  },
99
91
  render: function render(h) {
@@ -124,10 +116,11 @@ export default createComponent({
124
116
  "name": "arrow-left"
125
117
  },
126
118
  "on": {
127
- "click": this.onBack
119
+ "click": function click() {
120
+ _this.showPicker = false;
121
+ }
128
122
  }
129
123
  }), h("div", [this.title])]), h(HierarchySelect, {
130
- "ref": "hierarchySelect",
131
124
  "attrs": {
132
125
  "treeData": this.treeData,
133
126
  "disableParent": this.disableParent,
@@ -136,8 +129,7 @@ export default createComponent({
136
129
  "multiple": this.multiple,
137
130
  "valueKey": this.valueKey,
138
131
  "textKey": this.textKey,
139
- "returnChainData": this.returnChainData,
140
- "confirmedList": this.confirmedList
132
+ "returnChainData": this.returnChainData
141
133
  },
142
134
  "on": {
143
135
  "selected": this.onSelected,
@@ -97,17 +97,16 @@
97
97
  background-color: #fff;
98
98
  &__multiple-button {
99
99
  margin-right: 8px;
100
- display: flex;
101
- justify-content: center;
102
- align-items: center;
103
100
  }
104
101
  &__check-icon {
105
102
  color: #0091fa;
106
103
  font-size: 24px;
107
104
  }
108
105
  &__uncheck-icon {
109
- color: #E4E4E4;
110
- font-size: 24px;
106
+ width: 24px;
107
+ height: 24px;
108
+ border: 1px solid rgba(0,0,0,.1);
109
+ border-radius: 50%;
111
110
  }
112
111
  &__score-item {
113
112
  position: relative;
@@ -36,12 +36,6 @@ export default createComponent({
36
36
  textKey: {
37
37
  type: String,
38
38
  default: "name"
39
- },
40
- confirmedList: {
41
- type: Array,
42
- default: function _default() {
43
- return [];
44
- }
45
39
  }
46
40
  },
47
41
  data: function data() {
@@ -67,11 +61,6 @@ export default createComponent({
67
61
  return;
68
62
  }
69
63
 
70
- if (this.multiple) {
71
- this.multipleClicked(item);
72
- return;
73
- }
74
-
75
64
  this.choosedValue = item[this.valueKey];
76
65
  this.$emit('selected', item);
77
66
  },
@@ -82,10 +71,7 @@ export default createComponent({
82
71
  "name": "checked"
83
72
  },
84
73
  "class": bem("check-icon")
85
- }) : h(Icon, {
86
- "attrs": {
87
- "name": "circle"
88
- },
74
+ }) : h("div", {
89
75
  "class": bem("uncheck-icon")
90
76
  });
91
77
  },
@@ -160,7 +146,6 @@ export default createComponent({
160
146
  unchecked(array);
161
147
  },
162
148
  cancel: function cancel() {
163
- this.checkedList = deepClone(this.confirmedList);
164
149
  this.$emit("cancel");
165
150
  },
166
151
  confirm: function confirm() {