0.1.6 • Published 2 years ago
price-thousands v0.1.6
price-thousands
介绍
用于页面上千分位的显示
使用
npm install price-thousands
props
{
// 金额
price: {
type: [Number, String],
default: 0
},
// 是否需要货币
needSymbol: {
type: Boolean,
default: true
},
// 小数位
decimalDigits: {
type: [Number, String],
default: 2
},
// 以千位显示
thousands: {
type: Boolean,
default: true
},
// 服务端数据转换
convertUnit: {
type: Boolean,
default: false
},
// 货币
currency: {
type: String,
default: '¥'
}
}