guhongwei 4 lat temu
rodzic
commit
8520c7f26d
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/views/question.vue

+ 3 - 1
src/views/question.vue

@@ -34,7 +34,7 @@
             </span>
           </el-col>
           <el-col :span="24" class="btn">
-            <el-button type="primary" @click="onSubmit">提交</el-button>
+            <van-button :loading="loading" round type="info" size="large" @click="onSubmit" :loading-text="loadingText">提交</van-button>
           </el-col>
         </el-form>
       </el-col>
@@ -49,10 +49,12 @@ export default {
   props: {
     info: { type: Object, required: true },
     form: null,
+    loading: Boolean,
   },
   components: {},
   data: () => ({
     task: {},
+    loadingText: '加载中...',
   }),
   created() {},
   computed: {},