We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
浏览器错误提示: Uncaught TypeError: Cannot read property 'style' of undefined componentDidUpdate @ mixin.js?a157:33 measureLifeCyclePerf @ ReactCompositeComponent.js?d2b3:75 (anonymous function) @ ReactCompositeComponent.js?d2b3:729 notifyAll @ CallbackQueue.js?f006:76 ON_DOM_READY_QUEUEING.close @ ReactReconcileTransaction.js?ba2e:80 TransactionImpl.closeAll @ Transaction.js?f15f:206 TransactionImpl.perform @ Transaction.js?f15f:153 TransactionImpl.perform @ Transaction.js?f15f:140 _assign.perform @ ReactUpdates.js?8e6b:89 flushBatchedUpdates @ ReactUpdates.js?8e6b:172 TransactionImpl.closeAll @ Transaction.js?f15f:206 TransactionImpl.perform @ Transaction.js?f15f:153 ReactDefaultBatchingStrategy.batchedUpdates @ ReactDefaultBatchingStrategy.js?e9be:62 enqueueUpdate @ ReactUpdates.js?8e6b:200 enqueueUpdate @ ReactUpdateQueue.js?6531:24 ReactUpdateQueue.enqueueSetState @ ReactUpdateQueue.js?6531:209 ReactComponent.setState @ ReactComponent.js?702a:63 (anonymous function) @ Main.js?1af4:155
找到mixin.js?a157:33 如下: 'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var _react = require('react');
exports["default"] = { propTypes: { prefixCls: _react.PropTypes.string, strokeWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]), strokeColor: _react.PropTypes.string, trailWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]), trailColor: _react.PropTypes.string, strokeLinecap: _react.PropTypes.oneOf(['round', 'square']), style: _react.PropTypes.object, className: _react.PropTypes.string }, getDefaultProps: function getDefaultProps() { return { prefixCls: 'rc-progress', strokeWidth: 1, strokeColor: '#2db7f5', trailWidth: 1, trailColor: '#D9D9D9', strokeLinecap: 'round', className: '' }; }, componentDidUpdate: function componentDidUpdate() { var now = Date.now(); this.path. **style**.transitionDuration = '0.3s, 0.3s'; if (this.prevTimeStamp && now - this.prevTimeStamp < 100) { this.path.style.transitionDuration = '0s, 0s'; } this.prevTimeStamp = Date.now(); } }; module.exports = exports['default'];
**style**
The text was updated successfully, but these errors were encountered:
can you give a reproducible demo?
Sorry, something went wrong.
No branches or pull requests
浏览器错误提示:
Uncaught TypeError: Cannot read property 'style' of undefined
componentDidUpdate @ mixin.js?a157:33
measureLifeCyclePerf @ ReactCompositeComponent.js?d2b3:75
(anonymous function) @ ReactCompositeComponent.js?d2b3:729
notifyAll @ CallbackQueue.js?f006:76
ON_DOM_READY_QUEUEING.close @ ReactReconcileTransaction.js?ba2e:80
TransactionImpl.closeAll @ Transaction.js?f15f:206
TransactionImpl.perform @ Transaction.js?f15f:153
TransactionImpl.perform @ Transaction.js?f15f:140
_assign.perform @ ReactUpdates.js?8e6b:89
flushBatchedUpdates @ ReactUpdates.js?8e6b:172
TransactionImpl.closeAll @ Transaction.js?f15f:206
TransactionImpl.perform @ Transaction.js?f15f:153
ReactDefaultBatchingStrategy.batchedUpdates @ ReactDefaultBatchingStrategy.js?e9be:62
enqueueUpdate @ ReactUpdates.js?8e6b:200
enqueueUpdate @ ReactUpdateQueue.js?6531:24
ReactUpdateQueue.enqueueSetState @ ReactUpdateQueue.js?6531:209
ReactComponent.setState @ ReactComponent.js?702a:63
(anonymous function) @ Main.js?1af4:155
找到mixin.js?a157:33 如下:
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
exports["default"] = {
propTypes: {
prefixCls: _react.PropTypes.string,
strokeWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]),
strokeColor: _react.PropTypes.string,
trailWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]),
trailColor: _react.PropTypes.string,
strokeLinecap: _react.PropTypes.oneOf(['round', 'square']),
style: _react.PropTypes.object,
className: _react.PropTypes.string
},
getDefaultProps: function getDefaultProps() {
return {
prefixCls: 'rc-progress',
strokeWidth: 1,
strokeColor: '#2db7f5',
trailWidth: 1,
trailColor: '#D9D9D9',
strokeLinecap: 'round',
className: ''
};
},
componentDidUpdate: function componentDidUpdate() {
var now = Date.now();
this.path.
**style**
.transitionDuration = '0.3s, 0.3s';if (this.prevTimeStamp && now - this.prevTimeStamp < 100) {
this.path.style.transitionDuration = '0s, 0s';
}
this.prevTimeStamp = Date.now();
}
};
module.exports = exports['default'];
The text was updated successfully, but these errors were encountered: