...
|
...
|
@@ -90,6 +90,9 @@ export default class Product extends Component { |
|
|
}}
|
|
|
onPress={() => {
|
|
|
this.props.onPressDelete && this.props.onPressDelete(rowData, rowID);
|
|
|
if (this.state.currentlyOpenSwipeable) {
|
|
|
this.state.currentlyOpenSwipeable.recenter();
|
|
|
}
|
|
|
}}
|
|
|
>
|
|
|
<Text style={{color: 'white', fontSize: 17, paddingLeft: 20}}>删除</Text>
|
...
|
...
|
@@ -119,7 +122,7 @@ export default class Product extends Component { |
|
|
let {yh_exposureData} = rowData.toJS();
|
|
|
|
|
|
|
|
|
let buttons = editing?null: this.rightButtons(rowData, rowID);
|
|
|
let buttons = editing? null: this.rightButtons(rowData, rowID);
|
|
|
return (
|
|
|
<Swipeable
|
|
|
rightButtons={buttons}
|
...
|
...
|
|