消除 log
This commit is contained in:
parent
c204f8a3d6
commit
8a87885921
3
main.js
3
main.js
@ -14,7 +14,7 @@ export function createElement({ innerText, innerHTML, textContent, readOnly, chi
|
|||||||
if (children) children.forEach(child => element.appendChild(child))
|
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 => {
|
names.map(name => name.split('_')).forEach(item => {
|
||||||
@ -153,7 +153,6 @@ export class BaseElement {
|
|||||||
return createElement({ innerHTML: html }, this.name)
|
return createElement({ innerHTML: html }, this.name)
|
||||||
}
|
}
|
||||||
static childs(childs, __name, names) {
|
static childs(childs, __name, names) {
|
||||||
console.log('childs:', __name, names)
|
|
||||||
return createElement({ children: childs }, __name, names)
|
return createElement({ children: childs }, __name, names)
|
||||||
}
|
}
|
||||||
static w(width, __name, names) {
|
static w(width, __name, names) {
|
||||||
|
Loading…
Reference in New Issue
Block a user