mand-mobile/components/amount
hangzou 6107a64521
fix(amount): 修复中文货币单位不正确的问题 (#675)
fix #674
2020-05-29 17:48:58 +08:00
..
demo fix(amount): 修复中文货币单位不正确的问题 (#675) 2020-05-29 17:48:58 +08:00
test fix(amount): fix amount display negative number (#645) 2020-02-04 14:12:38 +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): fix amount display negative number (#645) 2020-02-04 14:12:38 +08:00
number-capital.js fix(amount): 修复中文货币单位不正确的问题 (#675) 2020-05-29 17:48:58 +08:00

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