From c1d5d908e7334bab5822cf3d67786a2a5435d6be Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 06 四月 2023 11:11:08 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/zshare/actionList/index.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/actionList/index.jsx b/src/tabviews/zshare/actionList/index.jsx index 10871f6..6880a1f 100644 --- a/src/tabviews/zshare/actionList/index.jsx +++ b/src/tabviews/zshare/actionList/index.jsx @@ -50,6 +50,12 @@ } } + componentDidMount() { + if (this.buttonRef && this.buttonRef.offsetHeight > 65) { + this.buttonRef.classList.add('double-line') + } + } + shouldComponentUpdate (nextProps, nextState) { return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState)) } @@ -201,7 +207,7 @@ if (fixed && MenuID) { return ( <Affix offsetTop={48}> - <div className="button-list toolbar-button" id={fixed ? MenuID + 'mainaction' : ''}> + <div className="button-list toolbar-button" ref={ref => this.buttonRef = ref} id={fixed ? MenuID + 'mainaction' : ''}> {this.getButtonList(actions)} {mores ? <Dropdown overlay={<div className="mk-button-dropdown-wrap">{this.getButtonList(mores)}</div>} trigger={['hover']}> <div className="mk-button-more">鏇村<DownOutlined/></div> @@ -211,7 +217,7 @@ ) } else { return ( - <div className="button-list toolbar-button" id={fixed ? MenuID + 'mainaction' : ''}> + <div className="button-list toolbar-button" ref={ref => this.buttonRef = ref} id={fixed ? MenuID + 'mainaction' : ''}> {this.getButtonList(actions)} {mores ? <Dropdown overlay={<div className="mk-button-dropdown-wrap">{this.getButtonList(mores)}</div>} trigger={['hover']}> <div className="mk-button-more">鏇村<DownOutlined/></div> -- Gitblit v1.8.0