icon组件增加extend方法
parent
cc3c8b166d
commit
ffc66d9550
|
@ -13,6 +13,12 @@ if (window.EXT_SVG_DICT) {
|
||||||
Object.assign(dict, EXT_SVG_DICT)
|
Object.assign(dict, EXT_SVG_DICT)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
extend(icons = {}) {
|
||||||
|
Object.assign(dict, icons)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class Icon extends Component {
|
class Icon extends Component {
|
||||||
static props = {
|
static props = {
|
||||||
name: {
|
name: {
|
||||||
|
|
Loading…
Reference in New Issue