@vtj/materials 0.10.1-alpha.6 → 0.10.1

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