数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
538 B

2 years ago
import { init, attributesModule, h } from "../../build/index.js";
const patch = init([attributesModule]);
window.addEventListener("DOMContentLoaded", () => {
const container = document.getElementById("container");
const vnode = h("div", [
h("svg", { attrs: { width: 100, height: 100 } }, [
h("circle", {
attrs: {
cx: 50,
cy: 50,
r: 40,
stroke: "green",
"stroke-width": 4,
fill: "yellow",
},
}),
]),
]);
patch(container, vnode);
});