import { Container } from 'https://kevisual.xiongxiao.me/system/lib/container.js';
const data = [
{
id: 'base-root',
code: {
render: (ctx) => {
const rootEl = ctx.renderRoot;
const div = document.createElement('div');
div.innerHTML = 'Hello World!';
rootEl.appendChild(div);
},
unmount: (ctx) => {
console.log('unmount');
},
},
},
];
const container = new Container({
root: 'root',
data: data,
});
container.render('base-root');
-
Notifications
You must be signed in to change notification settings - Fork 0
abearxiong/kevisual-container
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
div容器节点
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published