Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我用了折线图组件,让用户点击可查看,但是出现了第二次canvas 不显示的问题 #4

Open
lilingdan opened this issue Jun 24, 2018 · 2 comments

Comments

@lilingdan
Copy link

我做了点击查看,点击隐藏两个按钮,给控件做了一个可见性判断,结果发现隐藏之后再打开,canvas 部分不显示了, 找不到原因
控件line-chart.wxml 修改
<view wx:if="{{isShow}}" class="line_chart_container">

控件line-chart.js 添加
properties: { isShow:{ type: Boolean, value: false, observer:"onShow" } },

@lilingdan
Copy link
Author

我暂时用hidden 来规避了wx:if 的问题

@fuxingkai
Copy link
Owner

目前我也是用hidden处理,wx:if的确实存在问题,我怀疑是虽然wx:if重新进行了渲染,但是canvas实例还是之前的

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

No branches or pull requests

2 participants