8 changed files with 204 additions and 15 deletions
-
1src/assets/bluetooth_c.svg
-
1src/assets/bluetooth_nc.svg
-
1src/assets/check_mark.svg
-
96src/components/Header.tsx
-
29src/components/Modal.tsx
-
5src/components/bluetooth.scss
-
75src/pages/measure/components/MeasureDetail.tsx
-
11src/services/measure/analysis.ts
@ -0,0 +1 @@ |
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="33" height="34" viewBox="0 0 33 34"><defs><clipPath id="master_svg0_56_7278"><rect x="0" y="0" width="33" height="34" rx="0"/></clipPath><clipPath id="master_svg1_56_7315"><rect x="0" y="0" width="34" height="34" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_56_7278)"><g clip-path="url(#master_svg1_56_7315)"><g><path d="M8.399410234375,28.8784078125L6.396240234375,26.8738078125L15.583320234375,17.6882078125L15.583320234375,16.3140078125L6.396240234375,7.1240878125L8.399410234375,5.1209278125L15.583320234375,12.3048378125L15.583320234375,2.8330078125L18.416640234375002,2.8330078125L26.430740234375,10.8470878125L20.278140234375,16.9997078125L26.430740234375,23.1522078125L18.416640234375002,31.1663078125L15.583320234375,31.1663078125L15.583320234375,21.6945078125L8.399410234375,28.8770078125L8.399410234375,28.8784078125ZM18.416640234375002,27.1600078125L22.422940234375,23.1522078125L18.416640234375002,19.1459078125L18.416640234375002,27.1600078125ZM18.416640234375002,6.8393378125L18.416640234375002,14.8534078125L22.422940234375,10.8470878125L18.416640234375002,6.8393378125Z" fill="#3165D2" fill-opacity="1" style="mix-blend-mode:passthrough"/></g><g><path d="M11.3330078125,17C11.3330078125,18.17361,10.3816078125,19.125,9.2080078125,19.125C8.0344028125,19.125,7.0830078125,18.17361,7.0830078125,17C7.0830078125,15.826395,8.0344028125,14.875,9.2080078125,14.875C10.3816078125,14.875,11.3330078125,15.826395,11.3330078125,17ZM27.6247078125,19.125C28.7983078125,19.125,29.7497078125,18.17361,29.7497078125,17C29.7497078125,15.826395,28.7983078125,14.875,27.6247078125,14.875C26.4511078125,14.875,25.4997078125,15.826395,25.4997078125,17C25.4997078125,18.17361,26.4511078125,19.125,27.6247078125,19.125Z" fill="#3165D2" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></g></svg> |
@ -0,0 +1 @@ |
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="33" height="34" viewBox="0 0 33 34"><defs><clipPath id="master_svg0_56_7240"><rect x="0" y="0" width="33" height="34" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_56_7240)"><g><path d="M19.678990234375,16.999951953125L25.650590234375,23.152551953125L17.872290234375,31.166551953125L15.122240234374999,31.166551953125L15.122240234374999,21.694751953125L9.121740234375,27.877051953125L7.177491217852,25.872551953125L15.122240234374999,17.687051953125L15.122240234374999,16.312851953124998L7.177490234375,8.127331953125001L9.121740234375,6.122751953125L15.122240234374999,12.305081953125L15.122240234374999,2.833251953125L17.872190234374997,2.833251953125L25.650590234375,10.847331953125L19.678990234375,16.999951953125ZM17.872190234374997,19.146151953125L17.872190234374997,27.160251953125L21.760690234374998,23.152551953125L17.872190234374997,19.146151953125ZM17.872190234374997,14.853651953125L21.760690234374998,10.847331953125L17.872190234374997,6.839581953125L17.872190234374997,14.853651953125Z" fill="#3165D2" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg> |
@ -0,0 +1 @@ |
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><defs><clipPath id="master_svg0_56_7250"><rect x="0" y="0" width="20" height="20" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_56_7250)"><g><path d="M10.007944140625,0.00000314199C4.484154140625,-0.00432857,0.003133180625,4.47084,0.000245536025,9.99463C-0.002641179375,15.5184,4.473704140625,19.9983,9.997484140625,19.9997C15.521244140625,20.0012,19.999944140625,15.5236,19.999944140625,9.99986C20.004244140625,4.4753,15.524644140625,-0.00433615,10.000094140625,0.00000314199L10.007944140625,0.00000314199ZM9.317754140625,13.388L8.211884140625,14.5018L4.635474140625,10.9096L5.749184140625,9.80378L8.211884140625,12.2743L14.988244140625,5.49012L16.094144140625,6.59599L9.317754140625,13.388Z" fill="#3165D2" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg> |
@ -0,0 +1,29 @@ |
|||
import { Modal } from 'antd' |
|||
import { useState } from 'react' |
|||
type ModalProps = { |
|||
open: boolean; |
|||
okFn:Function; |
|||
cancelFn: Function |
|||
}; |
|||
export default function ModalComponents(props:ModalProps){ |
|||
|
|||
let [open, setOpen] = useState(props.open) |
|||
const ok = () => { |
|||
props.okFn() |
|||
} |
|||
|
|||
const cancel = () => { |
|||
props.cancelFn() |
|||
} |
|||
return <Modal |
|||
title="Modal" |
|||
open={open} |
|||
onOk={ok} |
|||
onCancel={cancel} |
|||
okText="确认" |
|||
cancelText="取消" |
|||
> |
|||
<slot></slot> |
|||
</Modal> |
|||
|
|||
} |
@ -0,0 +1,5 @@ |
|||
.bluetooth_c{ |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue