vue未知高度展开收起动画
<script lang="ts" setup> import type { RendererElement } from 'vue' const on = { beforeEnter(el: RendererElement) { if (!el.dataset) el.dataset = {} el.dataset.oldPaddingTop = el.style.paddingTop ...
<script lang="ts" setup> import type { RendererElement } from 'vue' const on = { beforeEnter(el: RendererElement) { if (!el.dataset) el.dataset = {} el.dataset.oldPaddingTop = el.style.paddingTop ...