0.1.6 • Published 2 years ago

price-thousands v0.1.6

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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: '¥'
  }
}
0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago