import { commonProps } from '../../common/props'; export const countToProps = { // 开始的数值,默认为0 startVal: { type: Number, default: 0 }, // 结束目标数值 endVal: { type: Number, default: 0, required: true }, // 是否自动开始 autoplay: { type: Boolean, default: true }, // 滚动到目标值的持续时间,单位为毫秒 duration: { type: Number, default: 2000 }, // 是否在即将结束的时候使用缓慢滚动的效果 useEasing: { type: Boolean, default: true }, // 显示的小数位数 decimals: { type: Number, default: 0 }, // 十进制的分割符 decimalSeparator: { type: String, default: '.' }, // 千分位的分隔符 // 类似金额的分割(¥23,321.05中的",") thousandthsSeparator: { type: String, default: '' }, // 是否显示加粗字体 bold: { type: Boolean, default: false }, ...commonProps }