@vtj/materials 0.10.1-alpha.5 → 0.10.1-alpha.7
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/dist/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +2 -2
- package/dist/assets/uni-ui/index.umd.js +3 -3
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/deps/uni-h5/style.css +1 -1
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/package.json +5 -5
- package/src/uni-h5/style.scss +0 -1
- package/src/uni-ui/components/badge.ts +5 -1
- package/src/uni-ui/components/breadcrumb.ts +76 -0
- package/src/uni-ui/components/calendar.ts +63 -0
- package/src/uni-ui/components/card.ts +113 -0
- package/src/uni-ui/components/collapse.ts +118 -0
- package/src/uni-ui/components/combox.ts +51 -0
- package/src/uni-ui/components/countdown.ts +92 -0
- package/src/uni-ui/components/dataCheckbox.ts +104 -0
- package/src/uni-ui/components/dataPicker.ts +146 -0
- package/src/uni-ui/components/dataSelect.ts +68 -0
- package/src/uni-ui/components/dateformat.ts +42 -0
- package/src/uni-ui/components/datetimePicker.ts +103 -0
- package/src/uni-ui/components/drawer.ts +38 -0
- package/src/uni-ui/components/easyinput.ts +159 -0
- package/src/uni-ui/components/fab.ts +89 -0
- package/src/uni-ui/components/fav.ts +65 -0
- package/src/uni-ui/components/filePicker.ts +127 -0
- package/src/uni-ui/components/forms.ts +209 -0
- package/src/uni-ui/components/goodsNav.ts +31 -0
- package/src/uni-ui/components/grid.ts +104 -0
- package/src/uni-ui/components/group.ts +50 -0
- package/src/uni-ui/components/icons.ts +47 -0
- package/src/uni-ui/components/index.ts +89 -1
- package/src/uni-ui/components/indexedList.ts +51 -0
- package/src/uni-ui/components/link.ts +60 -0
- package/src/uni-ui/components/list.ts +259 -0
- package/src/uni-ui/components/loadMore.ts +61 -0
- package/src/uni-ui/components/navbar.ts +121 -0
- package/src/uni-ui/components/noticeBar.ts +83 -0
- package/src/uni-ui/components/numberbox.ts +49 -0
- package/src/uni-ui/components/pagination.ts +59 -0
- package/src/uni-ui/components/popup.ts +206 -0
- package/src/uni-ui/components/rate.ts +89 -0
- package/src/uni-ui/components/row.ts +126 -0
- package/src/uni-ui/components/searchBar.ts +84 -0
- package/src/uni-ui/components/section.ts +68 -0
- package/src/uni-ui/components/segmentedControl.ts +48 -0
- package/src/uni-ui/components/steps.ts +55 -0
- package/src/uni-ui/components/swipeAction.ts +133 -0
- package/src/uni-ui/components/swiperDot.ts +114 -0
- package/src/uni-ui/components/table.ts +132 -0
- package/src/uni-ui/components/tag.ts +56 -0
- package/src/uni-ui/components/title.ts +49 -0
- package/src/uni-ui/components/tooltip.ts +32 -0
- package/src/uni-ui/components/transition.ts +49 -0
- package/src/uni-ui/index.ts +30 -13
- package/src/uni-ui/lib/uni-col/uni-col.vue +324 -0
- package/src/uni-ui/lib/uni-data-select/uni-data-select.vue +590 -0
- package/src/uni-ui/lib/uni-easyinput/common.js +54 -0
- package/src/uni-ui/lib/uni-easyinput/uni-easyinput.vue +790 -0
- package/src/uni-ui/lib/uni-forms-item/uni-forms-item.vue +630 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/en.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hans.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hant.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +231 -0
- package/src/uni-ui/lib/uni-icons/uni-icons.uvue +91 -0
- package/src/uni-ui/lib/uni-icons/uni-icons.vue +114 -0
- package/src/uni-ui/lib/uni-icons/uniicons.css +664 -0
- package/src/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
- package/src/uni-ui/lib/uni-icons/uniicons_file.ts +664 -0
- package/src/uni-ui/lib/uni-icons/uniicons_file_vue.js +649 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +144 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +404 -0
- package/src/uni-ui/lib/uni-list/uni-list.vue +123 -0
- package/src/uni-ui/lib/uni-list/uni-refresh.vue +65 -0
- package/src/uni-ui/lib/uni-list/uni-refresh.wxs +87 -0
- package/src/uni-ui/lib/uni-popup-dialog/keypress.js +45 -0
- package/src/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +324 -0
- package/src/uni-ui/lib/uni-rate/uni-rate.vue +361 -0
- package/src/uni-ui/lib/uni-table/uni-table.vue +496 -0
- package/src/uni-ui/lib/uni-td/uni-td.vue +99 -0
- package/src/uni-ui/lib/uni-th/uni-th.vue +310 -283
- package/src/uni-ui/lib/uni-tr/uni-tr.vue +194 -170
- package/src/version.ts +2 -2
- package/dist/deps/@vtj/uni/index.umd.js +0 -7
@@ -1,295 +1,322 @@
|
|
1
1
|
<template>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
2
|
+
<!-- #ifdef H5 -->
|
3
|
+
<th
|
4
|
+
:rowspan="rowspan"
|
5
|
+
:colspan="colspan"
|
6
|
+
class="uni-table-th"
|
7
|
+
:class="{ 'table--border': border }"
|
8
|
+
:style="{ width: customWidth + 'px', 'text-align': align }">
|
9
|
+
<view class="uni-table-th-row">
|
10
|
+
<view
|
11
|
+
class="uni-table-th-content"
|
12
|
+
:style="{ 'justify-content': contentAlign }"
|
13
|
+
@click="sort">
|
14
|
+
<slot></slot>
|
15
|
+
<view v-if="sortable" class="arrow-box">
|
16
|
+
<text
|
17
|
+
class="arrow up"
|
18
|
+
:class="{ active: ascending }"
|
19
|
+
@click.stop="ascendingFn"></text>
|
20
|
+
<text
|
21
|
+
class="arrow down"
|
22
|
+
:class="{ active: descending }"
|
23
|
+
@click.stop="descendingFn"></text>
|
24
|
+
</view>
|
25
|
+
</view>
|
26
|
+
<dropdown
|
27
|
+
v-if="filterType || filterData.length"
|
28
|
+
:filterDefaultValue="filterDefaultValue"
|
29
|
+
:filterData="filterData"
|
30
|
+
:filterType="filterType"
|
31
|
+
@change="ondropdown"></dropdown>
|
32
|
+
</view>
|
33
|
+
</th>
|
34
|
+
<!-- #endif -->
|
35
|
+
<!-- #ifndef H5 -->
|
36
|
+
<!-- <view class="uni-table-th" :class="{ 'table--border': border }" :style="{ width: customWidth + 'px', 'text-align': align }"><slot></slot></view> -->
|
37
|
+
<!-- #endif -->
|
19
38
|
</template>
|
20
39
|
|
21
40
|
<script>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
/**
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
export default {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
41
|
+
// #ifdef H5
|
42
|
+
import dropdown from './filter-dropdown.vue';
|
43
|
+
// #endif
|
44
|
+
/**
|
45
|
+
* Th 表头
|
46
|
+
* @description 表格内的表头单元格组件
|
47
|
+
* @tutorial https://ext.dcloud.net.cn/plugin?id=3270
|
48
|
+
* @property {Number | String} width 单元格宽度(支持纯数字、携带单位px或rpx)
|
49
|
+
* @property {Boolean} sortable 是否启用排序
|
50
|
+
* @property {Number} align = [left|center|right] 单元格对齐方式
|
51
|
+
* @value left 单元格文字左侧对齐
|
52
|
+
* @value center 单元格文字居中
|
53
|
+
* @value right 单元格文字右侧对齐
|
54
|
+
* @property {Array} filterData 筛选数据
|
55
|
+
* @property {String} filterType [search|select] 筛选类型
|
56
|
+
* @value search 关键字搜素
|
57
|
+
* @value select 条件选择
|
58
|
+
* @event {Function} sort-change 排序触发事件
|
59
|
+
*/
|
60
|
+
export default {
|
61
|
+
name: 'uniTh',
|
62
|
+
options: {
|
63
|
+
// #ifdef MP-TOUTIAO
|
64
|
+
virtualHost: false,
|
65
|
+
// #endif
|
66
|
+
// #ifndef MP-TOUTIAO
|
67
|
+
virtualHost: true
|
68
|
+
// #endif
|
69
|
+
},
|
70
|
+
components: {
|
71
|
+
// #ifdef H5
|
72
|
+
dropdown
|
73
|
+
// #endif
|
74
|
+
},
|
75
|
+
emits: ['sort-change', 'filter-change'],
|
76
|
+
props: {
|
77
|
+
width: {
|
78
|
+
type: [String, Number],
|
79
|
+
default: ''
|
80
|
+
},
|
81
|
+
align: {
|
82
|
+
type: String,
|
83
|
+
default: 'left'
|
84
|
+
},
|
85
|
+
rowspan: {
|
86
|
+
type: [Number, String],
|
87
|
+
default: 1
|
88
|
+
},
|
89
|
+
colspan: {
|
90
|
+
type: [Number, String],
|
91
|
+
default: 1
|
92
|
+
},
|
93
|
+
sortable: {
|
94
|
+
type: Boolean,
|
95
|
+
default: false
|
96
|
+
},
|
97
|
+
filterType: {
|
98
|
+
type: String,
|
99
|
+
default: ''
|
100
|
+
},
|
101
|
+
filterData: {
|
102
|
+
type: Array,
|
103
|
+
default() {
|
104
|
+
return [];
|
105
|
+
}
|
106
|
+
},
|
107
|
+
filterDefaultValue: {
|
108
|
+
type: [Array, String],
|
109
|
+
default() {
|
110
|
+
return '';
|
111
|
+
}
|
112
|
+
}
|
113
|
+
},
|
114
|
+
data() {
|
115
|
+
return {
|
116
|
+
border: false,
|
117
|
+
ascending: false,
|
118
|
+
descending: false
|
119
|
+
};
|
120
|
+
},
|
121
|
+
computed: {
|
122
|
+
// 根据props中的width属性 自动匹配当前th的宽度(px)
|
123
|
+
customWidth() {
|
124
|
+
if (typeof this.width === 'number') {
|
125
|
+
return this.width;
|
126
|
+
} else if (typeof this.width === 'string') {
|
127
|
+
let regexHaveUnitPx = new RegExp(/^[1-9][0-9]*px$/g);
|
128
|
+
let regexHaveUnitRpx = new RegExp(/^[1-9][0-9]*rpx$/g);
|
129
|
+
let regexHaveNotUnit = new RegExp(/^[1-9][0-9]*$/g);
|
130
|
+
if (this.width.match(regexHaveUnitPx) !== null) {
|
131
|
+
// 携带了 px
|
132
|
+
return this.width.replace('px', '');
|
133
|
+
} else if (this.width.match(regexHaveUnitRpx) !== null) {
|
134
|
+
// 携带了 rpx
|
135
|
+
let numberRpx = Number(this.width.replace('rpx', ''));
|
136
|
+
// #ifdef MP-WEIXIN
|
137
|
+
let widthCoe = uni.getWindowInfo().screenWidth / 750;
|
138
|
+
// #endif
|
139
|
+
// #ifndef MP-WEIXIN
|
140
|
+
// let widthCoe = uni.getSystemInfoSync().screenWidth / 750
|
141
|
+
// #endif
|
142
|
+
return Math.round(numberRpx * widthCoe);
|
143
|
+
} else if (this.width.match(regexHaveNotUnit) !== null) {
|
144
|
+
// 未携带 rpx或px 的纯数字 String
|
145
|
+
return this.width;
|
146
|
+
} else {
|
147
|
+
// 不符合格式
|
148
|
+
return '';
|
149
|
+
}
|
150
|
+
} else {
|
151
|
+
return '';
|
152
|
+
}
|
153
|
+
},
|
154
|
+
contentAlign() {
|
155
|
+
let align = 'left';
|
156
|
+
switch (this.align) {
|
157
|
+
case 'left':
|
158
|
+
align = 'flex-start';
|
159
|
+
break;
|
160
|
+
case 'center':
|
161
|
+
align = 'center';
|
162
|
+
break;
|
163
|
+
case 'right':
|
164
|
+
align = 'flex-end';
|
165
|
+
break;
|
166
|
+
}
|
167
|
+
return align;
|
168
|
+
}
|
169
|
+
},
|
170
|
+
created() {
|
171
|
+
this.root = this.getTable('uniTable');
|
172
|
+
this.rootTr = this.getTable('uniTr');
|
173
|
+
this.rootTr.minWidthUpdate(this.customWidth ? this.customWidth : 140);
|
174
|
+
this.border = this.root.border;
|
175
|
+
this.root.thChildren.push(this);
|
176
|
+
},
|
177
|
+
methods: {
|
178
|
+
sort() {
|
179
|
+
if (!this.sortable) return;
|
180
|
+
this.clearOther();
|
181
|
+
if (!this.ascending && !this.descending) {
|
182
|
+
this.ascending = true;
|
183
|
+
this.$emit('sort-change', { order: 'ascending' });
|
184
|
+
return;
|
185
|
+
}
|
186
|
+
if (this.ascending && !this.descending) {
|
187
|
+
this.ascending = false;
|
188
|
+
this.descending = true;
|
189
|
+
this.$emit('sort-change', { order: 'descending' });
|
190
|
+
return;
|
191
|
+
}
|
169
192
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
}
|
193
|
+
if (!this.ascending && this.descending) {
|
194
|
+
this.ascending = false;
|
195
|
+
this.descending = false;
|
196
|
+
this.$emit('sort-change', { order: null });
|
197
|
+
}
|
198
|
+
},
|
199
|
+
ascendingFn() {
|
200
|
+
this.clearOther();
|
201
|
+
this.ascending = !this.ascending;
|
202
|
+
this.descending = false;
|
203
|
+
this.$emit('sort-change', {
|
204
|
+
order: this.ascending ? 'ascending' : null
|
205
|
+
});
|
206
|
+
},
|
207
|
+
descendingFn() {
|
208
|
+
this.clearOther();
|
209
|
+
this.descending = !this.descending;
|
210
|
+
this.ascending = false;
|
211
|
+
this.$emit('sort-change', {
|
212
|
+
order: this.descending ? 'descending' : null
|
213
|
+
});
|
214
|
+
},
|
215
|
+
clearOther() {
|
216
|
+
this.root.thChildren.map((item) => {
|
217
|
+
if (item !== this) {
|
218
|
+
item.ascending = false;
|
219
|
+
item.descending = false;
|
220
|
+
}
|
221
|
+
return item;
|
222
|
+
});
|
223
|
+
},
|
224
|
+
ondropdown(e) {
|
225
|
+
this.$emit('filter-change', e);
|
226
|
+
},
|
227
|
+
/**
|
228
|
+
* 获取父元素实例
|
229
|
+
*/
|
230
|
+
getTable(name) {
|
231
|
+
let parent = this.$parent;
|
232
|
+
let parentName = parent.$options.name;
|
233
|
+
while (parentName !== name) {
|
234
|
+
parent = parent.$parent;
|
235
|
+
if (!parent) return false;
|
236
|
+
parentName = parent.$options.name;
|
237
|
+
}
|
238
|
+
return parent;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
};
|
215
242
|
</script>
|
216
243
|
|
217
244
|
<style lang="scss">
|
218
|
-
$border-color: #ebeef5;
|
219
|
-
$uni-primary: #007aff !default;
|
245
|
+
$border-color: #ebeef5;
|
246
|
+
$uni-primary: #007aff !default;
|
220
247
|
|
221
|
-
.uni-table-th {
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
}
|
248
|
+
.uni-table-th {
|
249
|
+
padding: 12px 10px;
|
250
|
+
/* #ifndef APP-NVUE */
|
251
|
+
display: table-cell;
|
252
|
+
box-sizing: border-box;
|
253
|
+
/* #endif */
|
254
|
+
font-size: 14px;
|
255
|
+
font-weight: bold;
|
256
|
+
color: #909399;
|
257
|
+
border-bottom: 1px $border-color solid;
|
258
|
+
}
|
232
259
|
|
233
|
-
.uni-table-th-row {
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
}
|
260
|
+
.uni-table-th-row {
|
261
|
+
/* #ifndef APP-NVUE */
|
262
|
+
display: flex;
|
263
|
+
/* #endif */
|
264
|
+
flex-direction: row;
|
265
|
+
}
|
239
266
|
|
240
|
-
.table--border {
|
241
|
-
|
242
|
-
}
|
243
|
-
.uni-table-th-content {
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
}
|
248
|
-
.arrow-box {
|
249
|
-
}
|
250
|
-
.arrow {
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
}
|
260
|
-
.down {
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
}
|
278
|
-
.up {
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
}
|
267
|
+
.table--border {
|
268
|
+
border-right: 1px $border-color solid;
|
269
|
+
}
|
270
|
+
.uni-table-th-content {
|
271
|
+
display: flex;
|
272
|
+
align-items: center;
|
273
|
+
flex: 1;
|
274
|
+
}
|
275
|
+
.arrow-box {
|
276
|
+
}
|
277
|
+
.arrow {
|
278
|
+
display: block;
|
279
|
+
position: relative;
|
280
|
+
width: 10px;
|
281
|
+
height: 8px;
|
282
|
+
// border: 1px red solid;
|
283
|
+
left: 5px;
|
284
|
+
overflow: hidden;
|
285
|
+
cursor: pointer;
|
286
|
+
}
|
287
|
+
.down {
|
288
|
+
top: 3px;
|
289
|
+
::after {
|
290
|
+
content: '';
|
291
|
+
width: 8px;
|
292
|
+
height: 8px;
|
293
|
+
position: absolute;
|
294
|
+
left: 2px;
|
295
|
+
top: -5px;
|
296
|
+
transform: rotate(45deg);
|
297
|
+
background-color: #ccc;
|
298
|
+
}
|
299
|
+
&.active {
|
300
|
+
::after {
|
301
|
+
background-color: $uni-primary;
|
302
|
+
}
|
303
|
+
}
|
304
|
+
}
|
305
|
+
.up {
|
306
|
+
::after {
|
307
|
+
content: '';
|
308
|
+
width: 8px;
|
309
|
+
height: 8px;
|
310
|
+
position: absolute;
|
311
|
+
left: 2px;
|
312
|
+
top: 5px;
|
313
|
+
transform: rotate(45deg);
|
314
|
+
background-color: #ccc;
|
315
|
+
}
|
316
|
+
&.active {
|
317
|
+
::after {
|
318
|
+
background-color: $uni-primary;
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
295
322
|
</style>
|