소스 검색

fix: type check failed for prop 'onClick' (#3028)

Li Kui 1 년 전
부모
커밋
4ac08e5ae5
1개의 변경된 파일1개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 8
      src/components/Form/src/components/FormAction.vue

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

@@ -14,13 +14,7 @@
         </Button>
         <slot name="submitBefore"></slot>
 
-        <Button
-          type="primary"
-          class="mr-2"
-          v-bind="getSubmitBtnOptions"
-          @click="submitAction"
-          v-if="showSubmitButton"
-        >
+        <Button type="primary" class="mr-2" v-bind="getSubmitBtnOptions" v-if="showSubmitButton">
           {{ getSubmitBtnOptions.text }}
         </Button>
 
@@ -41,7 +35,6 @@
 </template>
 <script lang="ts">
   import type { ColEx } from '../types/index';
-  //import type { ButtonProps } from 'ant-design-vue/es/button/buttonTypes';
   import { defineComponent, computed, PropType } from 'vue';
   import { Form, Col } from 'ant-design-vue';
   import { Button, ButtonProps } from '/@/components/Button';