소스 검색

表单项异步方法暴露参数

tongshangming 2 년 전
부모
커밋
1739a330c6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/form/FormComp.vue

+ 1 - 1
src/components/form/FormComp.vue

@@ -28,7 +28,7 @@ const placeholder = (item: BasicFormItem) => {
 }
 
 if (props.item.request) {
-  props.item.request().then((res: any) => {
+  props.item.request(props.item).then((res: any) => {
     props.item.options = res
   })
 }