Package Exports
- chinese-currency-formatter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chinese-currency-formatter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
中文的金额是一个有丰富意义的场景,本组件用于将金额显示为中文大写的金额。
如何使用
编译示例
import React from 'react'
import ChinesesCurrencyFormatter from 'chinese-currency-formatter'
class App extends React.Component {
render ()
return <ChinesesCurrencyFormatter data={987654321.46} />
}
}
生成后的代码为:
<span>玖亿捌仟柒佰陆拾伍万零叁佰贰拾壹圆肆角陆分</span>
更多的转换示例可参考单元测试