提交 0fe53cc6 编写于 作者: G gmy

update docs

Signed-off-by: Ngmy <guanmingyue@h-partners.com>
上级 f4a937af
...@@ -1777,7 +1777,7 @@ getImageData(sx: number, sy: number, sw: number, sh: number): Object ...@@ -1777,7 +1777,7 @@ getImageData(sx: number, sy: number, sw: number, sh: number): Object
```html ```html
<!-- xxx.hml --> <!-- xxx.hml -->
<div> <div>
<canvas style="width: 200px; height: 150px; background-color: #ffff00;"></canvas> <canvas id="getImageData" style="width: 200px; height: 150px; background-color: #ffff00;"></canvas>
</div> </div>
``` ```
...@@ -1813,7 +1813,7 @@ putImageData(imageData: Object, dx: number, dy: number, dirtyX: number, dirtyY: ...@@ -1813,7 +1813,7 @@ putImageData(imageData: Object, dx: number, dy: number, dirtyX: number, dirtyY:
```html ```html
<!-- xxx.hml --> <!-- xxx.hml -->
<div> <div>
<canvas style="width: 200px; height: 150px; background-color: #ffff00;"></canvas> <canvas id="getImageData" style="width: 200px; height: 150px; background-color: #ffff00;"></canvas>
</div> </div>
``` ```
......
...@@ -49,6 +49,8 @@ PageA跳转到PageB,跳转的共享元素为image, shareid为“shareImage ...@@ -49,6 +49,8 @@ PageA跳转到PageB,跳转的共享元素为image, shareid为“shareImage
<list> <list>
<list-item type="description"> <list-item type="description">
<image src="item.jpg" shareid="shareImage" onclick="jump" class="shared-transition-style"></image> <image src="item.jpg" shareid="shareImage" onclick="jump" class="shared-transition-style"></image>
</list-item>
<list-item>
<text onclick="jump">Click on picture to Jump to ths details</text> <text onclick="jump">Click on picture to Jump to ths details</text>
</list-item> </list-item>
</list> </list>
...@@ -61,7 +63,8 @@ import router from '@system.router'; ...@@ -61,7 +63,8 @@ import router from '@system.router';
export default { export default {
jump() { jump() {
router.push({ router.push({
uri: 'detailpage', // 路径要与config.json配置里面的相同
uri: 'pages/detailpage',
}); });
}, },
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册