Skip to content

Commit 8e9a7bd

Browse files
author
洛竹
authored
fix: 修复 disabled 不生效的问题 (#1549)
1 parent 34035c0 commit 8e9a7bd

File tree

1 file changed

+2
-1
lines changed
  • packages/taro-ui/src/components/swipe-action

1 file changed

+2
-1
lines changed

packages/taro-ui/src/components/swipe-action/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default class AtSwipeAction extends React.Component<
138138

139139
public render(): JSX.Element {
140140
const { componentId, offsetSize } = this.state
141-
const { options } = this.props
141+
const { options, disabled } = this.props
142142
const rootClass = classNames('at-swipe-action', this.props.className)
143143

144144
return (
@@ -163,6 +163,7 @@ export default class AtSwipeAction extends React.Component<
163163
x={offsetSize}
164164
onTouchEnd={this.onTouchEnd}
165165
onChange={this.onChange}
166+
disabled={disabled}
166167
style={{
167168
width: `${this.eleWidth}px`,
168169
left: `${this.maxOffsetSize}px`

0 commit comments

Comments
 (0)