hookehuyr

fix 新增错误滚动到相应位置

1 <!-- 1 <!--
2 * @Date: 2022-07-18 10:22:22 2 * @Date: 2022-07-18 10:22:22
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-12-21 18:14:56 4 + * @LastEditTime: 2022-12-21 18:35:04
5 * @FilePath: /data-table/src/views/index.vue 5 * @FilePath: /data-table/src/views/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
31 <div v-if="PHeader.label" class="table-title">{{ PHeader.label }}</div> 31 <div v-if="PHeader.label" class="table-title">{{ PHeader.label }}</div>
32 <div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" /> 32 <div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" />
33 <van-config-provider :theme-vars="themeVars"> 33 <van-config-provider :theme-vars="themeVars">
34 - <van-form @submit="onSubmit"> 34 + <van-form @submit="onSubmit" scroll-to-error="true">
35 <van-cell-group :border="false"> 35 <van-cell-group :border="false">
36 <component 36 <component
37 v-for="(item, index) in formData" 37 v-for="(item, index) in formData"
......