list不存在自定义重用标识,每次都是重新移除/添加控件到Cell上面,而且不支持Group类型的list
http://dotwe.org/vue/035a0ee995d71c510161cba6e123d818
选项卡左右滑动切换类型页面
https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-page/
左右上下弹出控件
https://alibaba.github.io/weex-ui/#/cn/packages/wxc-popup/
weex动画使用animation.transition函数
http://dotwe.org/vue/3e8660d7182f24901f122a0855c09370
https://www.jianshu.com/p/ab3e9f06f106
<script> const animation = weex.requireModule(‘animation‘) const modal = weex.requireModule(‘modal‘) export default { data: function () { return { current_rotate: 0 } }, mounted () { let that = this let el = this.$refs.test setInterval(function () { that.rotate(el) }, 600) }, methods: { rotate (el) { let self = this; this.current_rotate+=360; animation.transition(el, { styles: { color: ‘#FF0000‘, transform: ‘rotate(‘ + self.current_rotate + ‘deg)‘, transformOrigin: ‘center center‘ }, duration: 600, //ms timingFunction: ‘ease‘, delay: 0 //ms },function () { }) } } } </script>
原文:https://www.cnblogs.com/yuxiaoyiyou/p/10592948.html