1234567891011121314 |
- import React, { Component } from 'react';
- import './index.less';
- import { formatMoney } from '@src/services/Tools';
- export default class Money extends Component {
- render() {
- const { className = '', disabled, size = 'basic', theme = 'default', value = '0' } = this.props;
- return (
- <div className={`g-money ${className} ${size} ${theme} ${disabled ? 'disabled' : ''}`}>
- ¥<span>{formatMoney(value)}</span>
- </div>
- );
- }
- }
|