|
@ -28,7 +28,7 @@ class PriceInput extends React.Component { |
|
|
constructor(props) { |
|
|
constructor(props) { |
|
|
super(props); |
|
|
super(props); |
|
|
|
|
|
|
|
|
const value = this.props.value || {}; |
|
|
const value = props.value || {}; |
|
|
this.state = { |
|
|
this.state = { |
|
|
number: value.number || 0, |
|
|
number: value.number || 0, |
|
|
currency: value.currency || 'rmb', |
|
|
currency: value.currency || 'rmb', |
|
|