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.
28 lines
600 B
28 lines
600 B
function getSwiperItem (weex) {
|
|
return {
|
|
name: 'SwiperItem',
|
|
props: {
|
|
itemId: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
},
|
|
render (createElement) {
|
|
return createElement('div', this._g({
|
|
staticClass: ['uni-swiper-item'],
|
|
staticStyle: {
|
|
position: 'absolute',
|
|
left: 0,
|
|
top: 0,
|
|
right: 0,
|
|
bottom: 0,
|
|
overflow: 'hidden'
|
|
}
|
|
}, this.$listeners), this._t('default'), 2)
|
|
}
|
|
}
|
|
}
|
|
|
|
export default function init (Vue, weex) {
|
|
Vue.component('swiper-item', getSwiperItem(weex))
|
|
}
|
|
|