vue-price-format
v0.1.2
Published
Downloads
6
Readme
vue-price-format
Usage method:
npm i vue-price-format
import priceFormat from 'vue-price-format'
export default {
components:{
priceFormat
},
...
}
<price-format></price-format>
Parameter description:
属性名|描述| |:-:|:-:| num|金额数值 color|颜色(默认#f40) toFixed|保留小数位(默认2) currency|币种符号(默认¥) currencyposition|币种位置(默认left,可选right) currencySize|币种字体大小(默认18px) size1|整数位字体大小(默认18px) size2|小数位字体大小(默认14px) showMillennial|是否开启千分位(默认false) slot|插槽(left,right具名插槽)