diff --git a/src/components/icon/icon.ts b/src/components/icon/icon.ts index dca4c61..14a322b 100644 --- a/src/components/icon/icon.ts +++ b/src/components/icon/icon.ts @@ -41,7 +41,7 @@ Component({ }, methods: { _genSrcByIcon(v) { - this._genSrc(iconData[v][getFixedIconType(this.data.type)]) + this._genSrc(/.*<\/svg>/.test(v) ? v : iconData[v][getFixedIconType(this.data.type)]) }, _genSrcByType(v) { const iconDataItem = iconData[this.data.icon]