| 12345678910111213141516171819202122232425 |
- import React, { useEffect, useMemo, useState, useRef } from "react";
- import Alarm from "./entry";
- function Home(props) {
- const compRef = useRef(null);
- const [open, setOpen] = useState(true);
- return (
- <>
- <Alarm.DetailModal
- open={open}
- onCancel={() => setOpen(false)}
- options={{ ruleId: 25 }}
- // options={{
- // pointId: "ABC123_AAA_chr1_AEff_MIN_H",
- // }}
- ></Alarm.DetailModal>
- {/* <Alarm.ComplexConfig ref={compRef} editId={50}></Alarm.ComplexConfig> */}
- {/* <button onClick={() => compRef?.current?.ok()}>测试</button> */}
- {/* <Alarm.EasyConfig pointId="ABC123_AAA_chr1_AEff_MIN_H" ></Alarm.EasyConfig> */}
- </>
- );
- }
- export default Home;
|