mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
@@ -21,7 +21,9 @@ type Props = {
|
||||
[key: string]: any
|
||||
};
|
||||
|
||||
export function $el(tag: string, propsOrChildren?: string | Element | Element[] | Props, children?: Element[] | Element): HTMLElement {
|
||||
type Children = Element[] | Element | string | string[];
|
||||
|
||||
export function $el(tag: string, propsOrChildren?: Children | Props, children?: Children): HTMLElement {
|
||||
const split = tag.split(".");
|
||||
const element = document.createElement(split.shift() as string);
|
||||
if (split.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user