mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 09:27:19 +08:00
26 lines
474 B
JavaScript
26 lines
474 B
JavaScript
'use strict'
|
|
|
|
let Container = require('./container')
|
|
|
|
class AtRule extends Container {
|
|
constructor (defaults) {
|
|
super(defaults)
|
|
this.type = 'atrule'
|
|
}
|
|
|
|
append (...children) {
|
|
if (!this.proxyOf.nodes) this.nodes = []
|
|
return super.append(...children)
|
|
}
|
|
|
|
prepend (...children) {
|
|
if (!this.proxyOf.nodes) this.nodes = []
|
|
return super.prepend(...children)
|
|
}
|
|
}
|
|
|
|
module.exports = AtRule
|
|
AtRule.default = AtRule
|
|
|
|
Container.registerAtRule(AtRule)
|