easy3wui 4.0.35 → 4.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -188,7 +188,7 @@ var Easy3wDownLoad = function (_Component) {
|
|
|
188
188
|
var objPreviewFileNew = (0, _extends3['default'])({}, _comonConfig.objPreviewFile, this.props.objPreviewFile);
|
|
189
189
|
var previewFileFlag = objPreviewFileNew.previewFileFlag,
|
|
190
190
|
_objPreviewFileNew$do = objPreviewFileNew.downloadFileFlag,
|
|
191
|
-
downloadFileFlag = _objPreviewFileNew$do === undefined ? '' : _objPreviewFileNew$do,
|
|
191
|
+
downloadFileFlag = _objPreviewFileNew$do === undefined ? '1' : _objPreviewFileNew$do,
|
|
192
192
|
previewFileType = objPreviewFileNew.previewFileType;
|
|
193
193
|
|
|
194
194
|
var retObj = '';
|
|
@@ -105,6 +105,13 @@ var Easy3wGridPage = function (_Component) {
|
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
+
Easy3wGridPage.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
109
|
+
var that = this;
|
|
110
|
+
if (this.props.totalResult && this.props.totalResult !== prevProps.totalResult) {
|
|
111
|
+
that.setState({ pagination: { offset: 1, limit: 10 } });
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
108
115
|
Easy3wGridPage.prototype.render = function render() {
|
|
109
116
|
var _this2 = this;
|
|
110
117
|
|