- page-container点击关闭按钮关闭弹窗无过渡动画,点击蒙层关闭才有?
<page-container show="{{showModal || showCooperate}}" overlay="{{true}}" round="{{true}}" customStyle="border-radius: 12px 12px 0 0;" overlayStyle="opacity: 0.5;" bind:afterleave="afterLeaveHandle"> <cooperate-modal wx:if="{{showCooperate}}" fromType="{{1}}" roleType="{{1}}" hideType="{{true}}" bind:hideContainer="afterLeaveHandle" /> <blogger-contact-modal wx:if="{{showModal}}" info="{{callmeInfo}}" catch:closeModal="afterLeaveHandle" /> </page-container> 点击关闭按钮,修改showModal和showCooperate的值为false,弹窗关闭,但是没有过渡动画,点击蒙层关闭的时候才有。
12-10 - wxml-to-canvas组件renderToCanvas绘制海报之后怎么把海报关掉啊?
renderToCanvas() { const wxml = getWxml(this.data.info);//获取template const style = getStyle(this.data.info)//获取canvas const p1 = this.widget.renderToCanvas({ wxml, style }) p1.then((res) => { this.container = res this.extraImage() }) }, extraImage() { const p2 = this.widget.canvasToTempFilePath() p2.then(res => { this.setData({ src: res.tempFilePath, width: this.container.layoutBox.width, height: this.container.layoutBox.height }) }) }, 只有这两个方法没看到有关闭海报的方法
04-02