UNPKG

uview-next

Version:

基于uView UI 2.0,110+高质量组件库,支持vue2和vue3,支持鸿蒙,支持多语言,搭配便捷工具助力,让开发更得心应手

54 lines (53 loc) 1.13 kB
import { defineProps } from '../../libs/util/props'; import theme from '../../libs/config/theme.js' export default defineProps('section', { // 标题信息 title: { type: String, default: '' }, // 右边副标题内容 subTitle: { type: String, default: () => uni.$u.$t('uSection.subTitle') }, // 是否显示右边的内容 right: { type: Boolean, default: true }, fontSize: { type: [Number, String], default: 15 }, // 主标题是否加粗 bold: { type: Boolean, default: true }, // 主标题的颜色 color: { type: String, default: theme.mainColor }, // 右边副标题的颜色 subColor: { type: String, default: theme.lightColor }, // 是否显示左边的竖条 showLine: { type: Boolean, default: true }, // 左边竖线的颜色 lineColor: { type: String, default: '' }, // 是否显示右边箭头 arrow: { type: Boolean, default: true } })