Merge pull request #273 from rijn/253

IE<=11 do not support toString.
This commit is contained in:
Aresn 2017-02-15 09:44:21 +08:00 committed by GitHub
commit d8de604ff5
6 changed files with 69 additions and 2 deletions

View file

@ -73,7 +73,7 @@
type: [String, Number],
default: 'auto',
validator (value) {
return value === 'auto' || toString.call(value) === '[object Number]';
return value === 'auto' || Object.prototype.toString.call(value) === '[object Number]';
}
}
},

View file

@ -68,7 +68,7 @@ function notice (type, options) {
key: noticeKey.toString(),
duration: duration,
style: {},
transitionName: 'move-right',
transitionName: 'move-notice',
content: content,
onClose: onClose,
closable: true