vue 使用element表格报错 哪里报错滑动到哪里

this.$nextTick(() => {
                            let isError = document.getElementsByClassName('is-error')
                            isError[0].scrollIntoView({
                                // 滚动到指定节点
                                // 值有start,center,end,nearest,当前显示在视图区域中间
                                block: 'center',
                                // 值有auto、instant,smooth,缓动动画(当前是慢速的)
                                behavior: 'smooth',
                            })
                        });

 

posted @ 2022-09-26 14:13  肥晨  阅读(33)  评论(0编辑  收藏  举报