UX 文件
APP、页面和自定义组件均通过 ux 后缀文件编写,ux 后缀文件由 template 模板、style 样式和javascript 代码 3 个部分组成,一个典型的页面 ux 后缀文件示例如下:
.demo-page {
flex-direction: column;
justify-content: center;
align-items: center;
}
.title {
font-size: 40px;
text-align: center;
}
.btn {
width: 550px;
height: 86px;
margin-top: 75px;
border-radius: 43px;
background-color: #09ba07;
font-size: 30px;
color: #ffffff;
}
import router from '@blueos.app.router'
export default {
// 页面级组件的数据模型
data: {
title: '示例页面',
},
routeDetail() {
// 跳转到应用内的某个页面,router用法详见:文档->接口->页面路由
router.push({
uri: '/DemoDetail',
})
},
}
app.ux
当前app.ux编译后会包含manifest配置信息,所以请不要删除/**manifest**/的注释内容标识。
您可以在
上一篇
manifest文件
下一篇
style样式
以上

