Compare commits

..

No commits in common. "599bf62bb130d664d6c34bd1058eb6558f850661" and "b77445c37cea399c2a44edcb5a3642893fca4ae6" have entirely different histories.

View File

@ -350,7 +350,7 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla
label=""
className="input-origin block"
readOnly={currentRoof?.roofAngleSet !== item.value}
value={index === 0 ? (currentRoof?.pitch ?? basicSetting?.inclBase ?? '0') : (currentRoof?.angle ?? '0')}
value={index === 0 ? currentRoof?.pitch || '0' : currentRoof?.angle || '0'}
onChange={(value) => {
if (index === 0) {
const pitch = value === '' ? '' : Number(value);
@ -372,7 +372,7 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla
}}
options={{
allowNegative: false,
allowDecimal: true
allowDecimal: true //(index !== 0),
}}
/>
</div>
@ -520,7 +520,7 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla
label=""
className="input-origin block"
ref={roofRef.hajebichi}
value={currentRoof?.hajebichi ?? basicSetting?.roofPchBase ?? '0'}
value={currentRoof?.hajebichi || '0'}
onChange={(value) => {
const hajebichi = value === '' ? '' : Number(value);
setCurrentRoof(prev => ({