zartui 1.0.7 → 1.0.9

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.
@@ -466,9 +466,6 @@ export default createComponent({
466
466
  "class": bem('confirm'),
467
467
  "on": {
468
468
  "click": this.onConfirm
469
- },
470
- "style": {
471
- marginLeft: "4px"
472
469
  }
473
470
  }, [text || t('confirm')]);
474
471
  }
@@ -1 +1 @@
1
- .zt-collapse-item{position:relative}.zt-collapse-item__title{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#fff;padding:10px 16px}.zt-collapse-item__title .zt-cell{padding-left:12px}.zt-collapse-item__bar{position:absolute;left:0;width:4px;height:16px;background:#0091fa}.zt-collapse-item__bar--custom{background:#fff}.zt-collapse-item__icon{font-size:24px;color:rgba(0,0,0,.2);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.zt-collapse-item__icon--expanded{color:#0091fa;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.zt-collapse-item__icon--custom{color:#fff}.zt-collapse-item__text{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-weight:700;font-size:16px;color:#000;line-height:20px}.zt-collapse-item__text--custom{color:#fff}.zt-collapse-item__text--disabled{cursor:not-allowed}.zt-collapse-item__wrapper{overflow:hidden;-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out;will-change:height}.zt-collapse-item__content{color:#000;font-size:14px;line-height:20px;background-color:#fff}
1
+ .zt-collapse-item{position:relative}.zt-collapse-item__container{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#fff}.zt-collapse-item__container .zt-cell{padding-left:12px}.zt-collapse-item__bar{width:4px;height:16px;background:#0091fa}.zt-collapse-item__title--iconWhite .zt-icon::before{color:#fff!important}.zt-collapse-item__title .zt-cell__title{font-weight:700;font-family:PingFangSC-Semibold}.zt-collapse-item__title .zt-cell__right-icon::before{-webkit-transform:rotate(90deg) translateZ(0);transform:rotate(90deg) translateZ(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;color:rgba(0,0,0,.2)}.zt-collapse-item__title::after{right:16px;display:none}.zt-collapse-item__title--expanded .zt-cell__right-icon::before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);color:#0091fa}.zt-collapse-item__title--expanded::after{display:block}.zt-collapse-item__title--borderless::after{display:none}.zt-collapse-item__title--disabled{cursor:not-allowed}.zt-collapse-item__title--disabled,.zt-collapse-item__title--disabled .zt-cell__right-icon{color:#c8c9cc}.zt-collapse-item__title--disabled:active{background-color:#fff}.zt-collapse-item__wrapper{overflow:hidden;-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out;will-change:height}.zt-collapse-item__content{color:#000;font-size:14px;line-height:20px;background-color:#fff}
@@ -1,26 +1,32 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  // Utils
2
3
  import { createNamespace } from '../utils';
3
4
  import { raf, doubleRaf } from '../utils/dom/raf'; // Mixins
4
5
 
5
6
  import { ChildrenMixin } from '../mixins/relation'; // Components
6
7
 
7
- import Icon from '../icon';
8
+ import Cell from '../cell';
9
+ import { cellProps } from '../cell/shared';
8
10
 
9
11
  var _createNamespace = createNamespace('collapse-item'),
10
12
  createComponent = _createNamespace[0],
11
13
  bem = _createNamespace[1];
12
14
 
15
+ var CELL_SLOTS = ['title', 'icon', 'right-icon'];
13
16
  export default createComponent({
14
17
  mixins: [ChildrenMixin('ztCollapse')],
15
- props: {
18
+ props: _extends({}, cellProps, {
16
19
  name: [Number, String],
17
- title: [Number, String],
20
+ disabled: Boolean,
21
+ isLink: {
22
+ type: Boolean,
23
+ default: true
24
+ },
18
25
  titleBG: {
19
26
  type: String,
20
27
  default: ""
21
- },
22
- color: String
23
- },
28
+ }
29
+ }),
24
30
  data: function data() {
25
31
  return {
26
32
  show: null,
@@ -100,8 +106,9 @@ export default createComponent({
100
106
  },
101
107
  methods: {
102
108
  onClick: function onClick() {
103
- // if (!this.disabled) {
104
- this.toggle(); // }
109
+ if (!this.disabled) {
110
+ this.toggle();
111
+ }
105
112
  },
106
113
  // @exposed-api
107
114
  toggle: function toggle(expanded) {
@@ -123,35 +130,53 @@ export default createComponent({
123
130
  }
124
131
  },
125
132
  genTitle: function genTitle() {
133
+ var _this3 = this;
134
+
126
135
  var h = this.$createElement;
127
- var expanded = this.expanded,
128
- titleBG = this.titleBG,
129
- color = this.color;
130
- return h("div", {
131
- "class": [bem("title"), expanded ? " half-border-bottom" : ""],
132
- "style": titleBG ? "background:" + titleBG + ";color:#fff;" : "",
133
- "on": {
134
- "click": this.onClick
136
+ var border = this.border,
137
+ disabled = this.disabled,
138
+ expanded = this.expanded,
139
+ titleBG = this.titleBG;
140
+ var titleSlots = CELL_SLOTS.reduce(function (slots, name) {
141
+ if (_this3.slots(name)) {
142
+ slots[name] = function () {
143
+ return _this3.slots(name);
144
+ };
135
145
  }
136
- }, [h("span", {
137
- "class": bem("bar", {
138
- custom: titleBG
139
- }),
140
- "style": color ? "background:" + color + ";" : ''
141
- }), h("span", {
142
- "class": bem("text", {
143
- custom: titleBG
144
- }),
145
- "style": color ? "color:" + color + ";" : ''
146
- }, [this.title]), h(Icon, {
146
+
147
+ return slots;
148
+ }, {});
149
+
150
+ if (this.slots('value')) {
151
+ titleSlots.default = function () {
152
+ return _this3.slots('value');
153
+ };
154
+ }
155
+
156
+ return h("div", {
157
+ "class": bem("container") + (expanded ? " half-border-bottom" : ""),
158
+ "style": titleBG ? "background:" + titleBG + ";color:#fff;" : ""
159
+ }, [h("div", {
160
+ "class": bem("bar"),
161
+ "style": titleBG ? 'background-color:#fff;' : ''
162
+ }), h(Cell, {
147
163
  "attrs": {
148
- "name": "keyboard-arrow-up"
164
+ "role": "button",
165
+ "tabindex": disabled ? -1 : 0,
166
+ "aria-expanded": String(expanded)
149
167
  },
150
- "style": color ? "color:" + color + ";" : '',
151
- "class": bem('icon', {
168
+ "class": bem('title', {
169
+ disabled: disabled,
152
170
  expanded: expanded,
153
- custom: titleBG
154
- })
171
+ borderless: !border,
172
+ iconWhite: titleBG
173
+ }),
174
+ "on": {
175
+ "click": this.onClick
176
+ },
177
+ "scopedSlots": titleSlots,
178
+ "style": titleBG ? "background:" + titleBG + ";color:#fff;" : "",
179
+ "props": _extends({}, this.$props)
155
180
  })]);
156
181
  },
157
182
  genContent: function genContent() {
@@ -179,7 +204,7 @@ export default createComponent({
179
204
  var h = arguments[0];
180
205
  return h("div", {
181
206
  "class": [bem({
182
- border: this.index
207
+ border: this.index && this.border
183
208
  })]
184
209
  }, [this.genTitle(), this.genContent()]);
185
210
  }
@@ -4,57 +4,74 @@
4
4
  .zt-collapse-item {
5
5
  position: relative;
6
6
 
7
- &__title {
7
+ &__container {
8
8
  display: flex;
9
9
  align-items: center;
10
- background-color: @white;
11
- padding: @collapse-item-title-padding;
10
+ background-color: #fff;
12
11
  .zt-cell {
13
- padding-left: @collapse-item-title-cell-padding;
12
+ padding-left: 12px;
14
13
  }
15
14
  }
16
15
  &__bar {
17
- position: absolute;
18
- left: 0;
19
- width: @collapse-item-bar-width;
20
- height: @collapse-item-bar-height;
21
- background: @blue;
22
- &--custom {
23
- background: @white;
24
- }
16
+ width: 4px;
17
+ height: 16px;
18
+ background: #0091FA;
25
19
  }
26
- &__icon {
27
- font-size: @collapse-item-icon-font-size;
28
- color: @gray-a2;
29
- transition: transform 0.3s;
30
20
 
31
- &--expanded {
32
- color: @blue;
33
- transform: rotate(-180deg);
21
+ &__title {
22
+ &--iconWhite {
23
+ .zt-icon::before {
24
+ color: #fff!important;
25
+ }
26
+ }
27
+ .zt-cell__title {
28
+ font-weight: bold;
29
+ font-family: PingFangSC-Semibold;
30
+ }
31
+ .zt-cell__right-icon::before {
32
+ // using translateZ to fix safari rendering issues
33
+ // see: https://github.com/youzan/vant/issues/8608
34
+ transform: rotate(90deg) translateZ(0);
35
+ transition: transform @collapse-item-transition-duration;
36
+ color: @gray-a2;
34
37
  }
35
38
 
36
- &--custom {
37
- color: @white;
39
+ &::after {
40
+ right: @padding-md;
41
+ display: none;
38
42
  }
39
- }
40
43
 
41
- &__text {
42
- flex: 1;
43
- font-weight: @font-weight-bold;
44
- font-size: @collapse-item-title-font-size;
45
- color: @black;
46
- line-height: @collapse-item-content-line-height;
44
+ &--expanded {
45
+ .zt-cell__right-icon::before {
46
+ transform: rotate(-90deg);
47
+ color: @blue;
48
+ }
49
+
50
+ &::after {
51
+ display: block;
52
+ }
53
+ }
47
54
 
48
- &--custom {
49
- color: @white;
55
+ &--borderless {
56
+ &::after {
57
+ display: none;
58
+ }
50
59
  }
51
60
 
52
61
  &--disabled {
53
62
  cursor: not-allowed;
63
+
64
+ &,
65
+ & .zt-cell__right-icon {
66
+ color: @collapse-item-title-disabled-color;
67
+ }
68
+
69
+ &:active {
70
+ background-color: @white;
71
+ }
54
72
  }
55
73
  }
56
74
 
57
-
58
75
  &__wrapper {
59
76
  overflow: hidden;
60
77
  transition: height @collapse-item-transition-duration ease-in-out;
@@ -1,4 +1,5 @@
1
1
  import '../../style/base.css';
2
2
  import '../../info/index.css';
3
3
  import '../../icon/index.css';
4
+ import '../../cell/index.css';
4
5
  import '../index.css';
@@ -1,4 +1,5 @@
1
1
  import '../../style/base.less';
2
2
  import '../../info/index.less';
3
3
  import '../../icon/index.less';
4
+ import '../../cell/index.less';
4
5
  import '../index.less';
package/es/index.js CHANGED
@@ -76,7 +76,7 @@ import Tag from './tag';
76
76
  import Timeline from './timeline';
77
77
  import Toast from './toast';
78
78
  import Uploader from './uploader';
79
- var version = '1.0.7';
79
+ var version = '1.0.9';
80
80
 
81
81
  function install(Vue) {
82
82
  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, PdfViewer, PdfViewerV2, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, Timeline, Toast, Uploader];
package/es/style/var.less CHANGED
@@ -288,16 +288,12 @@
288
288
 
289
289
  // Collapse
290
290
  @collapse-item-transition-duration: @animation-duration-base;
291
- @collapse-item-title-padding: 10px 16px;
292
- @collapse-item-title-cell-padding: @padding-sm;
293
- @collapse-item-bar-width: 4px;
294
- @collapse-item-bar-height: 16px;
295
- @collapse-item-title-font-size: @font-size-lg;
291
+ @collapse-item-content-padding: @padding-sm @padding-md;
296
292
  @collapse-item-content-font-size: @font-size-md;
297
293
  @collapse-item-content-line-height: @line-height-md;
298
294
  @collapse-item-content-text-color: @black;
299
- @collapse-item-icon-font-size: 24px;
300
295
  @collapse-item-content-background-color: @white;
296
+ @collapse-item-title-disabled-color: @gray-5;
301
297
 
302
298
  // ContactCard
303
299
  @contact-card-padding: @padding-md;
@@ -514,7 +510,7 @@
514
510
  @image-preview-index-line-height: @line-height-md;
515
511
  @image-preview-index-text-shadow: 0 1px 1px @gray-8;
516
512
  @image-preview-index-background: rgba(0, 0, 0, 0.6);
517
- @image-preview-index-padding: @padding-base @padding-xs;
513
+ @image-preview-index-padding:@padding-base @padding-xs;
518
514
  @image-preview-index-line-height:@line-height-xl;
519
515
  @image-preview-index-height:24px;
520
516
  @image-preview-index-bottom:8px;
@@ -482,9 +482,6 @@ var _default2 = (0, _utils.createComponent)({
482
482
  "class": (0, _utils.bem)('confirm'),
483
483
  "on": {
484
484
  "click": this.onConfirm
485
- },
486
- "style": {
487
- marginLeft: "4px"
488
485
  }
489
486
  }, [text || (0, _utils.t)('confirm')]);
490
487
  }
@@ -1 +1 @@
1
- .zt-collapse-item{position:relative}.zt-collapse-item__title{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#fff;padding:10px 16px}.zt-collapse-item__title .zt-cell{padding-left:12px}.zt-collapse-item__bar{position:absolute;left:0;width:4px;height:16px;background:#0091fa}.zt-collapse-item__bar--custom{background:#fff}.zt-collapse-item__icon{font-size:24px;color:rgba(0,0,0,.2);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.zt-collapse-item__icon--expanded{color:#0091fa;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.zt-collapse-item__icon--custom{color:#fff}.zt-collapse-item__text{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-weight:700;font-size:16px;color:#000;line-height:20px}.zt-collapse-item__text--custom{color:#fff}.zt-collapse-item__text--disabled{cursor:not-allowed}.zt-collapse-item__wrapper{overflow:hidden;-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out;will-change:height}.zt-collapse-item__content{color:#000;font-size:14px;line-height:20px;background-color:#fff}
1
+ .zt-collapse-item{position:relative}.zt-collapse-item__container{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#fff}.zt-collapse-item__container .zt-cell{padding-left:12px}.zt-collapse-item__bar{width:4px;height:16px;background:#0091fa}.zt-collapse-item__title--iconWhite .zt-icon::before{color:#fff!important}.zt-collapse-item__title .zt-cell__title{font-weight:700;font-family:PingFangSC-Semibold}.zt-collapse-item__title .zt-cell__right-icon::before{-webkit-transform:rotate(90deg) translateZ(0);transform:rotate(90deg) translateZ(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;color:rgba(0,0,0,.2)}.zt-collapse-item__title::after{right:16px;display:none}.zt-collapse-item__title--expanded .zt-cell__right-icon::before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);color:#0091fa}.zt-collapse-item__title--expanded::after{display:block}.zt-collapse-item__title--borderless::after{display:none}.zt-collapse-item__title--disabled{cursor:not-allowed}.zt-collapse-item__title--disabled,.zt-collapse-item__title--disabled .zt-cell__right-icon{color:#c8c9cc}.zt-collapse-item__title--disabled:active{background-color:#fff}.zt-collapse-item__wrapper{overflow:hidden;-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out;will-change:height}.zt-collapse-item__content{color:#000;font-size:14px;line-height:20px;background-color:#fff}
@@ -5,13 +5,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
 
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+
8
10
  var _utils = require("../utils");
9
11
 
10
12
  var _raf = require("../utils/dom/raf");
11
13
 
12
14
  var _relation = require("../mixins/relation");
13
15
 
14
- var _icon = _interopRequireDefault(require("../icon"));
16
+ var _cell = _interopRequireDefault(require("../cell"));
17
+
18
+ var _shared = require("../cell/shared");
15
19
 
16
20
  // Utils
17
21
  // Mixins
@@ -20,17 +24,22 @@ var _createNamespace = (0, _utils.createNamespace)('collapse-item'),
20
24
  createComponent = _createNamespace[0],
21
25
  bem = _createNamespace[1];
22
26
 
27
+ var CELL_SLOTS = ['title', 'icon', 'right-icon'];
28
+
23
29
  var _default = createComponent({
24
30
  mixins: [(0, _relation.ChildrenMixin)('ztCollapse')],
25
- props: {
31
+ props: (0, _extends2.default)({}, _shared.cellProps, {
26
32
  name: [Number, String],
27
- title: [Number, String],
33
+ disabled: Boolean,
34
+ isLink: {
35
+ type: Boolean,
36
+ default: true
37
+ },
28
38
  titleBG: {
29
39
  type: String,
30
40
  default: ""
31
- },
32
- color: String
33
- },
41
+ }
42
+ }),
34
43
  data: function data() {
35
44
  return {
36
45
  show: null,
@@ -110,8 +119,9 @@ var _default = createComponent({
110
119
  },
111
120
  methods: {
112
121
  onClick: function onClick() {
113
- // if (!this.disabled) {
114
- this.toggle(); // }
122
+ if (!this.disabled) {
123
+ this.toggle();
124
+ }
115
125
  },
116
126
  // @exposed-api
117
127
  toggle: function toggle(expanded) {
@@ -133,35 +143,53 @@ var _default = createComponent({
133
143
  }
134
144
  },
135
145
  genTitle: function genTitle() {
146
+ var _this3 = this;
147
+
136
148
  var h = this.$createElement;
137
- var expanded = this.expanded,
138
- titleBG = this.titleBG,
139
- color = this.color;
140
- return h("div", {
141
- "class": [bem("title"), expanded ? " half-border-bottom" : ""],
142
- "style": titleBG ? "background:" + titleBG + ";color:#fff;" : "",
143
- "on": {
144
- "click": this.onClick
149
+ var border = this.border,
150
+ disabled = this.disabled,
151
+ expanded = this.expanded,
152
+ titleBG = this.titleBG;
153
+ var titleSlots = CELL_SLOTS.reduce(function (slots, name) {
154
+ if (_this3.slots(name)) {
155
+ slots[name] = function () {
156
+ return _this3.slots(name);
157
+ };
145
158
  }
146
- }, [h("span", {
147
- "class": bem("bar", {
148
- custom: titleBG
149
- }),
150
- "style": color ? "background:" + color + ";" : ''
151
- }), h("span", {
152
- "class": bem("text", {
153
- custom: titleBG
154
- }),
155
- "style": color ? "color:" + color + ";" : ''
156
- }, [this.title]), h(_icon.default, {
159
+
160
+ return slots;
161
+ }, {});
162
+
163
+ if (this.slots('value')) {
164
+ titleSlots.default = function () {
165
+ return _this3.slots('value');
166
+ };
167
+ }
168
+
169
+ return h("div", {
170
+ "class": bem("container") + (expanded ? " half-border-bottom" : ""),
171
+ "style": titleBG ? "background:" + titleBG + ";color:#fff;" : ""
172
+ }, [h("div", {
173
+ "class": bem("bar"),
174
+ "style": titleBG ? 'background-color:#fff;' : ''
175
+ }), h(_cell.default, {
157
176
  "attrs": {
158
- "name": "keyboard-arrow-up"
177
+ "role": "button",
178
+ "tabindex": disabled ? -1 : 0,
179
+ "aria-expanded": String(expanded)
159
180
  },
160
- "style": color ? "color:" + color + ";" : '',
161
- "class": bem('icon', {
181
+ "class": bem('title', {
182
+ disabled: disabled,
162
183
  expanded: expanded,
163
- custom: titleBG
164
- })
184
+ borderless: !border,
185
+ iconWhite: titleBG
186
+ }),
187
+ "on": {
188
+ "click": this.onClick
189
+ },
190
+ "scopedSlots": titleSlots,
191
+ "style": titleBG ? "background:" + titleBG + ";color:#fff;" : "",
192
+ "props": (0, _extends2.default)({}, this.$props)
165
193
  })]);
166
194
  },
167
195
  genContent: function genContent() {
@@ -189,7 +217,7 @@ var _default = createComponent({
189
217
  var h = arguments[0];
190
218
  return h("div", {
191
219
  "class": [bem({
192
- border: this.index
220
+ border: this.index && this.border
193
221
  })]
194
222
  }, [this.genTitle(), this.genContent()]);
195
223
  }
@@ -4,57 +4,74 @@
4
4
  .zt-collapse-item {
5
5
  position: relative;
6
6
 
7
- &__title {
7
+ &__container {
8
8
  display: flex;
9
9
  align-items: center;
10
- background-color: @white;
11
- padding: @collapse-item-title-padding;
10
+ background-color: #fff;
12
11
  .zt-cell {
13
- padding-left: @collapse-item-title-cell-padding;
12
+ padding-left: 12px;
14
13
  }
15
14
  }
16
15
  &__bar {
17
- position: absolute;
18
- left: 0;
19
- width: @collapse-item-bar-width;
20
- height: @collapse-item-bar-height;
21
- background: @blue;
22
- &--custom {
23
- background: @white;
24
- }
16
+ width: 4px;
17
+ height: 16px;
18
+ background: #0091FA;
25
19
  }
26
- &__icon {
27
- font-size: @collapse-item-icon-font-size;
28
- color: @gray-a2;
29
- transition: transform 0.3s;
30
20
 
31
- &--expanded {
32
- color: @blue;
33
- transform: rotate(-180deg);
21
+ &__title {
22
+ &--iconWhite {
23
+ .zt-icon::before {
24
+ color: #fff!important;
25
+ }
26
+ }
27
+ .zt-cell__title {
28
+ font-weight: bold;
29
+ font-family: PingFangSC-Semibold;
30
+ }
31
+ .zt-cell__right-icon::before {
32
+ // using translateZ to fix safari rendering issues
33
+ // see: https://github.com/youzan/vant/issues/8608
34
+ transform: rotate(90deg) translateZ(0);
35
+ transition: transform @collapse-item-transition-duration;
36
+ color: @gray-a2;
34
37
  }
35
38
 
36
- &--custom {
37
- color: @white;
39
+ &::after {
40
+ right: @padding-md;
41
+ display: none;
38
42
  }
39
- }
40
43
 
41
- &__text {
42
- flex: 1;
43
- font-weight: @font-weight-bold;
44
- font-size: @collapse-item-title-font-size;
45
- color: @black;
46
- line-height: @collapse-item-content-line-height;
44
+ &--expanded {
45
+ .zt-cell__right-icon::before {
46
+ transform: rotate(-90deg);
47
+ color: @blue;
48
+ }
49
+
50
+ &::after {
51
+ display: block;
52
+ }
53
+ }
47
54
 
48
- &--custom {
49
- color: @white;
55
+ &--borderless {
56
+ &::after {
57
+ display: none;
58
+ }
50
59
  }
51
60
 
52
61
  &--disabled {
53
62
  cursor: not-allowed;
63
+
64
+ &,
65
+ & .zt-cell__right-icon {
66
+ color: @collapse-item-title-disabled-color;
67
+ }
68
+
69
+ &:active {
70
+ background-color: @white;
71
+ }
54
72
  }
55
73
  }
56
74
 
57
-
58
75
  &__wrapper {
59
76
  overflow: hidden;
60
77
  transition: height @collapse-item-transition-duration ease-in-out;
@@ -1,4 +1,5 @@
1
1
  require('../../style/base.css');
2
2
  require('../../info/index.css');
3
3
  require('../../icon/index.css');
4
+ require('../../cell/index.css');
4
5
  require('../index.css');
@@ -1,4 +1,5 @@
1
1
  require('../../style/base.less');
2
2
  require('../../info/index.less');
3
3
  require('../../icon/index.less');
4
+ require('../../cell/index.less');
4
5
  require('../index.less');