zpin-templates
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -379,5 +379,5 @@ 'use strict'; | ||
//为循环加上key | ||
if (node.name != "rt-virtual" && !node.attribs["key"]) { | ||
node.attribs["key"] = "{Math.random()}"; | ||
} | ||
// if (node.name != "rt-virtual"&&!node.attribs["key"]) { | ||
// node.attribs["key"] = "{Math.random()}"; | ||
// } | ||
@@ -629,2 +629,6 @@ var arr = node.attribs[repeatAttr].split(' in '); | ||
} else if (tag.name === importAttr) { | ||
//2016.12.05 | ||
if (tag.attribs.from == "modules") { | ||
tag.attribs.from = "../../../compile/modules.js"; | ||
} | ||
handleImport(tag, context); | ||
@@ -631,0 +635,0 @@ } else if (firstTag === null) { |
{ | ||
"name": "zpin-templates", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Light weight templates for react -> write html get valid react code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -395,5 +395,5 @@ 'use strict'; | ||
//为循环加上key | ||
if (node.name != "rt-virtual"&&!node.attribs["key"]) { | ||
node.attribs["key"] = "{Math.random()}"; | ||
} | ||
// if (node.name != "rt-virtual"&&!node.attribs["key"]) { | ||
// node.attribs["key"] = "{Math.random()}"; | ||
// } | ||
@@ -636,2 +636,6 @@ const arr = node.attribs[repeatAttr].split(' in '); | ||
} else if (tag.name === importAttr) { | ||
//2016.12.05 | ||
if(tag.attribs.from=="modules"){ | ||
tag.attribs.from="../../../compile/modules.js"; | ||
} | ||
handleImport(tag, context); | ||
@@ -638,0 +642,0 @@ } else if (firstTag === null) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
272788
3617