From 46f79b491173d284a4900d19e7aecf7509481438 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 21 一月 2022 17:21:25 +0800 Subject: [PATCH] 2022-01-21 --- src/tabviews/custom/components/card/cardcellList/asyncButtonComponent.jsx | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/src/tabviews/custom/components/card/cardcellList/asyncButtonComponent.jsx b/src/tabviews/custom/components/card/cardcellList/asyncButtonComponent.jsx index 9c160c8..b4313e8 100644 --- a/src/tabviews/custom/components/card/cardcellList/asyncButtonComponent.jsx +++ b/src/tabviews/custom/components/card/cardcellList/asyncButtonComponent.jsx @@ -1,6 +1,4 @@ import React, {Component} from 'react' -import { Button } from 'antd' - /** * @description 寮傛鍔犺浇妯″潡 * @param {*} importComponent @@ -24,11 +22,8 @@ // <Button className="loading-skeleton" disabled={true}></Button> // 楠ㄦ灦鎸夐挳 render() { const C = this.state.component - const btn = this.props.btn || {} - return C ? - <C {...this.props} /> : - <Button className={'mk-btn mk-' + btn.class} type={btn.show !== 'button' ? 'link' : ''} icon={btn.icon} disabled={true} >{btn.label}</Button> + return C ? <C {...this.props} /> : null } } } \ No newline at end of file -- Gitblit v1.8.0