This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

icon支持拓展

old
宇天 2020-06-15 20:09:45 +08:00
parent 538f22f453
commit fff7dc1bb3
1 changed files with 6 additions and 1 deletions

View File

@ -96,6 +96,11 @@
<script> <script>
import SVG_DICT from './svg' import SVG_DICT from './svg'
let dict = SVG_DICT
if (window.EXT_SVG_DICT) {
Object.assign(dict, EXT_SVG_DICT)
}
export default class Icon { export default class Icon {
props = { props = {
is: '' is: ''
@ -121,7 +126,7 @@ export default class Icon {
// 绘制图标 // 绘制图标
drawPath() { drawPath() {
var { is } = this.props var { is } = this.props
var path = SVG_DICT[is] var path = dict[is]
if (!this.__ICO__) { if (!this.__ICO__) {
return return
} }