提交 06304702 编写于 作者: 郭胜强

feat: canvas组件增加slot支持

上级 be9f6386
<template>
<uni-canvas>
<uni-canvas
:canvas-id="canvasId"
:disable-scroll="disableScroll"
v-on="$listeners"
@touchmove="_touchmove"
>
<canvas
ref="canvas"
:canvas-id="canvasId"
:disable-scroll="disableScroll"
width="300"
height="150"
@touchmove="_touchmove"
/>
height="150"/>
<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden;">
<slot/>
</div>
<v-uni-resize-sensor
ref="sensor"
@resize="_resize"/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册