Skip to content

Commit

Permalink
swiper: add event:on-get-height #2112
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Oct 24, 2017
1 parent 3395046 commit 1b65a3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/swiper/metas.yml
Expand Up @@ -102,12 +102,20 @@ props:
default: 0
en: index value, use `v-model` for binding
zh-CN: index 绑定,使用`v-model`,一般不需要绑定
events:
on-get-height:
version: next
params: '`(height)`'
en: emits after height is caculated
zh-CN: 高度获取后触发
changes:
next:
en:
- '[enhance] set shorter distance for first and last item for better experience'
- '[feature] add event:on-get-height #2112'
zh-CN:
- '[enhance] 非循环模式下对第一张和最后一张使用更短的拖动距离'
- '[feature] 添加事件 event:on-get-height #2112'
v2.6.0:
en:
- '[enhance] support fallbackImg for prop:list #1923'
Expand Down
1 change: 1 addition & 0 deletions src/components/swiper/swiper.vue
Expand Up @@ -54,6 +54,7 @@ export default {
this.render(this.index)
}
this.xheight = this.getHeight()
this.$emit('on-get-height', xheight)
})
},
methods: {
Expand Down

0 comments on commit 1b65a3c

Please sign in to comment.