From 90fff0ec484bbb3a10248f389cb9c4bddeff93ed Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 一月 2023 18:10:44 +0800 Subject: [PATCH] 2023-01-31 --- src/pc/components/login/normal-login/index.jsx | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/pc/components/login/normal-login/index.jsx b/src/pc/components/login/normal-login/index.jsx index a379502..60a3e17 100644 --- a/src/pc/components/login/normal-login/index.jsx +++ b/src/pc/components/login/normal-login/index.jsx @@ -71,6 +71,11 @@ if (_card.wrap.classify === 'signin') { active = 'signin' } + if (!_card.style.minHeight && _card.wrap.height) { + _card.style.minHeight = _card.wrap.height + delete _card.wrap.height + } + this.setState({ active, card: _card @@ -114,7 +119,7 @@ changeStyle = () => { const { card } = this.state - MKEmitter.emit('changeStyle', ['width', 'background', 'border', 'padding', 'margin', 'clear'], card.style, this.getStyle) + MKEmitter.emit('changeStyle', ['width', 'background', 'border', 'padding', 'margin', 'clear', 'minHeight'], card.style, this.getStyle) } getStyle = (style) => { -- Gitblit v1.8.0