t-page
Page 页面
t-page 组件介绍
页面组件,vite插件自动编译,直接改写标签,在APP端t-page替换为scroll-view,在非APP端替换为view标签。
t-page 平台兼容
| Harmony | H5 | Android | iOS | 小程序 | UTS |
|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
t-page 基础用法
vue
<template>
<t-page>
<t-navbar title="页面标题"></t-navbar>
<view class="content">
<!-- 页面内容 -->
</view>
</t-page>
</template>
<style scoped>
.content {
padding: 20rpx;
}
</style>