h***@qq.com
h***@qq.com
  • 发布:2020-03-29 18:07
  • 更新:2020-03-29 19:24
  • 阅读:529

#插件讨论# 【 Popup 自定义弹出层特效 - 柠檬丶 】自定义位置不生效

分类:uni-app

自定义位置怎么不生效呢

2020-03-29 18:07 负责人:无 分享
已邀请:
柠檬丶

柠檬丶 - 柠檬丶

加我微信或者QQ 给一份实例代码

h***@qq.com

h***@qq.com (作者)

<openAlert ref="openAlert" :AlertClass="AlertClass" :CustomPosition="pos">
<uni-list>
<uni-list-item @tap="edit" title="编辑" :showArrow="false"></uni-list-item>
<uni-list-item @tap="chuan" title="传递" :showArrow="false"></uni-list-item>
</uni-list>
</openAlert>

openinfo: function(e) {

            console.log(e);  
            this.selfile=e.currentTarget.dataset.item;  
            this.$nextTick(function() {  
                this.AlertClass = 0;  

                this.pos = {top:"20px"};  
                this.$nextTick(function() {  
                    this.$refs.openAlert.Show();  
                });  
            });  
        },

该问题目前已经被锁定, 无法添加新回复