用template中寫完, 通過isShow可以實現(xiàn)動畫, 但是為什么我用render實現(xiàn)的就不好使了呢? 請問我的render的問題在哪里?切換有動畫 <transition name="fadeUp"> <span v-show="isShow" class="atom-popper"> <slot>{{content}}</slot> </span> </transition>切換無動畫 render(h) { return h( 'transition', { attrs: { name: 'fadeUp' } }, [ h( 'span', { class: ['atom-popper'], style: { display: this.isShow ? undefined : 'none' } }, [this.content || this.$slots.default] ) ] ); },
vue的render中如何實現(xiàn)v-show
翻閱古今
2019-03-05 09:11:18