瀏覽代碼

fix: FormAction组件 绑定表单提交事件 (#3036)

open-carp 1 年之前
父節點
當前提交
74a2f6209f
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/components/Form/src/components/FormAction.vue

+ 7 - 1
src/components/Form/src/components/FormAction.vue

@@ -14,7 +14,13 @@
         </Button>
         <slot name="submitBefore"></slot>
 
-        <Button type="primary" class="mr-2" v-bind="getSubmitBtnOptions" v-if="showSubmitButton">
+        <Button
+          type="primary"
+          class="mr-2"
+          v-bind="getSubmitBtnOptions"
+          @click="submitAction"
+          v-if="showSubmitButton"
+        >
           {{ getSubmitBtnOptions.text }}
         </Button>