waibu-bootstrap
Version:
Bootstrap suport for Waibu Framework
16 lines (13 loc) • 406 B
JavaScript
const cls = 'lead'
async function lead () {
return class Lead extends this.baseFactory {
constructor (options) {
super(options)
this.selector = '.' + cls
const { isString } = this.plugin.lib._
const tag = isString(this.params.attr.tag) ? this.params.attr.tag : 'p'
this.component.normalizeAttr(this.params, { tag, cls })
}
}
}
export default lead