提交 8dc57d96 编写于 作者: 杜庆泉's avatar 杜庆泉

uts 组件增加内置元素设置偏移量的示例

上级 51b3bdb3
<template> <template>
<div> <div>
<uts-hello-view buttonText="点击按钮内容" style="width:375px;height: 375px;background-color: aqua;"></uts-hello-view> <uts-hello-view buttonText="点击按钮内容" style="width:375px;height: 375px;background-color: aqua;"></uts-hello-view>
<uts-hello-container> <uts-hello-container style="flex: 1;background-color: red;">
<text>文本组件</text> <text style="left: 100px;top: 100px;background-color: green;">文本组件</text>
<image src="../../static/logo.png" mode="aspectFit"></image> <image src="../../static/logo.png" mode="aspectFit"></image>
</uts-hello-container> </uts-hello-container>
</div> </div>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div> <div>
<button @tap="doSth">调用组件的方法</button> <button @tap="doSth">调用组件的方法</button>
<uts-hello-view ref="helloView" buttonText="点击按钮内容" style="width:375px;height: 375px;background-color: aqua;"></uts-hello-view> <uts-hello-view ref="helloView" buttonText="点击按钮内容" style="width:375px;height: 375px;background-color: aqua;"></uts-hello-view>
<uts-hello-container> <uts-hello-container style="flex: 1;background-color: red;">
<text>文本组件</text> <text style="left: 100px;top: 100px;background-color: green;">文本组件</text>
<image src="../../static/logo.png" mode="aspectFit"></image> <image src="../../static/logo.png" mode="aspectFit"></image>
</uts-hello-container> </uts-hello-container>
</div> </div>
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
export default { export default {
data() { data() {
return { return {
} }
}, },
methods: { methods: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册