|
@ -42,12 +42,13 @@ export default function MeasureConfig() { |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
form.setFieldsValue({ |
|
|
form.setFieldsValue({ |
|
|
username: userInfo.nickname || "", |
|
|
username: userInfo.nickname || "", |
|
|
|
|
|
direction: "左" |
|
|
}); |
|
|
}); |
|
|
}, [userInfo.nickname, form]); |
|
|
}, [userInfo.nickname, form]); |
|
|
return ( |
|
|
return ( |
|
|
<> |
|
|
<> |
|
|
{contextHolder} |
|
|
{contextHolder} |
|
|
|
|
|
|
|
|
|
|
|
{/* <div>width: {window.innerWidth} height: {window.innerHeight}</div> */} |
|
|
<div className="h-full flex justify-center items-center"> |
|
|
<div className="h-full flex justify-center items-center"> |
|
|
<Form |
|
|
<Form |
|
|
form={form} |
|
|
form={form} |
|
@ -96,7 +97,7 @@ export default function MeasureConfig() { |
|
|
{/* <Input /> */} |
|
|
{/* <Input /> */} |
|
|
<Select |
|
|
<Select |
|
|
className="w-[5rem]" |
|
|
className="w-[5rem]" |
|
|
defaultValue="左" |
|
|
|
|
|
|
|
|
// defaultValue="左"
|
|
|
options={[ |
|
|
options={[ |
|
|
{ value: '左', label: '左侧' }, |
|
|
{ value: '左', label: '左侧' }, |
|
|
{ value: '右', label: '右侧' }, |
|
|
{ value: '右', label: '右侧' }, |
|
|