App.jsx 737 B

12345678910111213141516171819202122232425
  1. import React, { useEffect, useMemo, useState, useRef } from "react";
  2. import Alarm from "./entry";
  3. function Home(props) {
  4. const compRef = useRef(null);
  5. const [open, setOpen] = useState(true);
  6. return (
  7. <>
  8. <Alarm.DetailModal
  9. open={open}
  10. onCancel={() => setOpen(false)}
  11. options={{ ruleId: 25 }}
  12. // options={{
  13. // pointId: "ABC123_AAA_chr1_AEff_MIN_H",
  14. // }}
  15. ></Alarm.DetailModal>
  16. {/* <Alarm.ComplexConfig ref={compRef} editId={50}></Alarm.ComplexConfig> */}
  17. {/* <button onClick={() => compRef?.current?.ok()}>测试</button> */}
  18. {/* <Alarm.EasyConfig pointId="ABC123_AAA_chr1_AEff_MIN_H" ></Alarm.EasyConfig> */}
  19. </>
  20. );
  21. }
  22. export default Home;