pawa-ssr 1.3.26 → 1.3.28
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 +1 -1
- package/package.json +2 -2
- package/pawaElement.js +9 -4
package/index.js
CHANGED
|
@@ -478,7 +478,7 @@ appContext.component._prop={children,...el._props,...slots}
|
|
|
478
478
|
let name=key
|
|
479
479
|
name=name.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
480
480
|
if (appContext.restProps[name]) {
|
|
481
|
-
restProps[key]={
|
|
481
|
+
restProps[key]={...props[key]}
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
}else{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pawa-ssr",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "pawajs ssr libary",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"homepage": "https://github.com/Allisboy/pawajs-ssr#readme",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"linkedom": "^0.18.11",
|
|
28
|
-
"pawajs": "^1.
|
|
28
|
+
"pawajs": "^1.5.1"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/pawaElement.js
CHANGED
|
@@ -80,8 +80,6 @@ class PawaElement {
|
|
|
80
80
|
})
|
|
81
81
|
}
|
|
82
82
|
checkLazy(){
|
|
83
|
-
console.log(lazyComponents.has(splitAndAdd(this._el.tagName)),this._el.tagName,components.has(splitAndAdd(this._el.tagName)));
|
|
84
|
-
|
|
85
83
|
if (lazyComponents.has(splitAndAdd(this._el.tagName))) {
|
|
86
84
|
this._lazy=true
|
|
87
85
|
}
|
|
@@ -106,7 +104,14 @@ class PawaElement {
|
|
|
106
104
|
if (this._el.hasAttribute('p:c')) {
|
|
107
105
|
this._resumeAttr=this._el.getAttribute('p:c')
|
|
108
106
|
this._el.attributes.forEach((value, index, array) => {
|
|
109
|
-
if(this._resumeAttr.includes(value.name) || value.name === 'p:c')
|
|
107
|
+
if(this._resumeAttr.includes(value.name) || value.name === 'p:c'){
|
|
108
|
+
if(value.name === 'p:c' || value.name.startsWith('c-')){
|
|
109
|
+
return
|
|
110
|
+
}else{
|
|
111
|
+
const attrName = value.name;
|
|
112
|
+
this._resumeAttr = this._resumeAttr.replace(`${attrName};`, '');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
110
115
|
if (value.name.startsWith(':')) return
|
|
111
116
|
this._resumeAttr+=`${value.name};`
|
|
112
117
|
})
|
|
@@ -196,7 +201,7 @@ class PawaElement {
|
|
|
196
201
|
return
|
|
197
202
|
}
|
|
198
203
|
if ( !attr.name.startsWith(':')) {
|
|
199
|
-
|
|
204
|
+
if( attr.name.startsWith('c-')||attr.name.startsWith('pawa-') |name.startsWith('p:c') || attr.name.startsWith('state-')) return
|
|
200
205
|
let name=''
|
|
201
206
|
if (attr.name.startsWith('-')) {
|
|
202
207
|
name=attr.name.slice(1)
|