pawa-ssr 1.3.16 → 1.3.17
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/package.json +1 -1
- package/pawaElement.js +9 -9
package/package.json
CHANGED
package/pawaElement.js
CHANGED
|
@@ -195,17 +195,17 @@ class PawaElement {
|
|
|
195
195
|
}else{
|
|
196
196
|
name=attr.name
|
|
197
197
|
}
|
|
198
|
+
let hydatename
|
|
199
|
+
if(name === 'class'){
|
|
200
|
+
hydatename=':'+'className'
|
|
201
|
+
}else if(name === 'default'){
|
|
202
|
+
hydatename=':'+'defaultValue'
|
|
203
|
+
}else{
|
|
204
|
+
hydatename=':'+name.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
205
|
+
}
|
|
206
|
+
this._hydrateProps[hydatename]=attr.value
|
|
198
207
|
const setProps=()=>{
|
|
199
|
-
this._hydrateProps[name]=attr.value
|
|
200
208
|
delete this._restProps[name]
|
|
201
|
-
let hydatename
|
|
202
|
-
if(name === 'class'){
|
|
203
|
-
hydatename=':'+'className'
|
|
204
|
-
}else if(name === 'default'){
|
|
205
|
-
hydatename=':'+'defaultValue'
|
|
206
|
-
}else{
|
|
207
|
-
hydatename=':'+name
|
|
208
|
-
}
|
|
209
209
|
let value=attr.value
|
|
210
210
|
if (value.includes('@{')) {
|
|
211
211
|
const regex = /@{([^}]*)}/g;
|