提交 0276d0d8 编写于 作者: H hdx

canvas: 移除一些临时样式写法,放开AnimationFrame

上级 40e712f1
......@@ -851,17 +851,10 @@
<style>
.page {
flex: 1;
overflow: hidden;
/* #ifdef MP-WEIXIN */
height: 100vh;
/* #endif */
}
.scroll-view {
flex: 1;
/* #ifdef MP-WEIXIN */
overflow: hidden;
/* #endif */
flex: 1;
}
.canvas-element {
......
......@@ -15,10 +15,8 @@
</view>
<button @click="onCreateImage">createImage</button>
<button @click="onCreatePath2D">createPath2D</button>
<!-- #ifndef MP -->
<button @click="startAnimationFrame">requestAnimationFrame</button>
<button @click="stopAnimationFrame">cancelAnimationFrame</button>
<!-- #endif -->
<button @click="stopAnimationFrame">cancelAnimationFrame</button>
<view style="padding: 8px 10px;">CanvasContext API 演示</view>
<navigator url="./canvas-context">
<button>CanvasContext API</button>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册