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