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.
- package/es/calendar/index.js +0 -3
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.js +58 -33
- package/es/collapse-item/index.less +48 -31
- package/es/collapse-item/style/index.js +1 -0
- package/es/collapse-item/style/less.js +1 -0
- package/es/index.js +1 -1
- package/es/style/var.less +3 -7
- package/lib/calendar/index.js +0 -3
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.js +61 -33
- package/lib/collapse-item/index.less +48 -31
- package/lib/collapse-item/style/index.js +1 -0
- package/lib/collapse-item/style/less.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +1 -1
- package/lib/style/var.less +3 -7
- package/lib/zart.js +64 -42
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
package/es/calendar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-collapse-item{position:relative}.zt-collapse-
|
|
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
|
|
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
|
-
|
|
20
|
+
disabled: Boolean,
|
|
21
|
+
isLink: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
},
|
|
18
25
|
titleBG: {
|
|
19
26
|
type: String,
|
|
20
27
|
default: ""
|
|
21
|
-
}
|
|
22
|
-
|
|
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
|
-
|
|
104
|
-
|
|
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
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
"
|
|
164
|
+
"role": "button",
|
|
165
|
+
"tabindex": disabled ? -1 : 0,
|
|
166
|
+
"aria-expanded": String(expanded)
|
|
149
167
|
},
|
|
150
|
-
"
|
|
151
|
-
|
|
168
|
+
"class": bem('title', {
|
|
169
|
+
disabled: disabled,
|
|
152
170
|
expanded: expanded,
|
|
153
|
-
|
|
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
|
-
&
|
|
7
|
+
&__container {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
background-color:
|
|
11
|
-
padding: @collapse-item-title-padding;
|
|
10
|
+
background-color: #fff;
|
|
12
11
|
.zt-cell {
|
|
13
|
-
padding-left:
|
|
12
|
+
padding-left: 12px;
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
&__bar {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
37
|
-
|
|
39
|
+
&::after {
|
|
40
|
+
right: @padding-md;
|
|
41
|
+
display: none;
|
|
38
42
|
}
|
|
39
|
-
}
|
|
40
43
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
&--
|
|
49
|
-
|
|
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;
|
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.
|
|
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-
|
|
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
|
|
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;
|
package/lib/calendar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-collapse-item{position:relative}.zt-collapse-
|
|
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
|
|
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
|
-
|
|
33
|
+
disabled: Boolean,
|
|
34
|
+
isLink: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: true
|
|
37
|
+
},
|
|
28
38
|
titleBG: {
|
|
29
39
|
type: String,
|
|
30
40
|
default: ""
|
|
31
|
-
}
|
|
32
|
-
|
|
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
|
-
|
|
114
|
-
|
|
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
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
-
"
|
|
177
|
+
"role": "button",
|
|
178
|
+
"tabindex": disabled ? -1 : 0,
|
|
179
|
+
"aria-expanded": String(expanded)
|
|
159
180
|
},
|
|
160
|
-
"
|
|
161
|
-
|
|
181
|
+
"class": bem('title', {
|
|
182
|
+
disabled: disabled,
|
|
162
183
|
expanded: expanded,
|
|
163
|
-
|
|
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
|
-
&
|
|
7
|
+
&__container {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
background-color:
|
|
11
|
-
padding: @collapse-item-title-padding;
|
|
10
|
+
background-color: #fff;
|
|
12
11
|
.zt-cell {
|
|
13
|
-
padding-left:
|
|
12
|
+
padding-left: 12px;
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
&__bar {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
37
|
-
|
|
39
|
+
&::after {
|
|
40
|
+
right: @padding-md;
|
|
41
|
+
display: none;
|
|
38
42
|
}
|
|
39
|
-
}
|
|
40
43
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
&--
|
|
49
|
-
|
|
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;
|