From ed5aac57295156ef6767df4b4cd998f866565d88 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 26 五月 2021 19:07:45 +0800 Subject: [PATCH] 2021-05-26 --- src/menu/components/card/data-card/index.jsx | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/menu/components/card/data-card/index.jsx b/src/menu/components/card/data-card/index.jsx index bff2965..8477bb5 100644 --- a/src/menu/components/card/data-card/index.jsx +++ b/src/menu/components/card/data-card/index.jsx @@ -378,12 +378,17 @@ addCard = () => { let card = fromJS(this.state.card).toJS() + let height = card.subcards[0].style.height + if (height === 'auto') { + height = '100px' + } let newcard = { uuid: Utils.getuuid(), $cardType: 'extendCard', setting: { width: 6, type: 'simple', click: 'button'}, style: { + height, borderWidth: '1px', borderColor: '#e8e8e8', paddingTop: '15px', paddingBottom: '15px', paddingLeft: '15px', paddingRight: '15px', marginLeft: '8px', marginRight: '8px', marginTop: '8px', marginBottom: '8px' -- Gitblit v1.8.0