# uni-title ## Instructions 组件名:uni-title 代码块: uTitle 点击下载&安装 ### Syntax - 使用 ``(或 ``,当需要包裹子节点时)。 - 遇到平台差异时,建议使用条件编译(`#ifdef / #endif`)显式处理。 #### Properties | 属性名 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | type | String | - | 标题类型,可选值 h1、h2、h3、h4、h5 ,章节标题字体会比正常字长字体粗,不指定 type 值,默认为上报统计数据 | | title | String | - | 章节标题内容 | | align | String | - | 对齐方式,可选值 left:左对齐;center:居中;right:右对齐; | | color | String | - | 字体颜色 | | stat | Boolean | - | 是否开启统计功能呢,如不填写type值,默认为开启,填写 type 属性,默认为关闭 | #### Events See official docs for full events list: `https://uniapp.dcloud.net.cn/component/uniui/uni-title.html` #### Platform Compatibility See official docs for platform support table: `https://uniapp.dcloud.net.cn/component/uniui/uni-title.html` ### Examples ### Example (Example 1) ```vue ``` ### Example (Example 2) ```html ``` ### Example (Example 3) ```vue ``` ### Example (Example 4) ```html ``` ### Example (Example 5) ```vue ``` ### Example (Example 6) ```html ``` Reference: - [Official Documentation](https://uniapp.dcloud.net.cn/component/uniui/uni-title.html) - [Plugin Marketplace](https://ext.dcloud.net.cn/plugin?name=title) - [Local Example](examples/uni-ui/uni-title.vue)