king
2024-03-18 8881f69f5d7127a4090184b3ea7c9cbf9574100e
src/tabviews/zshare/actionList/popupbutton/index.jsx
@@ -20,6 +20,7 @@
    btn: PropTypes.object,            // 按钮
    setting: PropTypes.any,           // 页面通用设置
    disabled: PropTypes.any,          // 行按钮禁用
    name: PropTypes.any
  }
  state = {
@@ -303,7 +304,7 @@
  }
  render() {
    const { btn } = this.props
    const { btn, name } = this.props
    const { loading, disabled, hidden } = this.state
    if (hidden) return null
@@ -314,10 +315,10 @@
    let className = ''
    if (btn.show === 'button') {
      label = btn.label
      label = name || btn.label
      icon = btn.icon || ''
    } else if (btn.show === 'link') {
      label = <span>{btn.label}{btn.icon ? <MkIcon style={{marginLeft: '8px'}} type={btn.icon}/> : ''}</span>
      label = <span>{name || btn.label}{btn.icon ? <MkIcon style={{marginLeft: '8px'}} type={btn.icon}/> : ''}</span>
      icon = ''
    } else if (btn.show === 'icon') {
      icon = btn.icon || ''