Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

wxc-mask content内容 绑定data数据 #111

Closed
wilson-0422 opened this issue Jan 4, 2018 · 8 comments
Closed

wxc-mask content内容 绑定data数据 #111

wilson-0422 opened this issue Jan 4, 2018 · 8 comments

Comments

@wilson-0422
Copy link

content的通过data绑定的数据,再通过click来改变的时候,会让wxc的弹框消失
//html
<wxc-mask height="800"
width="702"
border-radius="0"
duration="300"
mask-bg-color="#FFFFFF"
:has-overlay="true"
:show-close="true"
:show="show"
:has-animation="hasAnimation"
@wxcMaskSetHidden="wxcMaskSetHidden">






{{input_text}}
<div class="grid-option" @click="edit_input(1)" bubble="false">1

//.js
edit_input (e) {
this.input_text = '2323'
console.log(this.input_text)
},

点击事件去改变this的data值,渲染页面的时候,会让弹框消失

@tw93
Copy link
Member

tw93 commented Jan 6, 2018

Thank you for your feedback. I've been working on a forthcoming release, and you can upgrade to [email protected] for the time being.

npm i [email protected] -S

@tw93 tw93 closed this as completed Jan 6, 2018
@wilson-0422
Copy link
Author

wilson-0422 commented Jan 8, 2018

真机测试。。。弹框会有闪屏……(通过this的setData改变弹框内容的时候,会有闪屏)

@tw93
Copy link
Member

tw93 commented Jan 8, 2018

try :has-animation="false"

@wilson-0422
Copy link
Author

那不是用不了动画了……
:hack="shouldShow"
这个是什么机制?好像是这个影响的

@esappear
Copy link

esappear commented Feb 7, 2018

闪屏的问题只能靠把动画禁掉解决吗?而且即便禁掉动画,弹窗内部数据更新的时候还是会闪屏。

@DorisOu
Copy link

DorisOu commented Aug 16, 2019

@wilson-0422 :hack="shouldShow" 是那个weex-ui组件的配置啊?找不到

@wxcios
Copy link

wxcios commented Oct 11, 2019

你好,关闭动画后安卓手机上更新数据 还是会闪动,iOS没这个问题

@wxcios
Copy link

wxcios commented Oct 11, 2019

1570762087578893.mp4.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants