zpin-templates
Advanced tools
Comparing version 0.0.2 to 0.0.4
@@ -180,8 +180,4 @@ 'use strict'; | ||
} else if (key === classAttr || key === reactSupport.classNameProp) { | ||
//20161103 | ||
//多class问题 | ||
val = val.trim(); | ||
// console.log(val) | ||
// if(val.indexOf("{this.styles.")<0){ | ||
// val="{this.styles."+val+"}"; | ||
// } | ||
if (val.indexOf("{this.styles.") < 0) { | ||
@@ -197,8 +193,4 @@ var arr = val.split(" "); | ||
result += "].join(' ')}"; | ||
// val="{this.styles."+val+"}"; | ||
} | ||
// console.log(result);1 | ||
props[propKey] = existing + utils.convertText(node, context, result); | ||
// props[propKey] = existing + utils.convertText(node, context,val.trim()); | ||
// props[propKey] = existing + utils.convertText(node, context, val.trim()); | ||
} | ||
@@ -205,0 +197,0 @@ } else if (!_.startsWith(key, 'rt-')) { |
{ | ||
"name": "zpin-templates", | ||
"version": "0.0.2", | ||
"version": "0.0.4", | ||
"description": "Light weight templates for react -> write html get valid react code", | ||
"main": "./dist/cli.js", | ||
"main": "index.js", | ||
"bin": { | ||
@@ -38,2 +38,3 @@ "rt": "./bin/rt.js" | ||
"esprima": "^3.0.0", | ||
"loader-utils": "^0.2.16", | ||
"lodash": "^4.16.2", | ||
@@ -40,0 +41,0 @@ "normalize-html-whitespace": "^0.2.0", |
@@ -194,8 +194,4 @@ 'use strict'; | ||
} else if (key === classAttr || key === reactSupport.classNameProp) { | ||
//20161103 | ||
//多class问题 | ||
val=val.trim(); | ||
// console.log(val) | ||
// if(val.indexOf("{this.styles.")<0){ | ||
// val="{this.styles."+val+"}"; | ||
// } | ||
if(val.indexOf("{this.styles.")<0){ | ||
@@ -211,8 +207,4 @@ var arr=val.split(" "); | ||
result+="].join(' ')}" | ||
// val="{this.styles."+val+"}"; | ||
} | ||
// console.log(result);1 | ||
props[propKey] = existing + utils.convertText(node, context,result); | ||
// props[propKey] = existing + utils.convertText(node, context,val.trim()); | ||
// props[propKey] = existing + utils.convertText(node, context, val.trim()); | ||
} | ||
@@ -219,0 +211,0 @@ } else if (!_.startsWith(key, 'rt-')) { |
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
66
297520
10
3634
+ Addedloader-utils@^0.2.16
+ Addedbig.js@3.2.0(transitive)
+ Addedemojis-list@2.1.0(transitive)
+ Addedjson5@0.5.1(transitive)
+ Addedloader-utils@0.2.17(transitive)
+ Addedobject-assign@4.1.1(transitive)