Skip to content

Commit

Permalink
fix: 修复 disabled 不生效的问题 (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
洛竹 committed Dec 30, 2022
1 parent 34035c0 commit 8e9a7bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/taro-ui/src/components/swipe-action/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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`
Expand Down

0 comments on commit 8e9a7bd

Please sign in to comment.