import { commonProps } from "../../common" export type SubSectionMode = 'subsection' | 'button' export const subsectionProps = { // 模式选择 // button 按钮模式 subsection 分段模式 mode: { type: String, default: 'subsection' }, // 组件高度 height: { type: Number, default: 60 }, // tab的数据 list: { type: Array, default() { return [] } }, // 当前活动tab的index current: { type: [Number, String], default: 0 }, // 激活时的字体颜色 activeColor: { type: String, default: '#FFFFFF' }, // 未激活时的字体颜色 inactiveColor: { type: String, default: '#AAAAAA' }, // 激活tab的字体是否加粗 bold: { type: Boolean, default: false }, // 滑块的颜色 buttonColor: { type: String, default: '#01BEFF' }, // 当mode为button时生效,圆角的值,单位rpx borderRadius: { type: Number, default: 10 }, // 是否开启动画 animation: { type: Boolean, default: true }, // 动画类型 // cubic-bezier -> 贝塞尔曲线 animationType: { type: String, default: '' }, // 滑动滑块的是否,是否触发震动 vibrateShort: { type: Boolean, default: false }, ...commonProps, backgroundColor: { type: String, default: '#F4F4F4' } }