提交 5bd91772 编写于 作者: Q qiang

Merge branch 'dev' into alpha

因为 它太大了无法显示 source diff 。你可以改为 查看blob
<template> <template>
<uni-canvas <uni-canvas
:canvas-id="canvasId" :canvas-id="canvasId"
:disable-scroll="disableScroll" :disable-scroll="disableScroll"
v-on="_listeners"> v-on="_listeners">
<canvas <canvas
ref="canvas" ref="canvas"
width="300" width="300"
height="150" /> height="150" />
<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden;"> <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden;">
<slot /> <slot />
</div> </div>
<v-uni-resize-sensor <v-uni-resize-sensor
ref="sensor" ref="sensor"
@resize="_resize" /> @resize="_resize" />
</uni-canvas> </uni-canvas>
</template> </template>
...@@ -425,6 +425,7 @@ export default { ...@@ -425,6 +425,7 @@ export default {
context.drawImageByCanvas(canvas, x, y, width, height, 0, 0, destWidth, destHeight, false) context.drawImageByCanvas(canvas, x, y, width, height, 0, 0, destWidth, destHeight, false)
imgData = context.getImageData(0, 0, destWidth, destHeight) imgData = context.getImageData(0, 0, destWidth, destHeight)
newCanvas.height = newCanvas.width = 0 newCanvas.height = newCanvas.width = 0
context.__hidpi__ = false
} catch (error) { } catch (error) {
if (!callbackId) { if (!callbackId) {
return return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册