icon组件增加extend方法

master
yutent 2023-11-24 14:28:49 +08:00
parent cc3c8b166d
commit ffc66d9550
1 changed files with 6 additions and 0 deletions

View File

@ -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: {