king
2025-03-05 d384d922b294a210f9066a9ce2de0aa6c2898945
src/tabviews/zshare/actionList/asyncButtonComponent.jsx
@@ -21,7 +21,12 @@
      this.setState({component})
    }
    // <Button className="loading-skeleton" disabled={true}></Button> // 骨架按钮
    componentWillUnmount () {
      this.setState = () => {
        return
      }
    }
    render() {
      const C = this.state.component
      const btn = this.props.btn || {}
@@ -36,7 +41,7 @@
      return C ?
        <C {...this.props} /> :
        <Button className={'mk-btn mk-' + btn.class} style={style} icon={btn.icon} disabled={true} >{btn.label}</Button>
        <Button className={'mk-btn mk-' + btn.class} style={style} disabled={true} >{btn.label}</Button>
    }
  }
}