|
@ -1,5 +1,6 @@ |
|
|
import icon_check_s from '../assets/icon_check_s_s.svg'; |
|
|
import icon_check_s from '../assets/icon_check_s_s.svg'; |
|
|
import icon_check_u from '../assets/icon_check_s_u.svg'; |
|
|
import icon_check_u from '../assets/icon_check_s_u.svg'; |
|
|
|
|
|
import icon_arr from '../assets/icon_arr_p_r.svg'; |
|
|
/* |
|
|
/* |
|
|
name: '测量名称1', |
|
|
name: '测量名称1', |
|
|
time: '03-02 10:20', |
|
|
time: '03-02 10:20', |
|
@ -19,7 +20,13 @@ export default function MeasureItem(props: { |
|
|
}) { |
|
|
}) { |
|
|
return ( |
|
|
return ( |
|
|
<div> |
|
|
<div> |
|
|
<h1 className="text-base font-medium mx-2 my-2">{props.name}</h1> |
|
|
|
|
|
|
|
|
<section className="h-10 flex justify-between items-center px-2"> |
|
|
|
|
|
<h1 className="text-base font-medium ">{props.name}</h1> |
|
|
|
|
|
<div className="self-stretch flex items-center"> |
|
|
|
|
|
<span className="mr-2 text-sm text-primary font-medium">查看</span> |
|
|
|
|
|
<img src={icon_arr} alt="arr" className="h-[10px]" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</section> |
|
|
|
|
|
|
|
|
<section className="flex mx-2"> |
|
|
<section className="flex mx-2"> |
|
|
<p className="flex-1 text-sm ">{`${props.line}`}</p> |
|
|
<p className="flex-1 text-sm ">{`${props.line}`}</p> |
|
@ -47,7 +54,7 @@ export function MeasureItemEx(props: { |
|
|
}) { |
|
|
}) { |
|
|
return ( |
|
|
return ( |
|
|
<div className="flex" onClick={props.onSelected}> |
|
|
<div className="flex" onClick={props.onSelected}> |
|
|
<div className="w-12 flex justify-center items-center" > |
|
|
|
|
|
|
|
|
<div className="w-12 flex justify-center items-center"> |
|
|
{props.selected ? ( |
|
|
{props.selected ? ( |
|
|
<img src={icon_check_s} alt="icon" /> |
|
|
<img src={icon_check_s} alt="icon" /> |
|
|
) : ( |
|
|
) : ( |
|
@ -55,7 +62,13 @@ export function MeasureItemEx(props: { |
|
|
)} |
|
|
)} |
|
|
</div> |
|
|
</div> |
|
|
<div className="flex-1"> |
|
|
<div className="flex-1"> |
|
|
<h1 className="text-base font-medium mx-2 my-2">{props.name}</h1> |
|
|
|
|
|
|
|
|
<section className="h-10 flex justify-between items-center px-2"> |
|
|
|
|
|
<h1 className="text-base font-medium ">{props.name}</h1> |
|
|
|
|
|
<div className="self-stretch flex items-center"> |
|
|
|
|
|
<span className="mr-2 text-sm text-primary font-medium">查看</span> |
|
|
|
|
|
<img src={icon_arr} alt="arr" className="h-[10px]" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</section> |
|
|
|
|
|
|
|
|
<section className="flex mx-2"> |
|
|
<section className="flex mx-2"> |
|
|
<p className="flex-1 text-sm ">{`${props.line}`}</p> |
|
|
<p className="flex-1 text-sm ">{`${props.line}`}</p> |
|
|