提交 77990628 编写于 作者: E ester.zhou

update ts-basic-components-remotewindow.md (8265)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 eaf71fbf
...@@ -64,10 +64,10 @@ struct RemoteWindowExample { ...@@ -64,10 +64,10 @@ struct RemoteWindowExample {
build() { build() {
Column() { Column() {
RemoteWindow(this.target) RemoteWindow(this.target)
.translate({x:100, y:200}) .translate({ x: 100, y: 200 })
.scale({x:0.5, y:0.5}) .scale({ x: 0.5, y: 0.5 })
.opacity(0.8) .opacity(0.8)
.position({x:px2vp(this.target?.windowBounds.left), y:px2vp(this.target?.windowBounds.top)}) .position({ x: px2vp(this.target?.windowBounds.left), y: px2vp(this.target?.windowBounds.top) })
.width(px2vp(this.target?.windowBounds.width)) .width(px2vp(this.target?.windowBounds.width))
.height(px2vp(this.target?.windowBounds.height)) .height(px2vp(this.target?.windowBounds.height))
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册