首页 > 其他 > 详细

Weex开发中的应用小笔记

时间:2019-03-25 12:49:33      阅读:163      评论:0      收藏:0      [点我收藏+]

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>

 

Weex开发中的应用小笔记

原文:https://www.cnblogs.com/yuxiaoyiyou/p/10592948.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!