From cc1d7095ec6df622efbdaaabe3dec78ca3599d90 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 27 五月 2022 17:01:14 +0800 Subject: [PATCH] X轴自定义名称长度 --- 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