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

hello uts 增加了容器示例

上级 2db696aa
......@@ -26,8 +26,8 @@
action: "play",
loop: false,
yanse: "red",
widthNum: 750,
heightNum: 200,
widthNum: 200,
heightNum: 500,
comShow: true,
animUrl: "/static/anim_a.json"
}
......
<template>
<div>
<uts-hello-view buttonText="点击按钮内容" style="width:375px;height: 375px;background-color: aqua;"></uts-hello-view>
<uts-hello-container>
<text>文本组件</text>
<image src="../../static/logo.png" mode="aspectFit"></image>
</uts-hello-container>
</div>
</template>
......
<template>
<view >
<slot></slot>
</view>
</template>
<script lang="uts">
import LinearLayout from 'android.widget.LinearLayout'
//原生提供以下属性或方法的实现
export default {
name: "uts-hello-container",
NVLoad(): LinearLayout {
let contentLayout = new LinearLayout($androidContext)
return contentLayout
}
}
</script>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册