Commit ca1bdd43 authored by Furybean's avatar Furybean Committed by 杨奕

Tree: try to fix ie10 transition error.

parent 8a4b7ba6
class Transition { class Transition {
beforeEnter(el) { beforeEnter(el) {
if (!el.dataset) el.dataset = {};
el.dataset.oldPaddingTop = el.style.paddingTop; el.dataset.oldPaddingTop = el.style.paddingTop;
el.dataset.oldPaddingBottom = el.style.paddingBottom; el.dataset.oldPaddingBottom = el.style.paddingBottom;
el.style.height = '0'; el.style.height = '0';
...@@ -31,6 +32,7 @@ class Transition { ...@@ -31,6 +32,7 @@ class Transition {
} }
beforeLeave(el) { beforeLeave(el) {
if (!el.dataset) el.dataset = {};
el.dataset.oldPaddingTop = el.style.paddingTop; el.dataset.oldPaddingTop = el.style.paddingTop;
el.dataset.oldPaddingBottom = el.style.paddingBottom; el.dataset.oldPaddingBottom = el.style.paddingBottom;
el.dataset.oldOverflow = el.style.overflow; el.dataset.oldOverflow = el.style.overflow;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment