This commit is contained in:
2021-06-30 00:19:33 +08:00
parent e61212c83f
commit b88154df40
5 changed files with 85 additions and 25 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import React from "react";
import ReactDom from "react-dom";
import ReactDOM from 'react-dom';
import Hehe from "./confirm.js";
export default function (ops, btn) {
let div = document.createElement("div");
document.body.appendChild(div);
let toastInt = ReactDom.render(<Hehe />, div);
let toastInt = ReactDOM.render(<Hehe />, div);
toastInt.setMessage(ops, btn, div);
console.log(btn);
}