From f895e8af9e6a393f71fec0dc26fdf1b9b6616cb4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 11 十二月 2020 18:53:04 +0800 Subject: [PATCH] 2020-12-11 --- src/menu/components/card/cardcellcomponent/dragaction/action.jsx | 16 +++------------- 1 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/menu/components/card/cardcellcomponent/dragaction/action.jsx b/src/menu/components/card/cardcellcomponent/dragaction/action.jsx index 3a4dcf0..a4bed7a 100644 --- a/src/menu/components/card/cardcellcomponent/dragaction/action.jsx +++ b/src/menu/components/card/cardcellcomponent/dragaction/action.jsx @@ -42,21 +42,11 @@ let btnElement = null if (card.show === 'icon') { - btnElement = (card.icon ? <Button className={'mk-link mk-' + card.class} style={card.btnstyle} type="link"><Icon type={card.icon}/></Button> : null) + btnElement = (<Button style={card.btnstyle} type="link"><Icon type={card.icon}/></Button>) } else if (card.show === 'link') { - btnElement = ( - <Button className={'mk-link mk-' + card.class} style={card.btnstyle} type="link">{card.label}{card.icon ? <Icon type={card.icon}/> : null}</Button> - ) + btnElement = (<Button style={card.btnstyle} type="link">{card.label}{card.icon ? <Icon type={card.icon}/> : null}</Button>) } else { - btnElement = ( - <Button - className={'mk-btn mk-' + card.class} - icon={card.icon} - style={card.btnstyle} - > - {card.label} - </Button> - ) + btnElement = (<Button icon={card.icon} style={card.btnstyle}> {card.label} </Button>) } return ( -- Gitblit v1.8.0