index.js 455 B

1234567891011121314
  1. import React, { Component } from 'react';
  2. import './index.less';
  3. import { formatMoney } from '@src/services/Tools';
  4. export default class Money extends Component {
  5. render() {
  6. const { className = '', disabled, size = 'basic', theme = 'default', value = '0' } = this.props;
  7. return (
  8. <div className={`g-money ${className} ${size} ${theme} ${disabled ? 'disabled' : ''}`}>
  9. ¥<span>{formatMoney(value)}</span>
  10. </div>
  11. );
  12. }
  13. }