|
@@ -3,12 +3,7 @@ import Input, { InputProps } from 'antd/lib/input'
|
|
|
import React, { ChangeEvent, useState, useEffect } from 'react'
|
|
|
import './index.scss'
|
|
|
|
|
|
-// interface iState {
|
|
|
-// digit: string
|
|
|
-// inputVal: string
|
|
|
-// }
|
|
|
-
|
|
|
-interface MoneyInputProps {
|
|
|
+interface MoneyInputProps {
|
|
|
maxPrice?: number
|
|
|
minPrice?: number
|
|
|
value?: string
|
|
@@ -88,22 +83,20 @@ const MoneyInput: React.FC<MoneyInputProps> = (props) => {
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
- <div className="ant-input ant-input-sm">
|
|
|
+ <div className='ant-input ant-input-sm'>
|
|
|
<div className="pi-flex-row">
|
|
|
- <span className="pi-fz-14 pi-mg-right-5">¥</span>
|
|
|
- {/* <Form.Item name="price" rules={[ { required: true, message } ]} noStyle> */}
|
|
|
- <Input bordered={false} value={inputVal || value} size="small" onChange={handleChange} autoComplete="off"/>
|
|
|
- {/* </Form.Item> */}
|
|
|
+ <span className="pi-fz-14 pi-mg-right-5">¥</span>
|
|
|
+ <Input bordered={false} value={inputVal || value} size="small" onChange={handleChange} autoComplete="off" />
|
|
|
</div>
|
|
|
{
|
|
|
digit ?
|
|
|
- <div className='line-separator'>
|
|
|
- <div className="side-line"> </div>
|
|
|
- <div className="triangle-triangle" />
|
|
|
- <div className="triangle-num">{digit}</div>
|
|
|
- <div className="side-line"> </div>
|
|
|
- </div>
|
|
|
- : null
|
|
|
+ <div className='line-separator'>
|
|
|
+ <div className="side-line"> </div>
|
|
|
+ <div className="triangle-triangle" />
|
|
|
+ <div className="triangle-num">{digit}</div>
|
|
|
+ <div className="side-line"> </div>
|
|
|
+ </div>
|
|
|
+ : null
|
|
|
}
|
|
|
</div>
|
|
|
)
|