pawa-ssr 1.0.21 → 1.0.22
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/index.js +6 -7
- package/package.json +1 -1
- package/test/index.js +1 -1
package/index.js
CHANGED
|
@@ -221,19 +221,18 @@ stateContext._name=el._componentName
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
div.innerHTML=compo
|
|
224
|
-
|
|
225
|
-
const findElement=div.querySelector('[--]') || div.querySelector('[rest]')
|
|
224
|
+
const findElement=div.querySelector('[--]') || div.querySelector('[r-]')
|
|
226
225
|
if (findElement) {
|
|
227
|
-
for (const [key,value] of Object.entries(el
|
|
226
|
+
for (const [key,value] of Object.entries(el?._restProps)) {
|
|
228
227
|
findElement.setAttribute(value.name,value.value)
|
|
229
|
-
findElement.removeAttribute('--')
|
|
230
|
-
findElement.removeAttribute('rest')
|
|
231
228
|
}
|
|
232
|
-
|
|
229
|
+
findElement.removeAttribute('--')
|
|
230
|
+
findElement.removeAttribute('r-')
|
|
231
|
+
|
|
233
232
|
}
|
|
234
233
|
for (const fn of compoAfterCall) {
|
|
235
234
|
try {
|
|
236
|
-
fn(stateContext,div?.firstElementChild)
|
|
235
|
+
fn(stateContext,div?.firstElementChild,el)
|
|
237
236
|
} catch (error) {
|
|
238
237
|
console.error(error.message,error.stack)
|
|
239
238
|
}
|
package/package.json
CHANGED