UNPKG

992 BSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/components/MoneyConvert/MoneyConvert.js"],"names":["MoneyConvert","props","context","moneyValue","value","result","toFixed","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;;;AACA;;;;;;AALA;;;;IAOqBA,Y;;;AACnB,wBAAYC,KAAZ,EAAkBC,OAAlB,EAA2B;AAAA;AAAA,6IACnBD,KADmB,EACbC,OADa;AAE1B;;;;6BACO;AACN,UAAIC,aAAa,KAAKF,KAAL,CAAWG,KAA5B;AACA,UAAIC,SAASF,cAAcA,WAAWG,OAAX,CAAmB,CAAnB,CAA3B;AACA,aACE;AAAA;AAAA;AAAOD;AAAP,OADF;AAGD;;;EAVuCE,gB;;kBAArBP,Y","file":"MoneyConvert.js","sourcesContent":["/**\r\n * Created by songshuangwang on 2017/7/8.\r\n */\r\n\r\nimport React, {Component} from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nexport default class MoneyConvert extends Component {\r\n constructor(props,context) {\r\n super(props,context);\r\n }\r\n render(){\r\n let moneyValue = this.props.value;\r\n let result = moneyValue && moneyValue.toFixed(2);\r\n return(\r\n <span>{result}</span>\r\n );\r\n }\r\n}"]}
\No newline at end of file