waibu-mpa 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/class/component.js +2 -2
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
package/lib/class/component.js
CHANGED
|
@@ -115,12 +115,12 @@ async function componentFactory () {
|
|
|
115
115
|
params.attr.class = without(uniq(params.attr.class), undefined, null, '')
|
|
116
116
|
if (isEmpty(params.attr.class)) delete params.attr.class
|
|
117
117
|
if (isEmpty(params.attr.style)) delete params.attr.style
|
|
118
|
-
if (isEmpty(params.html)) return await this.render(params)
|
|
118
|
+
if (isEmpty(params.html)) return await this.render(params, opts)
|
|
119
119
|
|
|
120
120
|
const merged = merge({}, params.locals, { attr: params.attr })
|
|
121
121
|
const result = await compile(params.html, merged, { ttl: this.ttlDur })
|
|
122
122
|
params.html = result
|
|
123
|
-
return await this.render(params)
|
|
123
|
+
return await this.render(params, opts)
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/**
|
package/package.json
CHANGED