Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrRaindrop/3d7b5d9b69b6eb79bb084f15a840b858 to your computer and use it in GitHub Desktop.
Save MrRaindrop/3d7b5d9b69b6eb79bb084f15a840b858 to your computer and use it in GitHub Desktop.
weex-vue2: a demo for animation.transition of translateX.
<template>
<scroller>
<text>{{constr}}</text>
</scroller>
</template>
<script>
module.exports = {
data () {
return { constr: 'list' }
},
beforeCreate () {
this.constr = this.$options.components.list
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment