From 932680bfc0bc017539b20711787bb4f88c9d3855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E7=AB=B9?= Date: Sun, 9 Oct 2022 17:12:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20disabled=20?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-ui/src/components/swipe-action/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/taro-ui/src/components/swipe-action/index.tsx b/packages/taro-ui/src/components/swipe-action/index.tsx index bc0169d1..07a9f96c 100644 --- a/packages/taro-ui/src/components/swipe-action/index.tsx +++ b/packages/taro-ui/src/components/swipe-action/index.tsx @@ -138,7 +138,7 @@ export default class AtSwipeAction extends React.Component< public render(): JSX.Element { const { componentId, offsetSize } = this.state - const { options } = this.props + const { options, disabled } = this.props const rootClass = classNames('at-swipe-action', this.props.className) return ( @@ -163,6 +163,7 @@ export default class AtSwipeAction extends React.Component< x={offsetSize} onTouchEnd={this.onTouchEnd} onChange={this.onChange} + disabled={disabled} style={{ width: `${this.eleWidth}px`, left: `${this.maxOffsetSize}px`