消除 log

This commit is contained in:
satori 2024-09-05 12:49:28 +08:00
parent c204f8a3d6
commit 8a87885921

View File

@ -14,7 +14,7 @@ export function createElement({ innerText, innerHTML, textContent, readOnly, chi
if (children) children.forEach(child => element.appendChild(child))
// 生成样式
if (names.length) console.log('names:', names)
//if (names.length) console.log(names)
// 分解类名, 生成样式, 直接将样式赋予元素
names.map(name => name.split('_')).forEach(item => {
@ -153,7 +153,6 @@ export class BaseElement {
return createElement({ innerHTML: html }, this.name)
}
static childs(childs, __name, names) {
console.log('childs:', __name, names)
return createElement({ children: childs }, __name, names)
}
static w(width, __name, names) {