king
2022-11-28 0ba276caaffedaf757b932f26aac86f695008175
src/components/mk-icon/index.jsx
@@ -464,11 +464,15 @@
  render() {
    const { type, ...resProps } = this.props
    if (!type || !MkIcons[type]) return null
    return (
      MkIcons[type](resProps)
    )
    if (!type) {
      return null
    } else if (MkIcons[type]) {
      return (
        MkIcons[type](resProps)
      )
    } else {
      return <span className={'anticon ' + (resProps.className || '')} style={resProps.style || null} dangerouslySetInnerHTML={{ __html: type }}></span>
    }
  }
}
export default MkIcon