guhongwei %!s(int64=4) %!d(string=hai) anos
pai
achega
8520c7f26d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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: {},