import { PropType } from 'vue'; export type StepsMode = 'dot' | 'icon' | 'dotIcon' | 'number' export type StepsDirection = 'row' | 'column' export const stepsProps = { // 模式类型 // dot -> 点 number -> 数字 icon -> 图标 dotIcon -> 点图标 mode: { type: String as PropType, default: 'dot' }, // 步骤条的方向 // row -> 横向 column -> 竖向 direction: { type: String as PropType, default: 'row' }, // 步骤条数据 list: { type: Array as PropType, default() { return [] } }, // 当前激活的步数 current: { type: Number, default: 0 }, // 激活步骤的颜色 activeColor: { type: String, default: '#01BEFF' }, // 未激活步骤的颜色 inActiveColor: { type: String, default: '#AAAAAA' }, // 激活后显示的图标,在数字模式下有效 icon: { type: String, default: 'success' }, // 是否显示标题 showTitle: { type: Boolean, default: true } }