kanban-pannel
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -229,2 +229,4 @@ import React, { useState } from 'react'; | ||
props.endDrugCard && dropTarget && props.endDrugCard(dropTarget); | ||
} else { | ||
props.onResetCard && props.onResetCard(dropTarget); | ||
} | ||
@@ -680,2 +682,3 @@ | ||
endDrugCard: _this.props.endDrugCard, | ||
onResetCard: _this.props.onResetCard, | ||
isScrollingX: _this.props.isScrolling, | ||
@@ -928,2 +931,3 @@ startScrollingX: _this.props.startScrolling, | ||
tempPropsDataSource: _this.props.dataSource || [], | ||
beforeDrugDataSource: formateDataSource(_this.props.dataSource || []), | ||
dataSource: formateDataSource(_this.props.dataSource || []), | ||
@@ -958,2 +962,7 @@ isScrolling: false, | ||
}; | ||
_this.setState({ | ||
beforeDrugDataSource: _this.state.dataSource | ||
}); | ||
_this.props.beginDrugCard && _this.props.beginDrugCard(_this.drugSourceCardObj); | ||
@@ -1026,3 +1035,7 @@ }; | ||
_this.onResetCard = function () {}; | ||
_this.onResetCard = function () { | ||
_this.setState({ | ||
dataSource: _this.state.beforeDrugDataSource | ||
}); | ||
}; | ||
@@ -1211,2 +1224,3 @@ _this.getClientWH = function () { | ||
endDrugCard: _this2.endDrugCard, | ||
onResetCard: _this2.onResetCard, | ||
height: height, | ||
@@ -1213,0 +1227,0 @@ containerWidth: width, |
@@ -235,2 +235,4 @@ 'use strict'; | ||
props.endDrugCard && dropTarget && props.endDrugCard(dropTarget); | ||
} else { | ||
props.onResetCard && props.onResetCard(dropTarget); | ||
} | ||
@@ -686,2 +688,3 @@ | ||
endDrugCard: _this.props.endDrugCard, | ||
onResetCard: _this.props.onResetCard, | ||
isScrollingX: _this.props.isScrolling, | ||
@@ -934,2 +937,3 @@ startScrollingX: _this.props.startScrolling, | ||
tempPropsDataSource: _this.props.dataSource || [], | ||
beforeDrugDataSource: formateDataSource(_this.props.dataSource || []), | ||
dataSource: formateDataSource(_this.props.dataSource || []), | ||
@@ -964,2 +968,7 @@ isScrolling: false, | ||
}; | ||
_this.setState({ | ||
beforeDrugDataSource: _this.state.dataSource | ||
}); | ||
_this.props.beginDrugCard && _this.props.beginDrugCard(_this.drugSourceCardObj); | ||
@@ -1032,3 +1041,7 @@ }; | ||
_this.onResetCard = function () {}; | ||
_this.onResetCard = function () { | ||
_this.setState({ | ||
dataSource: _this.state.beforeDrugDataSource | ||
}); | ||
}; | ||
@@ -1217,2 +1230,3 @@ _this.getClientWH = function () { | ||
endDrugCard: _this2.endDrugCard, | ||
onResetCard: _this2.onResetCard, | ||
height: height, | ||
@@ -1219,0 +1233,0 @@ containerWidth: width, |
@@ -31,2 +31,3 @@ import React from 'react'; | ||
dataSource: any[]; | ||
beforeDrugDataSource: any[]; | ||
tempDataSource: any[]; | ||
@@ -33,0 +34,0 @@ collapseLists: string | number[]; |
@@ -23,4 +23,5 @@ import { ListProps } from './interface'; | ||
endDrugCard: Function; | ||
onResetCard: Function; | ||
} | ||
declare const _default: any; | ||
export default _default; |
{ | ||
"name": "kanban-pannel", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
104502
2472