mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-01-15 07:21:07 +00:00
29 lines
445 B
JavaScript
29 lines
445 B
JavaScript
|
/* eslint-disable */
|
||
|
import Node from './Node'
|
||
|
|
||
|
export default class Element extends Node {
|
||
|
|
||
|
constructor() {
|
||
|
super()
|
||
|
|
||
|
this.className = ''
|
||
|
this.children = []
|
||
|
}
|
||
|
|
||
|
setAttribute(name, value) {
|
||
|
this[name] = value
|
||
|
}
|
||
|
|
||
|
getAttribute(name) {
|
||
|
return this[name]
|
||
|
}
|
||
|
|
||
|
setAttributeNS(name, value) {
|
||
|
this[name] = value
|
||
|
}
|
||
|
|
||
|
getAttributeNS(name) {
|
||
|
return this[name]
|
||
|
}
|
||
|
}
|