界面
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/b986cdb271564dcaaff72a8cd385755d.png)
展开后自动滚动,如图:
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/6f0c57f8d699421eb8addff88ead1d81.png)
技术
vue3 + ts + tailwindcss
代码
<div v-if="form.extraProperties?.showConfirm" ref="confirmRef">
内容区域
</div>
const confirmRef = ref()
function changeConfirm(e) {
if (e) {
nextTick(() => {
confirmRef.value.scrollIntoView({ behavior: 'smooth', block: 'start' })
})
}
}