文档框架

This commit is contained in:
wux_labs
2025-02-17 20:25:22 +08:00
parent bce23bcd43
commit e0cf01c819
7 changed files with 568 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// Copyright (c) 2024-present AI-Labs
/**
* 注册Web组件
* @param name
* @param element
*/
export const defineCustomElement = (name: string, element: CustomElementConstructor) => {
if (!window.customElements.get(name)) {
window.customElements.define(name, element);
}
}