File tree 1 file changed +20
-14
lines changed
mobile-ui/src/components/flow/components
1 file changed +20
-14
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useContext , useEffect } from "react" ;
2
2
import Form from "@/components/form" ;
3
- import FormTextArea from "@/components/form/textarea" ;
4
3
import { FlowViewReactContext } from "@/components/flow/view" ;
5
4
6
5
@@ -18,20 +17,27 @@ const FlowFormOpinion = ()=>{
18
17
< >
19
18
< Form
20
19
actionRef = { opinionAction }
21
- >
22
- < FormTextArea
23
- name = { "advice" }
24
- label = { "审批意见" }
25
- textAreaRows = { 2 }
26
- required = { true }
27
- validateFunction = { async ( content ) => {
28
- const value = content . value ;
29
- if ( value ) {
30
- return [ ] ;
20
+ loadFields = { async ( ) => {
21
+ return [
22
+ {
23
+ type :'textarea' ,
24
+ props :{
25
+ name :"advice" ,
26
+ label :"审批意见" ,
27
+ textAreaRows :2 ,
28
+ required :true ,
29
+ validateFunction :async ( content ) => {
30
+ const value = content . value ;
31
+ if ( value ) {
32
+ return [ ] ;
33
+ }
34
+ return [ "请输入审批意见" ] ;
35
+ }
36
+ }
31
37
}
32
- return [ "请输入审批意见" ] ;
33
- } }
34
- / >
38
+ ]
39
+ } }
40
+ >
35
41
</ Form >
36
42
</ >
37
43
)
You can’t perform that action at this time.
0 commit comments