king
2022-09-26 b32c94359e13a0ac700be22f480847a1d18d83ec
src/tabviews/zshare/actionList/asyncButtonComponent.jsx
@@ -21,12 +21,22 @@
      this.setState({component})
    }
    // <Button className="loading-skeleton" disabled={true}></Button> // 骨架按钮
    render() {
      const C = this.state.component
      const btn = this.props.btn || {}
      let style = {}
      if (!C && btn.style) {
        style.marginRight = btn.style.marginRight || ''
        style.marginLeft = btn.style.marginLeft || ''
        style.marginTop = btn.style.marginTop || ''
        style.marginBottom = btn.style.marginBottom || ''
      }
      return C ?
        <C {...this.props} /> :
        <Button className="loading-skeleton" disabled={true}></Button>
        <Button className={'mk-btn mk-' + btn.class} style={style} icon={btn.icon} disabled={true} >{btn.label}</Button>
    }
  }
}