zan-choose-dialog
Advanced tools
Comparing version 4.5.11 to 4.5.12
@@ -153,3 +153,4 @@ 'use strict'; | ||
data: [], | ||
selected: [] | ||
selected: [], | ||
loading: true | ||
}; | ||
@@ -180,3 +181,4 @@ return _this; | ||
sortType = _state.sortType, | ||
selected = _state.selected; | ||
selected = _state.selected, | ||
loading = _state.loading; | ||
@@ -201,2 +203,3 @@ | ||
sortType: sortType, | ||
loading: loading, | ||
selection: { | ||
@@ -285,5 +288,10 @@ selectedRowKeys: selected.map(function (s) { | ||
}).then(function (data) { | ||
_this2.setState((0, _assign2['default'])({}, options, formatData(data))); | ||
_this2.setState((0, _assign2['default'])({}, options, formatData(data), { | ||
loading: false | ||
})); | ||
})['catch'](function (err) { | ||
return _notify2['default'].error(err); | ||
_notify2['default'].error(err); | ||
_this2.setState({ | ||
loading: false | ||
}); | ||
}); | ||
@@ -290,0 +298,0 @@ } |
{ | ||
"name": "zan-choose-dialog", | ||
"version": "4.5.11", | ||
"version": "4.5.12", | ||
"description": "这是一个React组件", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1224992
34275