From 432b788acf901b0720184b8ee8bc81a2e6fa47e0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 28 九月 2021 18:22:02 +0800 Subject: [PATCH] 2021-09-28 --- src/tabviews/zshare/actionList/asyncButtonComponent.jsx | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/tabviews/zshare/actionList/asyncButtonComponent.jsx b/src/tabviews/zshare/actionList/asyncButtonComponent.jsx index 695f378..30d70ed 100644 --- a/src/tabviews/zshare/actionList/asyncButtonComponent.jsx +++ b/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> } } } \ No newline at end of file -- Gitblit v1.8.0