mand-mobile/components/amount
xuxiaoyan 08e770d17e fix(amount): use of system built-in fonts defaultly 2019-02-22 11:49:21 +08:00
..
demo test: update test snapshots 2018-12-09 18:59:54 +08:00
test test: update snapshots 2019-01-04 16:56:32 +08:00
DINPro-Medium.ttf add financial amount font #325 2019-02-21 17:21:40 +08:00
README.en-US.md fix(amount): use of system built-in fonts defaultly 2019-02-22 11:49:21 +08:00
README.md fix(amount): use of system built-in fonts defaultly 2019-02-22 11:49:21 +08:00
index.vue fix(amount): istanbul ignore 2019-01-04 16:52:06 +08:00
number-capital.js

README.en-US.md

title preview
Amount https://didi.github.io/mand-mobile/examples/#/amount

Financial figures, generally used for amounts, quantities, etc

Import

import { Amount } from 'mand-mobile'

Vue.component(Amount.name, Amount)

Tips

The font DINPro-Medium is used in the component for the case show only, if necessary, reset font-family of .md-amount.

Code Examples

API

Amount Props

Props Description Type Default Note
value - Number 0 -
precision - Number 2 length of decimal part
is-round-up number round off Boolean true -
has-separator insert thousand separators Boolean false -
separator thousand separator String , -
is-capital convert to chinese capital Boolean false -
transition use transition when value changes Boolean false -
duration transition duration Number 1000 unit ms