면형상배치 : 계산기 추가
This commit is contained in:
parent
b81fc389f5
commit
6f47b9dc54
@ -1,6 +1,7 @@
|
|||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import { useMessage } from '@/hooks/useMessage'
|
import { useMessage } from '@/hooks/useMessage'
|
||||||
import { forwardRef, useState } from 'react'
|
import { forwardRef, useState } from 'react'
|
||||||
|
import { CalculatorInput } from '@/components/common/input/CalcInput'
|
||||||
|
|
||||||
const PlacementSurface = forwardRef((props, refs) => {
|
const PlacementSurface = forwardRef((props, refs) => {
|
||||||
const { getMessage } = useMessage()
|
const { getMessage } = useMessage()
|
||||||
@ -74,10 +75,32 @@ const PlacementSurface = forwardRef((props, refs) => {
|
|||||||
<div className="eaves-keraba-td">
|
<div className="eaves-keraba-td">
|
||||||
<div className="outline-form">
|
<div className="outline-form">
|
||||||
<div className="input-grid mr5" style={{ width: '57px' }}>
|
<div className="input-grid mr5" style={{ width: '57px' }}>
|
||||||
<input
|
{/*<input*/}
|
||||||
type="text"
|
{/* type="text"*/}
|
||||||
|
{/* className="input-origin plane block"*/}
|
||||||
|
{/* defaultValue={line.value}*/}
|
||||||
|
{/* ref={*/}
|
||||||
|
{/* line.isDiagonal*/}
|
||||||
|
{/* ? lengthetc*/}
|
||||||
|
{/* : index === 0*/}
|
||||||
|
{/* ? length1*/}
|
||||||
|
{/* : index === 1*/}
|
||||||
|
{/* ? length2*/}
|
||||||
|
{/* : index === 2*/}
|
||||||
|
{/* ? length3*/}
|
||||||
|
{/* : index === 3*/}
|
||||||
|
{/* ? length4*/}
|
||||||
|
{/* : length5*/}
|
||||||
|
{/* }*/}
|
||||||
|
{/*/>*/}
|
||||||
|
|
||||||
|
<CalculatorInput
|
||||||
|
id=""
|
||||||
|
name=""
|
||||||
|
label=""
|
||||||
className="input-origin plane block"
|
className="input-origin plane block"
|
||||||
defaultValue={line.value}
|
value={line.value}
|
||||||
|
onChange={()=>{}}
|
||||||
ref={
|
ref={
|
||||||
line.isDiagonal
|
line.isDiagonal
|
||||||
? lengthetc
|
? lengthetc
|
||||||
@ -91,6 +114,10 @@ const PlacementSurface = forwardRef((props, refs) => {
|
|||||||
? length4
|
? length4
|
||||||
: length5
|
: length5
|
||||||
}
|
}
|
||||||
|
options={{
|
||||||
|
allowNegative: false,
|
||||||
|
allowDecimal: false
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span className="thin">mm</span>
|
<span className="thin">mm</span>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user