Skip to content

t-page

Page 页面

组件介绍

页面组件,vite插件自动编译,直接改写标签,在APP端t-page替换为scroll-view,在非APP端替换为view标签。

平台兼容

HarmonyH5AndroidiOS小程序UTS

基础用法

vue
<template>
  <t-page>
    <t-navbar title="页面标题"></t-navbar>
    <view class="content">
      <!-- 页面内容 -->
    </view>
  </t-page>
</template>

<style scoped>
.content {
  padding: 20rpx;
}
</style>