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

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

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