zpin-templates
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -210,15 +210,14 @@ 'use strict'; | ||
var arr = val.split(" "); | ||
var result = "{["; | ||
var result = ""; | ||
arr.forEach(function (v, i) { | ||
result += 'this.styles["' + v.trim() + '"]'; | ||
result += 'this.styles["' + v.trim() + '"],'; | ||
if (classExclude.indexOf(v.trim()) > 0) { | ||
result += '' + v.trim(); | ||
result += '"' + v.trim() + '",'; | ||
} | ||
if (i != arr.length - 1) { | ||
result += ","; | ||
} | ||
}); | ||
result += "].join(' ')}"; | ||
if (result.endsWith(",")) { | ||
result = result.substr(0, result.length - 1); | ||
} | ||
result = '{[' + result + '].join(\' \')}'; | ||
} | ||
// console.log(result); | ||
props[propKey] = existing + utils.convertText(node, context, result); | ||
@@ -225,0 +224,0 @@ } |
2016.11.22 | ||
id选择器bug,rt-class bug | ||
2016.11.23 0.0.20 | ||
本地样式与公共样式重名问题 |
{ | ||
"name": "zpin-templates", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "Light weight templates for react -> write html get valid react code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -225,15 +225,14 @@ 'use strict'; | ||
var arr=val.split(" "); | ||
var result="{["; | ||
var result=""; | ||
arr.forEach(function (v,i) { | ||
result+=`this.styles["${v.trim()}"]`; | ||
result+=`this.styles["${v.trim()}"],`; | ||
if(classExclude.indexOf(v.trim())>0){ | ||
result+=`${v.trim()}`; | ||
result+=`"${v.trim()}",`; | ||
} | ||
if(i!=arr.length-1){ | ||
result+="," | ||
} | ||
}) | ||
result+="].join(' ')}" | ||
if(result.endsWith(",")){ | ||
result=result.substr(0,result.length-1); | ||
} | ||
result=`{[${result}].join(' ')}`; | ||
} | ||
// console.log(result); | ||
props[propKey] = existing + utils.convertText(node, context,result); | ||
@@ -240,0 +239,0 @@ } |
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
272470
3609