sadais-piui 1.2.7-beta15 → 1.2.7-beta151
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/.prettierrc +8 -0
- package/components/pi-action-sheet/index.vue +260 -247
- package/components/pi-badge/index.vue +11 -1
- package/components/pi-bottom-bar/index.vue +1 -1
- package/components/pi-calendar/index.vue +207 -182
- package/components/pi-calendar-input/index.vue +61 -30
- package/components/pi-calendar-panel/components/calendar-days/index.vue +91 -52
- package/components/pi-calendar-panel/index.vue +28 -12
- package/components/pi-canvas/index.vue +8 -1
- package/components/pi-cascader/index.vue +601 -0
- package/components/pi-checkbox/index.vue +8 -4
- package/components/pi-checkbox-group/index.vue +12 -11
- package/components/pi-circle-progress/index.vue +53 -16
- package/components/pi-code-input/index.vue +11 -3
- package/components/pi-collapse/index.vue +16 -6
- package/components/pi-collapse-item/index.vue +35 -22
- package/components/pi-date-picker/index.vue +512 -391
- package/components/pi-date-picker-input/index.vue +61 -30
- package/components/pi-dropdown/components/dropdown-tab.vue +33 -23
- package/components/pi-dropdown/index.vue +34 -19
- package/components/pi-dropdown-item/index.vue +70 -58
- package/components/pi-form-item/index.vue +98 -20
- package/components/pi-grid/index.vue +1 -1
- package/components/pi-grid-item/index.vue +4 -4
- package/components/pi-img/index.vue +275 -267
- package/components/pi-img-cropper/index.vue +6 -3
- package/components/pi-input/index.vue +97 -36
- package/components/pi-list-item/index.vue +1 -1
- package/components/pi-marquee/index.vue +322 -310
- package/components/pi-marquee-pure-css/index.vue +267 -0
- package/components/pi-mask/index.vue +3 -1
- package/components/pi-modal/index.vue +311 -303
- package/components/pi-pagination/index.vue +13 -0
- package/components/pi-picker/index.vue +332 -317
- package/components/pi-popup/index.vue +4 -1
- package/components/pi-popup-select/index.vue +13 -4
- package/components/pi-radio/index.vue +12 -11
- package/components/pi-radio-group/index.vue +25 -5
- package/components/pi-regions-select/index.vue +6 -1
- package/components/pi-regions-select-input/index.vue +69 -31
- package/components/pi-search/index.vue +37 -2
- package/components/pi-section/index.vue +1 -1
- package/components/pi-select/index.vue +237 -22
- package/components/pi-select-input/index.vue +106 -41
- package/components/pi-stepper/index.vue +135 -121
- package/components/pi-steps/index.vue +115 -36
- package/components/pi-swiper/index.vue +22 -7
- package/components/pi-switch/index.vue +5 -1
- package/components/pi-table/index.vue +351 -0
- package/components/pi-tabs/index.vue +46 -10
- package/components/pi-upload-img/index.vue +895 -44
- package/components/pi-webview/index.vue +95 -82
- package/config/actionSheet.js +0 -1
- package/config/calendarInput.js +2 -1
- package/config/calendarPanel.js +2 -1
- package/config/cascader.js +22 -0
- package/config/circleProgress.js +12 -4
- package/config/codeInput.js +2 -1
- package/config/datePicker.js +29 -24
- package/config/datePickerInput.js +2 -1
- package/config/dropdown.js +3 -1
- package/config/input.js +5 -3
- package/config/marqueePureCss.js +18 -0
- package/config/regionsSelectInput.js +2 -1
- package/config/select.js +13 -1
- package/config/selectInput.js +2 -1
- package/config/steps.js +1 -1
- package/config/table.js +9 -0
- package/config/uploadImg.js +33 -11
- package/mixin/emitter.js +8 -1
- package/mixin/value-sync.js +5 -0
- package/package.json +5 -2
- package/scss/common.scss +11 -14
- package/scss/icon/icon.scss +2 -1
- package/scss/mixin.scss +5 -5
|
@@ -1,310 +1,322 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
:style="[customStyle]"
|
|
4
|
-
class="marquee-container"
|
|
5
|
-
:class="[customClass, isVertical ? 'vertical' : '']"
|
|
6
|
-
@mouseenter="handlePause"
|
|
7
|
-
@mouseleave="handleStart"
|
|
8
|
-
@touchmove.stop.prevent="() => {}"
|
|
9
|
-
@mousewheel.stop.prevent="() => {}"
|
|
10
|
-
>
|
|
11
|
-
<view class="inner-wrap" :class="direction" :style="[animate]">
|
|
12
|
-
<view
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
return
|
|
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
|
-
|
|
169
|
-
|
|
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
|
-
|
|
215
|
-
.
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.marquee-container
|
|
236
|
-
|
|
237
|
-
height:
|
|
238
|
-
white-space:
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
transform: translateX(-50%);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
transform:
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
transform: translateY(0
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}
|
|
310
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
:style="[customStyle]"
|
|
4
|
+
class="marquee-container"
|
|
5
|
+
:class="[customClass, isVertical ? 'vertical' : '']"
|
|
6
|
+
@mouseenter="handlePause"
|
|
7
|
+
@mouseleave="handleStart"
|
|
8
|
+
@touchmove.stop.prevent="() => {}"
|
|
9
|
+
@mousewheel.stop.prevent="() => {}"
|
|
10
|
+
>
|
|
11
|
+
<view class="inner-wrap" :class="direction" :style="[animate]">
|
|
12
|
+
<view
|
|
13
|
+
v-for="(marqueeItems, index) in getItems"
|
|
14
|
+
:key="index"
|
|
15
|
+
class="inner"
|
|
16
|
+
>
|
|
17
|
+
<view
|
|
18
|
+
v-for="(item, idx) in marqueeItems"
|
|
19
|
+
:key="idx"
|
|
20
|
+
class="marquee-item"
|
|
21
|
+
:class="{ vertical: isVertical }"
|
|
22
|
+
:style="[getItemStyle]"
|
|
23
|
+
>
|
|
24
|
+
<!-- item插槽 -->
|
|
25
|
+
<slot name="item" :item="item">
|
|
26
|
+
<view>{{ item }}</view>
|
|
27
|
+
</slot>
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import { getConfig } from '../../config'
|
|
36
|
+
|
|
37
|
+
const TAG = 'PiMarquee'
|
|
38
|
+
const { marquee } = getConfig()
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
name: 'PiMarquee',
|
|
42
|
+
props: {
|
|
43
|
+
customStyle: {
|
|
44
|
+
type: Object,
|
|
45
|
+
// {}
|
|
46
|
+
default() {
|
|
47
|
+
return marquee.customStyle
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
// 自定义样式类
|
|
51
|
+
customClass: {
|
|
52
|
+
type: String,
|
|
53
|
+
// ''
|
|
54
|
+
default() {
|
|
55
|
+
return marquee.customClass
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
// 控制滚动方向方向
|
|
59
|
+
direction: {
|
|
60
|
+
// `'lr'`、`'rl'`、`'tb'`、`'bt'`
|
|
61
|
+
type: String,
|
|
62
|
+
// `'rl'`
|
|
63
|
+
default: marquee.direction
|
|
64
|
+
},
|
|
65
|
+
// 动画移动速度:每秒移动多少像素
|
|
66
|
+
speed: {
|
|
67
|
+
type: Number,
|
|
68
|
+
// 100
|
|
69
|
+
default: marquee.speed
|
|
70
|
+
},
|
|
71
|
+
// 是否支持鼠标移上去暂停滚动
|
|
72
|
+
hoverPause: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
// true
|
|
75
|
+
default: marquee.hoverPause
|
|
76
|
+
},
|
|
77
|
+
// 轮播数据
|
|
78
|
+
items: {
|
|
79
|
+
type: Array,
|
|
80
|
+
// `[]`
|
|
81
|
+
default: () => marquee.items
|
|
82
|
+
},
|
|
83
|
+
// 每个item是否占据整个宽度
|
|
84
|
+
itemFullWidth: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
// false
|
|
87
|
+
default: marquee.itemFullWidth
|
|
88
|
+
},
|
|
89
|
+
// 延迟多少毫秒后开始滚动
|
|
90
|
+
runDelay: {
|
|
91
|
+
type: [Number, String],
|
|
92
|
+
// 500
|
|
93
|
+
default: marquee.runDelay
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
data() {
|
|
97
|
+
return {
|
|
98
|
+
animate: {},
|
|
99
|
+
containerWidth: 'auto',
|
|
100
|
+
cloneItems: false
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
computed: {
|
|
104
|
+
isVertical() {
|
|
105
|
+
return ['tb', 'bt'].includes(this.direction)
|
|
106
|
+
},
|
|
107
|
+
getItemStyle() {
|
|
108
|
+
const style = {}
|
|
109
|
+
if (this.itemFullWidth && this.containerWidth !== 'auto') {
|
|
110
|
+
style.width = `${this.containerWidth}px`
|
|
111
|
+
}
|
|
112
|
+
return style
|
|
113
|
+
},
|
|
114
|
+
getItems() {
|
|
115
|
+
if (!this.cloneItems) return [this.items]
|
|
116
|
+
return [this.items, this.items]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
watch: {
|
|
120
|
+
customStyle() {
|
|
121
|
+
this.init()
|
|
122
|
+
},
|
|
123
|
+
customClass() {
|
|
124
|
+
this.init()
|
|
125
|
+
},
|
|
126
|
+
direction() {
|
|
127
|
+
this.init()
|
|
128
|
+
},
|
|
129
|
+
speed: {
|
|
130
|
+
immediate: true,
|
|
131
|
+
handler() {
|
|
132
|
+
this.handlePause()
|
|
133
|
+
this.init()
|
|
134
|
+
this.handleStart()
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
items: {
|
|
138
|
+
immediate: true,
|
|
139
|
+
handler(newValue, oldValue) {
|
|
140
|
+
if (JSON.stringify(newValue) === JSON.stringify(oldValue)) {
|
|
141
|
+
return
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
this.handlePause()
|
|
145
|
+
this.init()
|
|
146
|
+
this.handleStart()
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
mounted() {
|
|
151
|
+
window && window.addEventListener('resize', this.init)
|
|
152
|
+
},
|
|
153
|
+
beforeDestroy() {
|
|
154
|
+
window && window.removeEventListener('resize', this.init)
|
|
155
|
+
},
|
|
156
|
+
methods: {
|
|
157
|
+
/**
|
|
158
|
+
* @vuese
|
|
159
|
+
* 暂停动画
|
|
160
|
+
* @arg 无
|
|
161
|
+
*/
|
|
162
|
+
handlePause() {
|
|
163
|
+
if (!this.hoverPause) {
|
|
164
|
+
return
|
|
165
|
+
}
|
|
166
|
+
this.$set(this.animate, 'animationPlayState', 'paused')
|
|
167
|
+
},
|
|
168
|
+
/**
|
|
169
|
+
* @vuese
|
|
170
|
+
* 开始动画 重新计算动画时间
|
|
171
|
+
* @arg 无
|
|
172
|
+
*/
|
|
173
|
+
handleStart() {
|
|
174
|
+
if (!this.hoverPause) {
|
|
175
|
+
return
|
|
176
|
+
}
|
|
177
|
+
setTimeout(() => {
|
|
178
|
+
this.$set(this.animate, 'animationPlayState', 'running')
|
|
179
|
+
}, parseInt(this.runDelay, 10))
|
|
180
|
+
},
|
|
181
|
+
init() {
|
|
182
|
+
this.$nextTick(async () => {
|
|
183
|
+
const rect = await this.$pi.common.queryRect(
|
|
184
|
+
this,
|
|
185
|
+
'.marquee-container',
|
|
186
|
+
false
|
|
187
|
+
)
|
|
188
|
+
this.containerWidth = rect.width
|
|
189
|
+
const containerHeight = rect.height
|
|
190
|
+
const inner = await this.$pi.common.queryRect(this, '.inner', false)
|
|
191
|
+
|
|
192
|
+
if (!inner) {
|
|
193
|
+
// 没有marquee-item 则直接停止动画 隐藏拷贝
|
|
194
|
+
this.handlePause()
|
|
195
|
+
this.cloneItems = false
|
|
196
|
+
return
|
|
197
|
+
}
|
|
198
|
+
if (!this.isVertical) {
|
|
199
|
+
console.log(TAG, '横向滚动', inner.width, this.containerWidth)
|
|
200
|
+
// 横向滚动
|
|
201
|
+
if (!this.itemFullWidth && inner.width < this.containerWidth) {
|
|
202
|
+
this.handlePause()
|
|
203
|
+
this.cloneItems = false
|
|
204
|
+
} else {
|
|
205
|
+
const time = inner.width / this.speed
|
|
206
|
+
this.$set(this.animate, 'animationDuration', `${time}s`)
|
|
207
|
+
this.cloneItems = true
|
|
208
|
+
}
|
|
209
|
+
} else {
|
|
210
|
+
// 纵向滚动
|
|
211
|
+
if (inner.height < containerHeight) {
|
|
212
|
+
this.$set(this.animate, 'animationPlayState', 'paused')
|
|
213
|
+
this.cloneItems = false
|
|
214
|
+
} else {
|
|
215
|
+
const time = inner.height / this.speed
|
|
216
|
+
this.$set(this.animate, 'animationDuration', `${time}s`)
|
|
217
|
+
this.cloneItems = true
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
})
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
</script>
|
|
225
|
+
|
|
226
|
+
<style lang="scss" scoped>
|
|
227
|
+
.marquee-container {
|
|
228
|
+
width: 100%;
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
font-size: 0;
|
|
231
|
+
white-space: nowrap;
|
|
232
|
+
background: #ffffff;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.marquee-container .inner {
|
|
236
|
+
display: inline-block;
|
|
237
|
+
height: 100%;
|
|
238
|
+
white-space: nowrap;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.marquee-container.vertical {
|
|
242
|
+
height: 100%;
|
|
243
|
+
overflow: hidden auto;
|
|
244
|
+
white-space: normal;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.marquee-container.vertical .inner {
|
|
248
|
+
width: 100%;
|
|
249
|
+
height: auto;
|
|
250
|
+
white-space: normal;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.inner-wrap {
|
|
254
|
+
display: inline-block;
|
|
255
|
+
white-space: nowrap;
|
|
256
|
+
|
|
257
|
+
&.lr {
|
|
258
|
+
animation: roll-lr 0s linear infinite;
|
|
259
|
+
}
|
|
260
|
+
&.rl {
|
|
261
|
+
animation: roll-rl 0s linear infinite;
|
|
262
|
+
}
|
|
263
|
+
&.tb {
|
|
264
|
+
animation: roll-tb 0s linear infinite;
|
|
265
|
+
}
|
|
266
|
+
&.bt {
|
|
267
|
+
animation: roll-bt 0s linear infinite;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.marquee-container.vertical > .inner-wrap {
|
|
272
|
+
width: 100%;
|
|
273
|
+
white-space: normal;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
@keyframes roll-lr {
|
|
277
|
+
0% {
|
|
278
|
+
transform: translateX(-50%);
|
|
279
|
+
}
|
|
280
|
+
100% {
|
|
281
|
+
transform: translateX(0%);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
@keyframes roll-rl {
|
|
286
|
+
0% {
|
|
287
|
+
transform: translateX(0);
|
|
288
|
+
}
|
|
289
|
+
100% {
|
|
290
|
+
transform: translateX(-50%);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@keyframes roll-bt {
|
|
295
|
+
0% {
|
|
296
|
+
transform: translateY(0);
|
|
297
|
+
}
|
|
298
|
+
100% {
|
|
299
|
+
transform: translateY(-50%);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@keyframes roll-tb {
|
|
304
|
+
0% {
|
|
305
|
+
transform: translateY(-50%);
|
|
306
|
+
}
|
|
307
|
+
100% {
|
|
308
|
+
transform: translateY(0%);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.marquee-item {
|
|
313
|
+
position: relative;
|
|
314
|
+
display: inline-block;
|
|
315
|
+
font-size: 28rpx;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.marquee-item.vertical {
|
|
319
|
+
width: 100%;
|
|
320
|
+
height: auto;
|
|
321
|
+
}
|
|
322
|
+
</style>
|