zartui 2.1.22 → 2.1.24

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.
@@ -1 +1 @@
1
- .zt2-button{position:relative;display:inline-block;box-sizing:border-box;height:44px;margin:0;padding:0;font-size:16px;line-height:calc(var(16px) * 2 - 8px);text-align:center;border-radius:22px;cursor:pointer;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-appearance:none}.zt2-button::before{position:absolute;top:50%;left:50%;width:100%;height:100%;background-color:#000;border:inherit;border-color:#000;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:' '}.zt2-button:active::before{opacity:.1}.zt2-button--disabled::before,.zt2-button--loading::before{display:none}.zt2-button--default{color:#2d4b73;background:0 0;border:1px solid rgba(45,75,115,.2)}.zt2-button--primary{color:#fff;background:-webkit-linear-gradient(135deg,#3cafff 0,#0091fa 100%);background:linear-gradient(-45deg,#3cafff 0,#0091fa 100%);border:1px solid #3caafa}.zt2-button--primary-light{color:#0091fa;background:rgba(1,144,250,.1);border:none}.zt2-button--danger{color:#fff;background:#ff5a5a;border:1px solid #ff5a5a}.zt2-button--warning{color:#fff;background:#fa8500;border:1px solid #fa8500}.zt2-button--success{color:#fff;background:#00e173;border:1px solid #00e173}.zt2-button--plain{background:0 0}.zt2-button--plain.zt2-button--primary{color:#3caafa}.zt2-button--plain.zt2-button--danger{color:#ff5a5a}.zt2-button--plain.zt2-button--warning{color:#fa8500}.zt2-button--plain.zt2-button--success{color:#00e173}.zt2-button--large{width:100%;height:50px}.zt2-button--normal{padding:0 24px;font-size:16px}.zt2-button--medium{height:36px;padding:0 16px;font-size:14px}.zt2-button--small{height:28px;padding:0 12px;font-size:14px}.zt2-button__loading{color:inherit;font-size:inherit}.zt2-button--mini{height:24px;padding:0 12px;font-size:12px}.zt2-button--mini+.zt2-button--mini{margin-left:4px}.zt2-button--block{display:block;width:100%}.zt2-button--block-inner{display:block;width:calc(100% - 2 * 16px);margin:0 16px}.zt2-button--disabled{cursor:not-allowed;opacity:.4}.zt2-button--loading{cursor:default}.zt2-button--round{border-radius:999px;padding:0}.zt2-button--round.zt2-button--mini{width:24px}.zt2-button--round.zt2-button--small{width:28px}.zt2-button--round.zt2-button--medium{width:36px}.zt2-button--round.zt2-button--normal{width:44px}.zt2-button--square{border-radius:0}.zt2-button__content{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;height:100%}.zt2-button__content::before{content:' '}.zt2-button__icon{font-size:24px}.zt2-button__icon--mini{font-size:16px}.zt2-button__icon--small{font-size:20px}.zt2-button__icon--medium{font-size:20px}.zt2-button__icon+.zt2-button__text,.zt2-button__loading+.zt2-button__text,.zt2-button__text+.zt2-button__icon,.zt2-button__text+.zt2-button__loading{margin-left:2px}.zt2-button--hairline{border-width:0}.zt2-button--hairline::after{border-color:inherit;border-radius:44px}.zt2-button--hairline.zt2-button--round::after{border-radius:999px}.zt2-button--hairline.zt2-button--square::after{border-radius:0}
1
+ .zt2-button{position:relative;display:inline-block;box-sizing:border-box;height:44px;margin:0;padding:0;font-size:16px;line-height:calc(16px * 2 - 8px);text-align:center;border-radius:22px;cursor:pointer;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-appearance:none}.zt2-button::before{position:absolute;top:50%;left:50%;width:100%;height:100%;background-color:#000;border:inherit;border-color:#000;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:' '}.zt2-button:active::before{opacity:.1}.zt2-button--disabled::before,.zt2-button--loading::before{display:none}.zt2-button--default{color:#2d4b73;background:0 0;border:1px solid rgba(45,75,115,.2)}.zt2-button--primary{color:#fff;background:-webkit-linear-gradient(135deg,#3cafff 0,#0091fa 100%);background:linear-gradient(-45deg,#3cafff 0,#0091fa 100%);border:1px solid #3caafa}.zt2-button--primary-light{color:#0091fa;background:rgba(1,144,250,.1);border:none}.zt2-button--danger{color:#fff;background:#ff5a5a;border:1px solid #ff5a5a}.zt2-button--warning{color:#fff;background:#fa8500;border:1px solid #fa8500}.zt2-button--success{color:#fff;background:#00e173;border:1px solid #00e173}.zt2-button--plain{background:0 0}.zt2-button--plain.zt2-button--primary{color:#3caafa}.zt2-button--plain.zt2-button--danger{color:#ff5a5a}.zt2-button--plain.zt2-button--warning{color:#fa8500}.zt2-button--plain.zt2-button--success{color:#00e173}.zt2-button--large{width:100%;height:50px}.zt2-button--normal{padding:0 24px;font-size:16px}.zt2-button--medium{height:36px;padding:0 16px;font-size:14px}.zt2-button--small{height:28px;padding:0 12px;font-size:14px}.zt2-button__loading{color:inherit;font-size:inherit}.zt2-button--mini{height:24px;padding:0 12px;font-size:12px}.zt2-button--mini+.zt2-button--mini{margin-left:4px}.zt2-button--block{display:block;width:100%}.zt2-button--block-inner{display:block;width:calc(100% - 2 * 16px);margin:0 16px}.zt2-button--disabled{cursor:not-allowed;opacity:.4}.zt2-button--loading{cursor:default}.zt2-button--round{border-radius:999px;padding:0}.zt2-button--round.zt2-button--mini{width:24px}.zt2-button--round.zt2-button--small{width:28px}.zt2-button--round.zt2-button--medium{width:36px}.zt2-button--round.zt2-button--normal{width:44px}.zt2-button--square{border-radius:0}.zt2-button__content{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;height:100%}.zt2-button__content::before{content:' '}.zt2-button__icon{font-size:24px}.zt2-button__icon--mini{font-size:16px}.zt2-button__icon--small{font-size:20px}.zt2-button__icon--medium{font-size:20px}.zt2-button__icon+.zt2-button__text,.zt2-button__loading+.zt2-button__text,.zt2-button__text+.zt2-button__icon,.zt2-button__text+.zt2-button__loading{margin-left:2px}.zt2-button--hairline{border-width:0}.zt2-button--hairline::after{border-color:inherit;border-radius:44px}.zt2-button--hairline.zt2-button--round::after{border-radius:999px}.zt2-button--hairline.zt2-button--square::after{border-radius:0}
@@ -1 +1 @@
1
- .zt2-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:12px 0}.zt2-checkbox--disabled{cursor:not-allowed}.zt2-checkbox--label-disabled{cursor:default}.zt2-checkbox--horizontal:not(:last-child){margin-right:32px}.zt2-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt2-checkbox__icon .zt2-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;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt2-checkbox__icon--round .zt2-icon{border-radius:100%}.zt2-checkbox__icon--checked .zt2-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt2-checkbox__icon--disabled{cursor:not-allowed}.zt2-checkbox__icon--disabled .zt2-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt2-checkbox__icon--disabled.zt2-checkbox__icon--checked .zt2-icon{opacity:.4;background:#0091fa;color:#fff}.zt2-checkbox__label{margin-left:8px;color:#2d4b73;font-size:14px}.zt2-checkbox__label--left{margin:0 8px 0 0}.zt2-checkbox__label--disabled{color:#c8c9cc}
1
+ .zt2-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:12px 0}.zt2-checkbox--disabled{cursor:not-allowed}.zt2-checkbox--label-disabled{cursor:default}.zt2-checkbox--horizontal:not(:last-child){margin-right:32px}.zt2-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt2-checkbox__icon .zt2-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;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt2-checkbox__icon .zt2-icon{border-radius:4px}.zt2-checkbox__icon--round .zt2-icon{border-radius:100%}.zt2-checkbox__icon--checked .zt2-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt2-checkbox__icon--disabled{cursor:not-allowed}.zt2-checkbox__icon--disabled .zt2-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt2-checkbox__icon--disabled.zt2-checkbox__icon--checked .zt2-icon{opacity:.4;background:#0091fa;color:#fff}.zt2-checkbox__label{margin-left:8px;color:#2d4b73;font-size:14px}.zt2-checkbox__label--left{margin:0 8px 0 0}.zt2-checkbox__label--disabled{color:#c8c9cc}
@@ -37,6 +37,10 @@
37
37
  transition-property: color, border-color, background-color;
38
38
  }
39
39
 
40
+ .@{base-prefix}-icon {
41
+ border-radius: 4px;
42
+ }
43
+
40
44
  &--round {
41
45
  .@{base-prefix}-icon {
42
46
  border-radius: 100%;
package/es/index.js CHANGED
@@ -76,7 +76,7 @@ import TextEllipsis from './text-ellipsis';
76
76
  import Timeline from './timeline';
77
77
  import Toast from './toast';
78
78
  import Uploader from './uploader';
79
- var version = '2.1.22';
79
+ var version = '2.1.24';
80
80
  function install(Vue) {
81
81
  var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, SpeechRecognizer, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, TextEllipsis, Timeline, Toast, Uploader];
82
82
  components.forEach(function (item) {
@@ -1091,8 +1091,8 @@ export default createComponent({
1091
1091
  */
1092
1092
  renderMediaThumbnail: function renderMediaThumbnail(media) {
1093
1093
  var h = this.$createElement;
1094
- if (this.$scopedSlots['preview-media']) {
1095
- return this.slots('preview-media', {
1094
+ if (this.$scopedSlots.thumbnail) {
1095
+ return this.slots('thumbnail', {
1096
1096
  file: media
1097
1097
  });
1098
1098
  }
@@ -29,6 +29,10 @@ export var CheckboxMixin = function CheckboxMixin(_ref) {
29
29
  bindGroup: {
30
30
  type: Boolean,
31
31
  default: true
32
+ },
33
+ indeterminate: {
34
+ type: Boolean,
35
+ default: false
32
36
  }
33
37
  },
34
38
  computed: {
@@ -46,7 +50,7 @@ export var CheckboxMixin = function CheckboxMixin(_ref) {
46
50
  var boxShadow = this.boxShadow || this.parent && this.parent.boxShadow;
47
51
  var border = this.border || this.parent && this.parent.border;
48
52
  var iconColor = this.iconColor || this.parent && this.parent.iconColor;
49
- if ((boxShadow || checkedColor) && this.checked && !this.isDisabled) {
53
+ if ((boxShadow || checkedColor) && (this.checked || this.indeterminate) && !this.isDisabled) {
50
54
  return {
51
55
  color: iconColor,
52
56
  boxShadow: boxShadow,
@@ -82,24 +86,31 @@ export var CheckboxMixin = function CheckboxMixin(_ref) {
82
86
  },
83
87
  genIcon: function genIcon() {
84
88
  var h = this.$createElement;
85
- var checked = this.checked;
89
+ var checked = this.checked,
90
+ indeterminate = this.indeterminate;
86
91
  var iconSize = this.iconSize || this.parent && this.parent.iconSize;
87
92
  return h("div", {
88
93
  "ref": "icon",
89
94
  "class": bem('icon', [this.shape, {
90
95
  disabled: this.isDisabled,
91
- checked: checked
96
+ checked: checked || indeterminate
92
97
  }]),
93
98
  "style": {
94
99
  fontSize: addUnit(iconSize)
95
100
  }
96
101
  }, [this.slots('icon', {
97
- checked: checked
102
+ checked: checked,
103
+ indeterminate: indeterminate
98
104
  }) || (role === 'radio' ? h(Icon, {
99
105
  "style": this.iconStyle
100
106
  }, [checked ? h("div", {
101
107
  "class": bem('dot')
102
- }) : '']) : h(Icon, {
108
+ }) : '']) : indeterminate ? h(Icon, {
109
+ "attrs": {
110
+ "name": "minus"
111
+ },
112
+ "style": this.iconStyle
113
+ }) : h(Icon, {
103
114
  "attrs": {
104
115
  "name": "checkBox-select"
105
116
  },
@@ -126,7 +137,8 @@ export var CheckboxMixin = function CheckboxMixin(_ref) {
126
137
  } else {
127
138
  Children.push(this.genLabel());
128
139
  }
129
- var checked = this.checked;
140
+ var checked = this.checked,
141
+ indeterminate = this.indeterminate;
130
142
  return h("div", {
131
143
  "attrs": {
132
144
  "role": role,
@@ -136,7 +148,7 @@ export var CheckboxMixin = function CheckboxMixin(_ref) {
136
148
  "class": [bem([{
137
149
  disabled: this.isDisabled,
138
150
  'label-disabled': this.labelDisabled
139
- }, this.direction]), checked ? '' : bem('disable-icon')],
151
+ }, this.direction]), checked || indeterminate ? '' : bem('disable-icon')],
140
152
  "on": {
141
153
  "click": this.onClick
142
154
  }
@@ -1 +1 @@
1
- [class*=zt2-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid rgba(0,0,0,.1);-webkit-transform:scale(.5);transform:scale(.5)}.zt2-hairline,.zt2-hairline--bottom,.zt2-hairline--left,.zt2-hairline--right,.zt2-hairline--surround,.zt2-hairline--top,.zt2-hairline--top-bottom{position:relative}.zt2-hairline--top::after{border-top-width:1px}.zt2-hairline--left::after{border-left-width:1px}.zt2-hairline--right::after{border-right-width:1px}.zt2-hairline--bottom::after{border-bottom-width:1px}.zt2-hairline--top-bottom::after,.zt2-hairline-unset--top-bottom::after{border-width:1px 0}.zt2-hairline--surround::after{border-width:1px}.zt2-multiple-picker{position:relative;background-color:#fff;-webkit-user-select:none;user-select:none}.zt2-multiple-picker__toolbar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;box-sizing:content-box;height:44px;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt2-multiple-picker__border{position:relative}.zt2-multiple-picker__border::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)}.zt2-multiple-picker__cancel,.zt2-multiple-picker__confirm{height:100%;padding:0 16px;font-size:14px;background-color:transparent;border:none;cursor:pointer}.zt2-multiple-picker__cancel:active,.zt2-multiple-picker__confirm:active{opacity:.7}.zt2-multiple-picker__confirm{color:#0091fa;font-weight:700}.zt2-multiple-picker__cancel{color:#000;font-weight:400}.zt2-multiple-picker__title{font-weight:400;font-size:14px;line-height:20px;text-align:center;color:#2d4b73;opacity:.4;padding:12px 0;border-bottom:1px solid rgba(45,75,115,.1)}.zt2-multiple-picker__header{width:100%;height:40px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:14px;font-weight:400}.zt2-multiple-picker__header>li{-webkit-box-flex:1;-webkit-flex:auto;flex:auto;text-align:center}.zt2-multiple-picker__options{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;cursor:grab}.zt2-multiple-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;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;color:#0091fa;background-color:rgba(255,255,255,.9)}.zt2-multiple-picker-options{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:scroll;font-size:14px}.zt2-multiple-picker-options__wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;background-color:#fff;padding:12px 16px 4px 16px}.zt2-multiple-picker-options__item{color:#2d4b73;padding:0 4px 8px 0;box-sizing:border-box;text-align:center;font-size:14px}.zt2-multiple-picker-options__item .zt2-ellipsis{line-height:20px;border-radius:18px;border:1px solid rgba(45,75,115,.2);padding:7px 16px;opacity:.6}.zt2-multiple-picker-options__item--disabled{cursor:not-allowed;opacity:.3}.zt2-multiple-picker-options__item--last{padding-right:0}.zt2-multiple-picker-options__item--selected .zt2-ellipsis{background:rgba(0,145,250,.1);border:1px solid rgba(0,145,250,.6);border-radius:18px;color:#0091fa;opacity:1}
1
+ [class*=zt2-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid rgba(0,0,0,.1);-webkit-transform:scale(.5);transform:scale(.5)}.zt2-hairline,.zt2-hairline--bottom,.zt2-hairline--left,.zt2-hairline--right,.zt2-hairline--surround,.zt2-hairline--top,.zt2-hairline--top-bottom{position:relative}.zt2-hairline--top::after{border-top-width:1px}.zt2-hairline--left::after{border-left-width:1px}.zt2-hairline--right::after{border-right-width:1px}.zt2-hairline--bottom::after{border-bottom-width:1px}.zt2-hairline--top-bottom::after,.zt2-hairline-unset--top-bottom::after{border-width:1px 0}.zt2-hairline--surround::after{border-width:1px}.zt2-multiple-picker{position:relative;background-color:#fff;-webkit-user-select:none;user-select:none}.zt2-multiple-picker__toolbar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;box-sizing:content-box;height:44px;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt2-multiple-picker__toolbar-select-all{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-flex:1;-webkit-flex:1;flex:1;max-width:45%}.zt2-multiple-picker__toolbar-divider{width:1px;height:14px;background-color:#e9ecf2;margin-left:7px;margin-right:7px}.zt2-multiple-picker__toolbar-checkbox{-webkit-flex-shrink:0;flex-shrink:0}.zt2-multiple-picker__toolbar-checkbox .zt2-checkbox__icon{font-size:var(--zt-font-size-xl)}.zt2-multiple-picker__toolbar-checkbox .zt2-checkbox__label{font-size:16px;margin-left:4px}.zt2-multiple-picker__toolbar-checkbox-text{font-size:16px;color:#2d4b73;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}@media (max-width:375px){.zt2-multiple-picker__toolbar .zt2-multiple-picker__in-select-all{padding:0 14px}}@media (min-width:376px){.zt2-multiple-picker__toolbar .zt2-multiple-picker__in-select-all{padding:0 22px}}.zt2-multiple-picker__toolbar .zt2-multiple-picker__in-select-all .zt2-button__text{font-size:16px}@media (max-width:375px){.zt2-multiple-picker__toolbar .zt2-multiple-picker__select-other{padding:0 10px}}@media (min-width:376px){.zt2-multiple-picker__toolbar .zt2-multiple-picker__select-other{padding:0 14px}}.zt2-multiple-picker__toolbar .zt2-multiple-picker__select-other .zt2-button__text{font-size:16px}.zt2-multiple-picker__border{position:relative}.zt2-multiple-picker__border::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)}.zt2-multiple-picker__cancel,.zt2-multiple-picker__confirm{height:100%;padding:0 16px;font-size:14px;background-color:transparent;border:none;cursor:pointer}.zt2-multiple-picker__cancel:active,.zt2-multiple-picker__confirm:active{opacity:.7}.zt2-multiple-picker__confirm{color:#0091fa;font-weight:700}.zt2-multiple-picker__cancel{color:#000;font-weight:400}.zt2-multiple-picker__title{font-weight:400;font-size:14px;line-height:20px;text-align:center;color:#2d4b73;opacity:.4;padding:12px 0;border-bottom:1px solid rgba(45,75,115,.1)}.zt2-multiple-picker__header{width:100%;height:40px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:14px;font-weight:400}.zt2-multiple-picker__header>li{-webkit-box-flex:1;-webkit-flex:auto;flex:auto;text-align:center}.zt2-multiple-picker__options{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;cursor:grab}.zt2-multiple-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;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;color:#0091fa;background-color:rgba(255,255,255,.9)}.zt2-multiple-picker-options{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:scroll;font-size:14px}.zt2-multiple-picker-options__wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;background-color:#fff;padding:12px 16px 4px 16px}.zt2-multiple-picker-options__item{color:#2d4b73;padding:0 4px 8px 0;box-sizing:border-box;text-align:center;font-size:14px}.zt2-multiple-picker-options__item .zt2-ellipsis{line-height:20px;border-radius:18px;border:1px solid rgba(45,75,115,.2);padding:7px 16px;opacity:.6}.zt2-multiple-picker-options__item--disabled{cursor:not-allowed;opacity:.3}.zt2-multiple-picker-options__item--last{padding-right:0}.zt2-multiple-picker-options__item--selected .zt2-ellipsis{background:rgba(0,145,250,.1);border:1px solid rgba(0,145,250,.6);border-radius:18px;color:#0091fa;opacity:1}
@@ -1,3 +1,4 @@
1
+ import _mergeJSXProps, { default as _mergeJSXProps2 } from "@vue/babel-helper-vue-jsx-merge-props";
1
2
  import _extends from "@babel/runtime/helpers/esm/extends";
2
3
  // Utils
3
4
  import { createNamespace } from '../utils';
@@ -9,6 +10,7 @@ import MultiplePickerOptions from './MultiplePickerOptions';
9
10
  import Popup from '../popup';
10
11
  import { PopupMixin } from '../mixins/popup';
11
12
  import Button from '../button';
13
+ import Checkbox from '../checkbox';
12
14
  var _createNamespace = createNamespace('multiple-picker'),
13
15
  createComponent = _createNamespace[0],
14
16
  bem = _createNamespace[1],
@@ -47,10 +49,15 @@ export default createComponent({
47
49
  safeAreaInsetBottom: {
48
50
  type: Boolean,
49
51
  default: false
52
+ },
53
+ showSelectAll: {
54
+ type: Boolean,
55
+ default: false
50
56
  }
51
57
  }),
52
58
  data: function data() {
53
59
  return {
60
+ currentIndexs: [],
54
61
  confirmIndexs: null
55
62
  };
56
63
  },
@@ -72,6 +79,12 @@ export default createComponent({
72
79
  }
73
80
  },
74
81
  computed: {
82
+ isAllSelected: function isAllSelected() {
83
+ return this.currentIndexs.length > 0 && this.currentIndexs.length === this.options.length;
84
+ },
85
+ isIndeterminate: function isIndeterminate() {
86
+ return this.currentIndexs.length > 0 && this.currentIndexs.length < this.options.length;
87
+ },
75
88
  itemPxHeight: function itemPxHeight() {
76
89
  return this.itemHeight ? unitToPx(this.itemHeight) : DEFAULT_ITEM_HEIGHT;
77
90
  }
@@ -97,6 +110,10 @@ export default createComponent({
97
110
  return result;
98
111
  },
99
112
  onChange: function onChange() {
113
+ // 同步 currentIndexs 以触发计算属性更新
114
+ if (this.$refs.pickerOptions) {
115
+ this.currentIndexs = [].concat(this.$refs.pickerOptions.currentIndexs);
116
+ }
100
117
  this.$emit('change', this.getOptions());
101
118
  },
102
119
  cancel: function cancel() {
@@ -110,6 +127,28 @@ export default createComponent({
110
127
  });
111
128
  this.emit('confirm', options);
112
129
  },
130
+ handleSelectAll: function handleSelectAll() {
131
+ var newIndexs = !this.isAllSelected ? this.options && this.options.map(function (_, index) {
132
+ return index;
133
+ }) : [];
134
+ this.currentIndexs = newIndexs;
135
+ if (this.$refs.pickerOptions) {
136
+ this.$refs.pickerOptions.setConfirmIndex(newIndexs);
137
+ }
138
+ },
139
+ onSelectOther: function onSelectOther() {
140
+ var _this3 = this;
141
+ var newIndexs = [];
142
+ this.options && this.options.forEach(function (_, index) {
143
+ if (!_this3.currentIndexs.includes(index)) {
144
+ newIndexs.push(index);
145
+ }
146
+ });
147
+ this.currentIndexs = newIndexs;
148
+ if (this.$refs.pickerOptions) {
149
+ this.$refs.pickerOptions.setConfirmIndex(newIndexs);
150
+ }
151
+ },
113
152
  genTitle: function genTitle() {
114
153
  var h = this.$createElement;
115
154
  var titleSlot = this.slots('title');
@@ -122,13 +161,32 @@ export default createComponent({
122
161
  }, [this.title]);
123
162
  }
124
163
  },
125
- genCancel: function genCancel() {
164
+ genOther: function genOther() {
126
165
  var h = this.$createElement;
127
166
  return h(Button, {
167
+ "class": bem('select-other'),
128
168
  "attrs": {
129
- "size": "normal",
130
- "block": true
169
+ "size": "medium"
170
+ },
171
+ "style": {
172
+ marginLeft: '12px',
173
+ marginRight: '8px'
131
174
  },
175
+ "on": {
176
+ "click": this.onSelectOther
177
+ }
178
+ }, [this.slots('selectOther') || '其他']);
179
+ },
180
+ genCancel: function genCancel() {
181
+ var h = this.$createElement;
182
+ return h(Button, _mergeJSXProps([{
183
+ "class": [this.showSelectAll ? bem('in-select-all') : ''],
184
+ "attrs": {
185
+ "size": this.showSelectAll ? "medium" : "normal"
186
+ }
187
+ }, this.showSelectAll ? {
188
+ block: true
189
+ } : {}, {
132
190
  "style": {
133
191
  marginRigth: "4px",
134
192
  backgroundColor: "white"
@@ -136,30 +194,54 @@ export default createComponent({
136
194
  "on": {
137
195
  "click": this.cancel
138
196
  }
139
- }, [this.slots('cancel') || this.cancelButtonText || t('cancel')]);
197
+ }]), [this.slots('cancel') || this.cancelButtonText || t('cancel')]);
140
198
  },
141
199
  genConfirm: function genConfirm() {
142
200
  var h = this.$createElement;
143
- return h(Button, {
201
+ return h(Button, _mergeJSXProps2([{
144
202
  "attrs": {
145
203
  "type": "primary",
146
- "size": "normal",
147
- "block": true
204
+ "size": this.showSelectAll ? "medium" : "normal"
148
205
  },
206
+ "class": [this.showSelectAll ? bem('in-select-all') : '']
207
+ }, this.showSelectAll ? {
208
+ block: true
209
+ } : {}, {
149
210
  "style": {
150
211
  marginLeft: "8px"
151
212
  },
152
213
  "on": {
153
214
  "click": this.confirm
154
215
  }
155
- }, [this.slots('confirm') || this.confirmButtonText || t('confirm')]);
216
+ }]), [this.slots('confirm') || this.confirmButtonText || t('confirm')]);
217
+ },
218
+ genSelectAll: function genSelectAll() {
219
+ var h = this.$createElement;
220
+ return h("div", {
221
+ "class": bem('toolbar-select-all')
222
+ }, [h(Checkbox, {
223
+ "class": bem('toolbar-checkbox'),
224
+ "attrs": {
225
+ "shape": 'square',
226
+ "value": this.isAllSelected,
227
+ "indeterminate": this.isIndeterminate
228
+ },
229
+ "on": {
230
+ "click": this.handleSelectAll
231
+ }
232
+ }, ["\u5168\u9009"]), h("div", {
233
+ "class": bem('toolbar-divider')
234
+ }), h("span", {
235
+ "class": bem('toolbar-checkbox-text')
236
+ }, ["\u5DF2\u9009 ", this.currentIndexs && this.currentIndexs.length || 0])]);
156
237
  },
157
238
  genToolbar: function genToolbar() {
158
239
  var h = this.$createElement;
159
240
  if (this.showToolbar) {
241
+ var toolbar = this.showSelectAll ? [this.genSelectAll(), this.genOther(), this.genCancel(), this.genConfirm()] : [this.genCancel(), this.genConfirm()];
160
242
  return h("div", {
161
243
  "class": bem('toolbar')
162
- }, [this.slots() || [this.genCancel(), this.genConfirm()]]);
244
+ }, [this.slots() || toolbar]);
163
245
  }
164
246
  },
165
247
  genOptions: function genOptions() {
@@ -178,7 +260,7 @@ export default createComponent({
178
260
  }, [this.genOptionItems()]);
179
261
  },
180
262
  genOptionItems: function genOptionItems() {
181
- var _this3 = this;
263
+ var _this4 = this;
182
264
  var h = this.$createElement;
183
265
  var formatOptions = [];
184
266
  if (this.options && this.options[0] && typeof this.options[0] !== 'object') {
@@ -207,7 +289,7 @@ export default createComponent({
207
289
  },
208
290
  "on": {
209
291
  "change": function change() {
210
- _this3.onChange();
292
+ _this4.onChange();
211
293
  }
212
294
  }
213
295
  });
@@ -14,6 +14,64 @@
14
14
  height: @picker-toolbar-height;
15
15
  padding: 8px 16px;
16
16
  border-top: 1px solid rgba(45,75,115,0.10);
17
+
18
+ &-select-all {
19
+ display: flex;
20
+ align-items: center;
21
+ flex: 1;
22
+ max-width: 45%;
23
+ }
24
+
25
+ &-divider {
26
+ width: 1px;
27
+ height: 14px;
28
+ background-color: #E9ECF2;
29
+ margin-left: 7px;
30
+ margin-right: 7px;
31
+ }
32
+
33
+ &-checkbox {
34
+ flex-shrink: 0;
35
+ .zt2-checkbox__icon {
36
+ font-size: var(--zt-font-size-xl);
37
+ }
38
+
39
+ .zt2-checkbox__label {
40
+ font-size: 16px;
41
+ margin-left: 4px;
42
+ }
43
+ }
44
+
45
+ &-checkbox-text {
46
+ font-size: 16px;
47
+ color: #2d4b73;
48
+ white-space: nowrap;
49
+ text-overflow: ellipsis;
50
+ overflow: hidden;
51
+ }
52
+
53
+ .zt2-multiple-picker__in-select-all {
54
+ @media (max-width: 375px) {
55
+ padding: 0 14px;
56
+ }
57
+ @media (min-width: 376px) {
58
+ padding: 0 22px;
59
+ }
60
+ .zt2-button__text {
61
+ font-size: 16px;
62
+ }
63
+ }
64
+ .zt2-multiple-picker__select-other {
65
+ @media (max-width: 375px) {
66
+ padding: 0 10px;
67
+ }
68
+ @media (min-width: 376px) {
69
+ padding: 0 14px;
70
+ }
71
+ .zt2-button__text {
72
+ font-size: 16px;
73
+ }
74
+ }
17
75
  }
18
76
 
19
77
  &__border {
@@ -2,6 +2,7 @@ import '../../style/base.css';
2
2
  import '../../overlay/index.css';
3
3
  import '../../info/index.css';
4
4
  import '../../icon/index.css';
5
+ import '../../checkbox/index.css';
5
6
  import '../../popup/index.css';
6
7
  import '../../loading/index.css';
7
8
  import '../../button/index.css';
@@ -2,6 +2,7 @@ import '../../style/base.less';
2
2
  import '../../overlay/index.less';
3
3
  import '../../info/index.less';
4
4
  import '../../icon/index.less';
5
+ import '../../checkbox/index.less';
5
6
  import '../../popup/index.less';
6
7
  import '../../loading/index.less';
7
8
  import '../../button/index.less';
package/es/style/var.less CHANGED
@@ -176,7 +176,7 @@
176
176
  @button-large-height: 50px;
177
177
  @button-default-height: 44px;
178
178
  @button-default-line-height: calc(
179
- var(@button-normal-font-size) * 2 - 8px
179
+ @button-normal-font-size * 2 - 8px
180
180
  );
181
181
  @button-default-font-size: @font-size-lg;
182
182
  @button-default-color: @text-color-3;
@@ -1 +1 @@
1
- .zt2-button{position:relative;display:inline-block;box-sizing:border-box;height:44px;margin:0;padding:0;font-size:16px;line-height:calc(var(16px) * 2 - 8px);text-align:center;border-radius:22px;cursor:pointer;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-appearance:none}.zt2-button::before{position:absolute;top:50%;left:50%;width:100%;height:100%;background-color:#000;border:inherit;border-color:#000;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:' '}.zt2-button:active::before{opacity:.1}.zt2-button--disabled::before,.zt2-button--loading::before{display:none}.zt2-button--default{color:#2d4b73;background:0 0;border:1px solid rgba(45,75,115,.2)}.zt2-button--primary{color:#fff;background:-webkit-linear-gradient(135deg,#3cafff 0,#0091fa 100%);background:linear-gradient(-45deg,#3cafff 0,#0091fa 100%);border:1px solid #3caafa}.zt2-button--primary-light{color:#0091fa;background:rgba(1,144,250,.1);border:none}.zt2-button--danger{color:#fff;background:#ff5a5a;border:1px solid #ff5a5a}.zt2-button--warning{color:#fff;background:#fa8500;border:1px solid #fa8500}.zt2-button--success{color:#fff;background:#00e173;border:1px solid #00e173}.zt2-button--plain{background:0 0}.zt2-button--plain.zt2-button--primary{color:#3caafa}.zt2-button--plain.zt2-button--danger{color:#ff5a5a}.zt2-button--plain.zt2-button--warning{color:#fa8500}.zt2-button--plain.zt2-button--success{color:#00e173}.zt2-button--large{width:100%;height:50px}.zt2-button--normal{padding:0 24px;font-size:16px}.zt2-button--medium{height:36px;padding:0 16px;font-size:14px}.zt2-button--small{height:28px;padding:0 12px;font-size:14px}.zt2-button__loading{color:inherit;font-size:inherit}.zt2-button--mini{height:24px;padding:0 12px;font-size:12px}.zt2-button--mini+.zt2-button--mini{margin-left:4px}.zt2-button--block{display:block;width:100%}.zt2-button--block-inner{display:block;width:calc(100% - 2 * 16px);margin:0 16px}.zt2-button--disabled{cursor:not-allowed;opacity:.4}.zt2-button--loading{cursor:default}.zt2-button--round{border-radius:999px;padding:0}.zt2-button--round.zt2-button--mini{width:24px}.zt2-button--round.zt2-button--small{width:28px}.zt2-button--round.zt2-button--medium{width:36px}.zt2-button--round.zt2-button--normal{width:44px}.zt2-button--square{border-radius:0}.zt2-button__content{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;height:100%}.zt2-button__content::before{content:' '}.zt2-button__icon{font-size:24px}.zt2-button__icon--mini{font-size:16px}.zt2-button__icon--small{font-size:20px}.zt2-button__icon--medium{font-size:20px}.zt2-button__icon+.zt2-button__text,.zt2-button__loading+.zt2-button__text,.zt2-button__text+.zt2-button__icon,.zt2-button__text+.zt2-button__loading{margin-left:2px}.zt2-button--hairline{border-width:0}.zt2-button--hairline::after{border-color:inherit;border-radius:44px}.zt2-button--hairline.zt2-button--round::after{border-radius:999px}.zt2-button--hairline.zt2-button--square::after{border-radius:0}
1
+ .zt2-button{position:relative;display:inline-block;box-sizing:border-box;height:44px;margin:0;padding:0;font-size:16px;line-height:calc(16px * 2 - 8px);text-align:center;border-radius:22px;cursor:pointer;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-appearance:none}.zt2-button::before{position:absolute;top:50%;left:50%;width:100%;height:100%;background-color:#000;border:inherit;border-color:#000;border-radius:inherit;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;content:' '}.zt2-button:active::before{opacity:.1}.zt2-button--disabled::before,.zt2-button--loading::before{display:none}.zt2-button--default{color:#2d4b73;background:0 0;border:1px solid rgba(45,75,115,.2)}.zt2-button--primary{color:#fff;background:-webkit-linear-gradient(135deg,#3cafff 0,#0091fa 100%);background:linear-gradient(-45deg,#3cafff 0,#0091fa 100%);border:1px solid #3caafa}.zt2-button--primary-light{color:#0091fa;background:rgba(1,144,250,.1);border:none}.zt2-button--danger{color:#fff;background:#ff5a5a;border:1px solid #ff5a5a}.zt2-button--warning{color:#fff;background:#fa8500;border:1px solid #fa8500}.zt2-button--success{color:#fff;background:#00e173;border:1px solid #00e173}.zt2-button--plain{background:0 0}.zt2-button--plain.zt2-button--primary{color:#3caafa}.zt2-button--plain.zt2-button--danger{color:#ff5a5a}.zt2-button--plain.zt2-button--warning{color:#fa8500}.zt2-button--plain.zt2-button--success{color:#00e173}.zt2-button--large{width:100%;height:50px}.zt2-button--normal{padding:0 24px;font-size:16px}.zt2-button--medium{height:36px;padding:0 16px;font-size:14px}.zt2-button--small{height:28px;padding:0 12px;font-size:14px}.zt2-button__loading{color:inherit;font-size:inherit}.zt2-button--mini{height:24px;padding:0 12px;font-size:12px}.zt2-button--mini+.zt2-button--mini{margin-left:4px}.zt2-button--block{display:block;width:100%}.zt2-button--block-inner{display:block;width:calc(100% - 2 * 16px);margin:0 16px}.zt2-button--disabled{cursor:not-allowed;opacity:.4}.zt2-button--loading{cursor:default}.zt2-button--round{border-radius:999px;padding:0}.zt2-button--round.zt2-button--mini{width:24px}.zt2-button--round.zt2-button--small{width:28px}.zt2-button--round.zt2-button--medium{width:36px}.zt2-button--round.zt2-button--normal{width:44px}.zt2-button--square{border-radius:0}.zt2-button__content{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;height:100%}.zt2-button__content::before{content:' '}.zt2-button__icon{font-size:24px}.zt2-button__icon--mini{font-size:16px}.zt2-button__icon--small{font-size:20px}.zt2-button__icon--medium{font-size:20px}.zt2-button__icon+.zt2-button__text,.zt2-button__loading+.zt2-button__text,.zt2-button__text+.zt2-button__icon,.zt2-button__text+.zt2-button__loading{margin-left:2px}.zt2-button--hairline{border-width:0}.zt2-button--hairline::after{border-color:inherit;border-radius:44px}.zt2-button--hairline.zt2-button--round::after{border-radius:999px}.zt2-button--hairline.zt2-button--square::after{border-radius:0}
@@ -1 +1 @@
1
- .zt2-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:12px 0}.zt2-checkbox--disabled{cursor:not-allowed}.zt2-checkbox--label-disabled{cursor:default}.zt2-checkbox--horizontal:not(:last-child){margin-right:32px}.zt2-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt2-checkbox__icon .zt2-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;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt2-checkbox__icon--round .zt2-icon{border-radius:100%}.zt2-checkbox__icon--checked .zt2-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt2-checkbox__icon--disabled{cursor:not-allowed}.zt2-checkbox__icon--disabled .zt2-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt2-checkbox__icon--disabled.zt2-checkbox__icon--checked .zt2-icon{opacity:.4;background:#0091fa;color:#fff}.zt2-checkbox__label{margin-left:8px;color:#2d4b73;font-size:14px}.zt2-checkbox__label--left{margin:0 8px 0 0}.zt2-checkbox__label--disabled{color:#c8c9cc}
1
+ .zt2-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:12px 0}.zt2-checkbox--disabled{cursor:not-allowed}.zt2-checkbox--label-disabled{cursor:default}.zt2-checkbox--horizontal:not(:last-child){margin-right:32px}.zt2-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt2-checkbox__icon .zt2-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;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt2-checkbox__icon .zt2-icon{border-radius:4px}.zt2-checkbox__icon--round .zt2-icon{border-radius:100%}.zt2-checkbox__icon--checked .zt2-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt2-checkbox__icon--disabled{cursor:not-allowed}.zt2-checkbox__icon--disabled .zt2-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt2-checkbox__icon--disabled.zt2-checkbox__icon--checked .zt2-icon{opacity:.4;background:#0091fa;color:#fff}.zt2-checkbox__label{margin-left:8px;color:#2d4b73;font-size:14px}.zt2-checkbox__label--left{margin:0 8px 0 0}.zt2-checkbox__label--disabled{color:#c8c9cc}
@@ -37,6 +37,10 @@
37
37
  transition-property: color, border-color, background-color;
38
38
  }
39
39
 
40
+ .@{base-prefix}-icon {
41
+ border-radius: 4px;
42
+ }
43
+
40
44
  &--round {
41
45
  .@{base-prefix}-icon {
42
46
  border-radius: 100%;