智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/04/049d55aaff8be832e63fc6d7e6d...

43 lines
728 B

<template>
<uni-swiper-item v-on="$listeners">
<slot />
</uni-swiper-item>
</template>
<script>
export default {
name: 'SwiperItem',
props: {
itemId: {
type: String,
default: ''
}
},
mounted: function () {
var $el = this.$el
$el.style.position = 'absolute'
$el.style.width = '100%'
$el.style.height = '100%'
var callbacks = this.$vnode._callbacks
if (callbacks) {
callbacks.forEach(callback => {
callback()
})
}
}
}
</script>
<style>
uni-swiper-item {
display: block;
overflow: hidden;
will-change: transform;
position: absolute;
width: 100%;
height: 100%;
cursor: grab;
}
uni-swiper-item[hidden] {
display: none;
}
</style>