nuke-icon
Advanced tools
Comparing version 2.0.7 to 2.0.8
# Changelog | ||
## 2.0.8 / 2018-04-10 | ||
* [[ba40c75](http://gitlab.alibaba-inc.com/nuke/icon/commit/ba40c758519ea2f812a9cd91f1a1f6d8cb3f52a4)] - `fix` add .ttf when mount | ||
## 2.0.7 / 2018-04-10 | ||
@@ -5,0 +9,0 @@ |
@@ -67,3 +67,7 @@ /** @jsx createElement */ | ||
if (type === 'iconfont') { | ||
(0, _nukeIconfont.Iconfont)({ name: this.fontName, url: this.fontURL }); | ||
var tmpFontURL = this.fontURL; | ||
if (this.fontURL.indexOf('.ttf') <= -1) { | ||
tmpFontURL += '.ttf'; | ||
} | ||
(0, _nukeIconfont.Iconfont)({ name: this.fontName, url: tmpFontURL }); | ||
} | ||
@@ -70,0 +74,0 @@ } |
{ | ||
"name": "nuke-icon", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "图标", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
@@ -27,3 +27,7 @@ /** @jsx createElement */ | ||
if (type === 'iconfont') { | ||
Iconfont({ name: this.fontName, url: this.fontURL }); | ||
let tmpFontURL = this.fontURL; | ||
if (this.fontURL.indexOf('.ttf') <= -1) { | ||
tmpFontURL += '.ttf'; | ||
} | ||
Iconfont({ name: this.fontName, url: tmpFontURL }); | ||
} | ||
@@ -30,0 +34,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
37026
642