pawa-ssr 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/power.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawa-ssr",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "pawajs ssr libary",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/power.js CHANGED
@@ -88,11 +88,11 @@ export const For=(el,attr)=>{
88
88
  array.forEach((item,index)=>{
89
89
  const context=el._context
90
90
  const itemContext = {
91
- [arrayItem]: item,
92
91
  [indexes]: index,
93
92
  ...context
94
93
  }
95
- console.log(itemContext)
94
+ itemContext[arrayItem]=item
95
+ console.log(itemContext,arrayItem,item,array)
96
96
  const newElement=el.cloneNode(true)
97
97
  newElement.removeAttribute('server-for')
98
98
  newElement.setAttribute('s-data-for',convertToNumber(attr.value))