pawajs 1.4.25 → 1.4.26
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/CHANGELOG.md +2 -1
- package/package.json +1 -1
- package/power.js +14 -8
package/CHANGELOG.md
CHANGED
|
@@ -10,4 +10,5 @@ CHANGELOG.md
|
|
|
10
10
|
+ version 1.4.19 - 1.4.21 made runEffect Global
|
|
11
11
|
+ version 1.4.22 fixed merger if when the ssr render else and else render down in pawajs engine
|
|
12
12
|
+ version 1.4.23 fixed _context from production
|
|
13
|
-
+ version 1.4.24 - add HMR mapping
|
|
13
|
+
+ version 1.4.24 - add HMR mapping
|
|
14
|
+
+ version 1.4.26 - fixed key getcomment id
|
package/package.json
CHANGED
package/power.js
CHANGED
|
@@ -176,13 +176,19 @@ export const If = (el, attr, stateContext,resume=false,notRender,stopResume) =>
|
|
|
176
176
|
let dataComment
|
|
177
177
|
let id=attr.name.slice(5)
|
|
178
178
|
const children=[]
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
179
|
+
try {
|
|
180
|
+
const setComment=(c)=>comment=c
|
|
181
|
+
const setEndComment=(c)=>endComment=c
|
|
182
|
+
getComment(el,setComment,id)
|
|
183
|
+
getEndComment(comment,setEndComment,id,children)
|
|
184
|
+
const numberIfChildren=notRender.index + children.length - 2
|
|
185
|
+
notRender.notRender=numberIfChildren
|
|
186
|
+
resumer.resume_if?.(el,attr,stateContext,{comment,endComment,id,children})
|
|
187
|
+
|
|
188
|
+
} catch (error) {
|
|
189
|
+
console.log(error,el ,attr,id);
|
|
190
|
+
|
|
191
|
+
}
|
|
186
192
|
|
|
187
193
|
}
|
|
188
194
|
}
|
|
@@ -584,7 +590,7 @@ export const Key = (el, attr, stateContext,resume=false,notRender,stopResume) =>
|
|
|
584
590
|
let comment
|
|
585
591
|
let endComment
|
|
586
592
|
let dataComment
|
|
587
|
-
let id=attr.name.slice(
|
|
593
|
+
let id=attr.name.slice(6)
|
|
588
594
|
const children=[]
|
|
589
595
|
const setComment=(c)=>comment=c
|
|
590
596
|
const setEndComment=(c)=>endComment=c
|