oxy-uni-ui 2.0.0 → 2.1.0
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/attributes.json +1 -1
- package/components/common/abstracts/variable.scss +338 -194
- package/components/composables/useVirtualScroll.ts +40 -14
- package/components/oxy-action-sheet/index.scss +3 -3
- package/components/oxy-backtop/index.scss +2 -2
- package/components/oxy-button/index.scss +2 -2
- package/components/oxy-calendar/index.scss +9 -9
- package/components/oxy-calendar-view/monthPanel/index.scss +4 -5
- package/components/oxy-calendar-view/year/index.scss +1 -1
- package/components/oxy-calendar-view/yearPanel/index.scss +3 -3
- package/components/oxy-cell/index.scss +1 -1
- package/components/oxy-checkbox/index.scss +9 -9
- package/components/oxy-checkbox-group/index.scss +2 -2
- package/components/oxy-col-picker/index.scss +3 -3
- package/components/oxy-corner/index.scss +1 -1
- package/components/oxy-datetime-picker/index.scss +5 -5
- package/components/oxy-drop-menu/index.scss +3 -3
- package/components/oxy-drop-menu-item/index.scss +2 -2
- package/components/oxy-file-list/index.scss +20 -20
- package/components/oxy-guidance/index.scss +13 -13
- package/components/oxy-img-cropper/index.scss +14 -14
- package/components/oxy-index-anchor/index.scss +2 -2
- package/components/oxy-index-bar/index.scss +3 -3
- package/components/oxy-input/index.scss +1 -1
- package/components/oxy-keyboard/index.scss +2 -2
- package/components/oxy-long-press-menu/index.scss +2 -2
- package/components/oxy-message-box/index.scss +7 -7
- package/components/oxy-message-box/oxy-message-box.vue +4 -5
- package/components/oxy-message-box/types.ts +0 -5
- package/components/oxy-pagination/index.scss +5 -4
- package/components/oxy-picker/index.scss +14 -14
- package/components/oxy-picker-view/index.scss +2 -2
- package/components/oxy-popover/index.scss +8 -8
- package/components/oxy-popup/index.scss +4 -4
- package/components/oxy-progress/index.scss +1 -1
- package/components/oxy-radio/index.scss +20 -14
- package/components/oxy-radio-group/index.scss +2 -2
- package/components/oxy-rich-text/index.scss +18 -18
- package/components/oxy-rich-text/mp-html/card/card.vue +3 -3
- package/components/oxy-rich-text/mp-html/mp-html.vue +4 -4
- package/components/oxy-rich-text/mp-html/node/node.vue +2 -2
- package/components/oxy-rich-text/oxy-rich-text.vue +8 -8
- package/components/oxy-search/index.scss +5 -5
- package/components/oxy-segmented/index.scss +13 -10
- package/components/oxy-select/index.scss +116 -68
- package/components/oxy-select/oxy-select.vue +24 -11
- package/components/oxy-select-picker/index.scss +2 -2
- package/components/oxy-sidebar-item/index.scss +2 -2
- package/components/oxy-skeleton/index.scss +1 -1
- package/components/oxy-slider/index.scss +4 -4
- package/components/oxy-splitter/index.scss +19 -0
- package/components/oxy-splitter/oxy-splitter.vue +409 -0
- package/components/oxy-splitter/types.ts +75 -0
- package/components/oxy-splitter-panel/index.scss +366 -0
- package/components/oxy-splitter-panel/oxy-splitter-panel.vue +432 -0
- package/components/oxy-splitter-panel/types.ts +63 -0
- package/components/oxy-step/index.scss +5 -5
- package/components/oxy-stream-render/oxy-stream-render.vue +230 -4
- package/components/oxy-swiper-nav/index.scss +3 -3
- package/components/oxy-switch/index.scss +2 -2
- package/components/oxy-tabbar/index.scss +2 -2
- package/components/oxy-table/index.scss +5 -5
- package/components/oxy-table-col/index.scss +3 -3
- package/components/oxy-tabs/index.scss +14 -12
- package/components/oxy-tag/index.scss +111 -36
- package/components/oxy-textarea/index.scss +3 -3
- package/components/oxy-tooltip/index.scss +1 -1
- package/components/oxy-tree/index.scss +4 -4
- package/components/oxy-upload/index.scss +17 -17
- package/components/oxy-virtual-scroll/index.scss +1 -1
- package/components/oxy-voice-player/index.scss +68 -39
- package/global.d.ts +2 -0
- package/package.json +1 -1
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -55,6 +55,9 @@ export function useVirtualScroll(options: UseVirtualScrollOptions): UseVirtualSc
|
|
|
55
55
|
const totalHeight = computed(() => {
|
|
56
56
|
return displayData.value.length * unitConvertWithDefault(itemHeight.value, { defaultUnit: 'rpx' })
|
|
57
57
|
})
|
|
58
|
+
const backToTopThresholdInPx = computed(() => {
|
|
59
|
+
return unitConvertWithDefault(backToTopThreshold.value, { defaultUnit: 'rpx' })
|
|
60
|
+
})
|
|
58
61
|
|
|
59
62
|
// 监听数据变化
|
|
60
63
|
watch(
|
|
@@ -73,6 +76,7 @@ export function useVirtualScroll(options: UseVirtualScrollOptions): UseVirtualSc
|
|
|
73
76
|
if (!virtual.value) {
|
|
74
77
|
// 非虚拟滚动模式:直接使用全部数据
|
|
75
78
|
virtualData.value = displayData.value
|
|
79
|
+
startIndex.value = 0
|
|
76
80
|
virtualOffsetY.value = 0
|
|
77
81
|
return
|
|
78
82
|
}
|
|
@@ -101,52 +105,74 @@ export function useVirtualScroll(options: UseVirtualScrollOptions): UseVirtualSc
|
|
|
101
105
|
if (!virtual.value) return // 非虚拟模式不处理
|
|
102
106
|
|
|
103
107
|
if (virtualEngine.value) {
|
|
104
|
-
const { visibleData, offsetY } = virtualEngine.value.updateVisibleData(_scrollTop.value || 0)
|
|
108
|
+
const { visibleData, offsetY, startIndex: engineStartIndex } = virtualEngine.value.updateVisibleData(_scrollTop.value || 0)
|
|
105
109
|
virtualData.value = visibleData
|
|
110
|
+
startIndex.value = engineStartIndex
|
|
106
111
|
virtualOffsetY.value = offsetY
|
|
107
112
|
}
|
|
108
113
|
}
|
|
109
114
|
|
|
115
|
+
function syncProgrammaticScrollState(scrollTopValue: number) {
|
|
116
|
+
_scrollTop.value = scrollTopValue
|
|
117
|
+
showBackTopBtn.value = scrollTopValue > backToTopThresholdInPx.value
|
|
118
|
+
updateVisibleData()
|
|
119
|
+
}
|
|
120
|
+
|
|
110
121
|
// 滚动事件处理
|
|
111
122
|
function onScroll(scrollTopValue: number) {
|
|
112
123
|
_scrollTop.value = scrollTopValue
|
|
113
|
-
showBackTopBtn.value = scrollTopValue >
|
|
124
|
+
showBackTopBtn.value = scrollTopValue > backToTopThresholdInPx.value
|
|
114
125
|
updateVisibleData()
|
|
115
126
|
}
|
|
116
127
|
|
|
117
128
|
// 滚动到顶部
|
|
118
129
|
function scrollToTop() {
|
|
119
|
-
|
|
120
|
-
nextTick(() => {
|
|
121
|
-
scrollTop.value = 0
|
|
122
|
-
})
|
|
130
|
+
scrollToPosition('0px')
|
|
123
131
|
}
|
|
124
132
|
|
|
125
133
|
// 滚动到底部
|
|
126
134
|
function scrollToBottom() {
|
|
127
|
-
scrollToPosition(totalHeight.value)
|
|
135
|
+
scrollToPosition(`${totalHeight.value}px`)
|
|
128
136
|
}
|
|
129
137
|
|
|
130
138
|
// 滚动到指定位置
|
|
131
139
|
function scrollToPosition(position: number | string) {
|
|
132
|
-
|
|
140
|
+
const targetScrollTop = unitConvertWithDefault(position, { defaultUnit: 'rpx' })
|
|
141
|
+
|
|
142
|
+
// scroll-view 在绑定值重复时可能不触发滚动,先同步当前真实滚动值再设置目标值
|
|
143
|
+
if (scrollTop.value === targetScrollTop) {
|
|
144
|
+
scrollTop.value = _scrollTop.value
|
|
145
|
+
nextTick(() => {
|
|
146
|
+
scrollTop.value = targetScrollTop
|
|
147
|
+
syncProgrammaticScrollState(targetScrollTop)
|
|
148
|
+
})
|
|
149
|
+
return
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
scrollTop.value = targetScrollTop
|
|
153
|
+
syncProgrammaticScrollState(targetScrollTop)
|
|
133
154
|
}
|
|
134
155
|
|
|
135
156
|
// 滚动到指定元素
|
|
136
157
|
function scrollToElement(item: any) {
|
|
137
|
-
const
|
|
138
|
-
if (
|
|
158
|
+
const targetId = item?.[idKey.value]
|
|
159
|
+
if (targetId === undefined || targetId === null) return
|
|
160
|
+
|
|
161
|
+
const index = data.value.findIndex((o) => o?.[idKey.value] === targetId)
|
|
162
|
+
if (index >= 0) {
|
|
139
163
|
const scrollDistance = unitConvertWithDefault(itemHeight.value, { defaultUnit: 'rpx' }) * index
|
|
140
|
-
scrollToPosition(scrollDistance)
|
|
164
|
+
scrollToPosition(`${scrollDistance}px`)
|
|
141
165
|
}
|
|
142
166
|
}
|
|
143
167
|
|
|
144
168
|
// 根据ID滚动到指定元素
|
|
145
169
|
function scrollToElementById(id: string | number) {
|
|
146
|
-
|
|
147
|
-
|
|
170
|
+
if (id === undefined || id === null) return
|
|
171
|
+
|
|
172
|
+
const index = data.value.findIndex((o) => o?.[idKey.value] === id)
|
|
173
|
+
if (index >= 0) {
|
|
148
174
|
const scrollDistance = unitConvertWithDefault(itemHeight.value, { defaultUnit: 'rpx' }) * index
|
|
149
|
-
scrollToPosition(scrollDistance)
|
|
175
|
+
scrollToPosition(`${scrollDistance}px`)
|
|
150
176
|
}
|
|
151
177
|
}
|
|
152
178
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
@include e(actions) {
|
|
75
|
-
padding:
|
|
75
|
+
padding: 20rpx 0;
|
|
76
76
|
max-height: 50vh;
|
|
77
77
|
overflow-y: auto;
|
|
78
78
|
-webkit-overflow-scrolling: touch;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
|
|
124
124
|
@include e(subname) {
|
|
125
125
|
display: inline-block;
|
|
126
|
-
margin-left:
|
|
126
|
+
margin-left: 12rpx;
|
|
127
127
|
font-size: $-action-sheet-subname-fs;
|
|
128
128
|
color: $-action-sheet-subname-color;
|
|
129
129
|
}
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
width: $-action-sheet-panel-img-fs;
|
|
204
204
|
height: $-action-sheet-panel-img-fs;
|
|
205
205
|
margin: 0 auto;
|
|
206
|
-
margin-bottom:
|
|
206
|
+
margin-bottom: 16rpx;
|
|
207
207
|
border-radius: $-action-sheet-panel-img-radius;
|
|
208
208
|
}
|
|
209
209
|
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
@include e(loading) {
|
|
100
|
-
margin-right:
|
|
100
|
+
margin-right: 12rpx;
|
|
101
101
|
animation: oxy-rotate 0.8s linear infinite;
|
|
102
102
|
animation-duration: 2s;
|
|
103
103
|
}
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
@include when(round) {
|
|
197
|
-
border-radius:
|
|
197
|
+
border-radius: $-button-round-radius;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
@include when(text) {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
@include e(tabs) {
|
|
64
64
|
width: 444rpx;
|
|
65
|
-
margin:
|
|
65
|
+
margin: 24rpx auto 28rpx;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@include e(shortcuts) {
|
|
@@ -88,30 +88,30 @@
|
|
|
88
88
|
display: flex;
|
|
89
89
|
justify-content: center;
|
|
90
90
|
align-items: center;
|
|
91
|
-
font-size:
|
|
91
|
+
font-size: $-fs-content;
|
|
92
92
|
|
|
93
93
|
@include when(monthrange) {
|
|
94
|
-
padding-bottom:
|
|
95
|
-
box-shadow:
|
|
94
|
+
padding-bottom: 24rpx;
|
|
95
|
+
box-shadow: $-calendar-panel-shadow-light;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
@include e(range-label-item) {
|
|
100
100
|
flex: 1;
|
|
101
|
-
color:
|
|
101
|
+
color: $-calendar-day-color;
|
|
102
102
|
|
|
103
103
|
@include when(placeholder) {
|
|
104
|
-
color:
|
|
104
|
+
color: $-calendar-disabled-color;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
@include e(range-sperator) {
|
|
109
109
|
margin: 0 48rpx;
|
|
110
|
-
color:
|
|
110
|
+
color: $-calendar-disabled-color;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
@include e(confirm) {
|
|
114
|
-
padding:
|
|
114
|
+
padding: 28rpx 52rpx 32rpx;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
@include edeep(cell) {
|
|
@@ -155,4 +155,4 @@
|
|
|
155
155
|
color: $-cell-clear-color;
|
|
156
156
|
line-height: $-cell-line-height;
|
|
157
157
|
}
|
|
158
|
-
}
|
|
158
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@include e(weeks) {
|
|
11
|
-
box-shadow:
|
|
11
|
+
box-shadow: $-calendar-panel-shadow-dark;
|
|
12
12
|
color: $-dark-color;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -25,18 +25,17 @@
|
|
|
25
25
|
font-size: $-calendar-fs;
|
|
26
26
|
|
|
27
27
|
@include e(title) {
|
|
28
|
-
padding:
|
|
28
|
+
padding: 16rpx 24rpx;
|
|
29
29
|
text-align: center;
|
|
30
30
|
font-size: $-calendar-panel-title-fs;
|
|
31
31
|
color: $-calendar-panel-title-color;
|
|
32
|
-
padding: $-calendar-panel-padding;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
@include e(weeks) {
|
|
36
35
|
display: flex;
|
|
37
36
|
height: $-calendar-week-height;
|
|
38
37
|
line-height: $-calendar-week-height;
|
|
39
|
-
box-shadow:
|
|
38
|
+
box-shadow: $-calendar-panel-shadow-light;
|
|
40
39
|
color: $-calendar-week-color;
|
|
41
40
|
font-size: $-calendar-week-fs;
|
|
42
41
|
padding: $-calendar-panel-padding;
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
|
|
55
54
|
@include e(time) {
|
|
56
55
|
display: flex;
|
|
57
|
-
box-shadow:
|
|
56
|
+
box-shadow: $-calendar-panel-shadow-reverse-light;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
@include e(time-label) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@include b(year-panel) {
|
|
6
6
|
@include e(title) {
|
|
7
7
|
color: $-dark-color;
|
|
8
|
-
box-shadow:
|
|
8
|
+
box-shadow: $-calendar-panel-shadow-dark;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
padding: $-calendar-panel-padding;
|
|
16
16
|
|
|
17
17
|
@include e(title) {
|
|
18
|
-
padding:
|
|
18
|
+
padding: 16rpx 0;
|
|
19
19
|
text-align: center;
|
|
20
20
|
font-size: $-calendar-panel-title-fs;
|
|
21
21
|
color: $-calendar-panel-title-color;
|
|
22
|
-
box-shadow:
|
|
22
|
+
box-shadow: $-calendar-panel-shadow-light;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
|
|
40
40
|
@include when(button) {
|
|
41
41
|
.oxy-checkbox__label {
|
|
42
|
-
border-color:
|
|
43
|
-
background:
|
|
42
|
+
border-color: $-color-gray-5;
|
|
43
|
+
background: $-dark-border-color;
|
|
44
44
|
color: $-dark-color-gray;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@include when(checked) {
|
|
48
48
|
.oxy-checkbox__label {
|
|
49
|
-
border-color:
|
|
50
|
-
background:
|
|
51
|
-
color:
|
|
49
|
+
border-color: $-color-gray-5;
|
|
50
|
+
background: $-dark-border-color;
|
|
51
|
+
color: $-color-gray-5;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
@include e(txt) {
|
|
116
116
|
display: inline-block;
|
|
117
117
|
vertical-align: middle;
|
|
118
|
-
line-height:
|
|
118
|
+
line-height: 48rpx;
|
|
119
119
|
@include lineEllipsis;
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
height: $-checkbox-button-height;
|
|
212
212
|
font-size: $-checkbox-button-font-size;
|
|
213
213
|
margin-left: 0;
|
|
214
|
-
padding:
|
|
214
|
+
padding: 16rpx 32rpx;
|
|
215
215
|
border: 1px solid $-checkbox-button-border;
|
|
216
216
|
background-color: $-checkbox-button-bg;
|
|
217
217
|
border-radius: $-checkbox-button-radius;
|
|
@@ -276,11 +276,11 @@
|
|
|
276
276
|
|
|
277
277
|
// 以下内容用于解决父子组件样式隔离的问题 —— START
|
|
278
278
|
@include when(cell-box) {
|
|
279
|
-
padding:
|
|
279
|
+
padding: 32rpx 32rpx;
|
|
280
280
|
margin: 0;
|
|
281
281
|
|
|
282
282
|
@include when(large) {
|
|
283
|
-
padding:
|
|
283
|
+
padding: 32rpx 32rpx;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
@include b(checkbox-group) {
|
|
10
10
|
background-color: $-checkbox-bg;
|
|
11
11
|
|
|
12
|
-
//
|
|
12
|
+
// 顶部与两侧留白适当放大,避免按钮组在16px基准字号下过于紧凑
|
|
13
13
|
@include when(button) {
|
|
14
14
|
width: 100%;
|
|
15
|
-
padding:
|
|
15
|
+
padding: 24rpx 32rpx 40rpx 32rpx;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
height: auto;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
@include e(selected-line) {
|
|
97
97
|
position: absolute;
|
|
98
|
-
bottom:
|
|
98
|
+
bottom: 12rpx;
|
|
99
99
|
width: $-col-picker-line-width;
|
|
100
100
|
left: 0;
|
|
101
101
|
height: $-col-picker-line-height;
|
|
@@ -141,13 +141,13 @@
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
@include e(list-item-tip) {
|
|
144
|
-
margin-top:
|
|
144
|
+
margin-top: 8rpx;
|
|
145
145
|
font-size: $-col-picker-list-fs-tip;
|
|
146
146
|
color: $-col-picker-list-color-tip;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
@include e(confirm) {
|
|
150
|
-
padding:
|
|
150
|
+
padding: 28rpx 52rpx 32rpx;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
@include edeep(checked) {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
@include edeep(popup) {
|
|
88
|
-
border-radius:
|
|
88
|
+
border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
@include e(wraper) {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
font-size: $-picker-toolbar-fs;
|
|
111
111
|
color: $-picker-toolbar-finish-color;
|
|
112
112
|
background: transparent;
|
|
113
|
-
padding: 48rpx
|
|
113
|
+
padding: 48rpx 32rpx 32rpx 32rpx;
|
|
114
114
|
|
|
115
115
|
@include m(cancel) {
|
|
116
116
|
color: $-picker-toolbar-cancel-color;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
display: inline-block;
|
|
136
136
|
color: $-picker-region-color;
|
|
137
137
|
text-align: center;
|
|
138
|
-
padding:
|
|
138
|
+
padding: 32rpx 0;
|
|
139
139
|
font-size: $-picker-region-fs;
|
|
140
140
|
line-height: 32rpx;
|
|
141
141
|
transition: all 0.15s ease-out;
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
@include e(region-time) {
|
|
150
|
-
font-size:
|
|
151
|
-
margin-top:
|
|
150
|
+
font-size: $-picker-region-time-fs;
|
|
151
|
+
margin-top: 8rpx;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
@include e(hidden) {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@include e(list) {
|
|
27
27
|
display: flex;
|
|
28
28
|
text-align: center;
|
|
29
|
-
background-color:
|
|
29
|
+
background-color: $-drop-menu-bg;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@include e(item) {
|
|
@@ -85,6 +85,6 @@
|
|
|
85
85
|
|
|
86
86
|
@include edeep(arrow) {
|
|
87
87
|
font-size: $-drop-menu-arrow-fs;
|
|
88
|
-
margin-left:
|
|
88
|
+
margin-left: 8rpx;
|
|
89
89
|
}
|
|
90
|
-
}
|
|
90
|
+
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
22
|
border: 1px solid $-color-border;
|
|
23
|
-
border-radius:
|
|
23
|
+
border-radius: $-file-list-card-radius;
|
|
24
24
|
position: relative;
|
|
25
25
|
}
|
|
26
26
|
@include e(picture) {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
display: block;
|
|
29
29
|
width: 100%;
|
|
30
30
|
height: 100%;
|
|
31
|
-
border-radius:
|
|
31
|
+
border-radius: $-file-list-card-radius;
|
|
32
32
|
}
|
|
33
33
|
@include e(icon) {
|
|
34
34
|
width: 64rpx;
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
@include e(name) {
|
|
38
38
|
display: block;
|
|
39
39
|
width: 100%;
|
|
40
|
-
font-size: $-
|
|
41
|
-
color: $-
|
|
42
|
-
padding: 0
|
|
40
|
+
font-size: $-file-list-file-name-fs;
|
|
41
|
+
color: $-file-list-file-name-color;
|
|
42
|
+
padding: 0 12rpx;
|
|
43
43
|
text-align: center;
|
|
44
|
-
margin-top:
|
|
44
|
+
margin-top: 20rpx;
|
|
45
45
|
white-space: nowrap;
|
|
46
46
|
overflow: hidden;
|
|
47
47
|
text-overflow: ellipsis;
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
margin: 0;
|
|
60
60
|
.oxy-file-list__list--item {
|
|
61
61
|
width: 100%;
|
|
62
|
-
background:
|
|
63
|
-
padding:
|
|
64
|
-
border-radius:
|
|
62
|
+
background: $-file-list-bg;
|
|
63
|
+
padding: 20rpx 24rpx;
|
|
64
|
+
border-radius: $-file-list-list-item-radius;
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: row;
|
|
67
67
|
align-items: center;
|
|
68
68
|
.oxy-file-list__icon {
|
|
69
69
|
width: 48rpx;
|
|
70
70
|
height: 48rpx;
|
|
71
|
-
margin-right:
|
|
71
|
+
margin-right: 20rpx;
|
|
72
72
|
}
|
|
73
73
|
.oxy-file-list__name {
|
|
74
74
|
flex: 1;
|
|
@@ -77,27 +77,27 @@
|
|
|
77
77
|
padding: 0;
|
|
78
78
|
}
|
|
79
79
|
.oxy-file-list__download {
|
|
80
|
-
font-size:
|
|
81
|
-
color: $-
|
|
80
|
+
font-size: $-file-list-action-icon-size;
|
|
81
|
+
color: $-file-list-action-icon-color;
|
|
82
82
|
}
|
|
83
83
|
.oxy-file-list__delete {
|
|
84
|
-
font-size:
|
|
85
|
-
color: $-
|
|
84
|
+
font-size: $-file-list-action-icon-size;
|
|
85
|
+
color: $-file-list-action-icon-color;
|
|
86
86
|
margin-left: 24rpx;
|
|
87
87
|
}
|
|
88
88
|
& + .oxy-file-list__list--item {
|
|
89
|
-
margin-top:
|
|
89
|
+
margin-top: 20rpx;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.oxy-file-list__download-btn {
|
|
95
95
|
position: absolute;
|
|
96
|
-
top:
|
|
97
|
-
right:
|
|
98
|
-
background:
|
|
99
|
-
border-radius:
|
|
100
|
-
padding:
|
|
96
|
+
top: 16rpx;
|
|
97
|
+
right: 16rpx;
|
|
98
|
+
background: $-file-list-download-bg;
|
|
99
|
+
border-radius: $-file-list-card-radius;
|
|
100
|
+
padding: 12rpx 16rpx;
|
|
101
101
|
display: flex;
|
|
102
102
|
}
|
|
103
103
|
.oxy-file-list__download {
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
box-sizing: content-box;
|
|
14
14
|
height: 100%;
|
|
15
15
|
width: 100%;
|
|
16
|
-
border: 1px dashed
|
|
17
|
-
border-radius:
|
|
16
|
+
border: 1px dashed $-guide-highlight-border-color;
|
|
17
|
+
border-radius: $-guide-highlight-radius;
|
|
18
18
|
position: absolute;
|
|
19
19
|
top: -8rpx;
|
|
20
20
|
left: -8rpx;
|
|
21
|
-
padding:
|
|
21
|
+
padding: 8rpx;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@include e(arrow) {
|
|
25
25
|
height: 20rpx;
|
|
26
26
|
width: 20rpx;
|
|
27
|
-
background:
|
|
27
|
+
background: $-guide-tip-bg;
|
|
28
28
|
position: absolute;
|
|
29
29
|
top: 144rpx;
|
|
30
30
|
left: 45%;
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
|
|
35
35
|
@include e(tips) {
|
|
36
36
|
width: 400rpx;
|
|
37
|
-
box-shadow:
|
|
38
|
-
color:
|
|
37
|
+
box-shadow: $-guide-tip-shadow;
|
|
38
|
+
color: $-guide-tip-color;
|
|
39
39
|
position: absolute;
|
|
40
40
|
top: 152rpx;
|
|
41
41
|
z-index: 10001;
|
|
42
|
-
padding:
|
|
43
|
-
font-size:
|
|
44
|
-
border-radius:
|
|
42
|
+
padding: 16rpx 20rpx;
|
|
43
|
+
font-size: $-fs-content;
|
|
44
|
+
border-radius: $-guide-tip-radius;
|
|
45
45
|
text-align: justify;
|
|
46
46
|
|
|
47
47
|
@include e(tool-btn) {
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
margin-top: 20rpx;
|
|
53
53
|
|
|
54
54
|
@include e(next) {
|
|
55
|
-
background:
|
|
55
|
+
background: $-guide-tip-action-bg;
|
|
56
56
|
height: 48rpx;
|
|
57
57
|
width: 100rpx;
|
|
58
58
|
text-align: center;
|
|
59
|
-
border-radius:
|
|
60
|
-
color:
|
|
59
|
+
border-radius: $-guide-tip-action-radius;
|
|
60
|
+
color: $-guide-tip-action-color;
|
|
61
61
|
line-height: 48rpx;
|
|
62
|
-
font-size:
|
|
62
|
+
font-size: $-fs-secondary;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|