mand-mobile/components/amount
xiaojiahui d2afd0ec24 modified titleEnUS 2024-06-25 11:05:33 +08:00
..
demo modified titleEnUS 2024-06-25 11:05:33 +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 modified version 2024-06-25 11:00:10 +08:00
README.md modified version 2024-06-25 11:00:10 +08:00
index.vue amount support mask` 2024-06-24 19:48:51 +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 DIDIFD-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
mask2.7.1+ use mask Boolean false -