File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codingapi/form-mobile" ,
3
- "version" : " 0.0.17 " ,
3
+ "version" : " 0.0.20 " ,
4
4
"description" : " A UI Framework built with React and TypeScript" ,
5
5
"keywords" : [
6
6
" ui" ,
35
35
"react-dom" : " ^16.8.0 || ^17.0.0 || ^18.0.0"
36
36
},
37
37
"dependencies" : {
38
- "@codingapi/ui-framework" : " ^0.0.17 " ,
38
+ "@codingapi/ui-framework" : " ^0.0.20 " ,
39
39
"antd-mobile" : " ^5.39.0"
40
40
},
41
41
"scripts" : {
Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ import {RightOutline} from "antd-mobile-icons";
5
5
import { formFieldInit } from "./common" ;
6
6
import "./index.scss" ;
7
7
8
- const valueToForm = ( value : string ) => {
8
+ const valueToForm = ( value : string | string [ ] ) => {
9
9
if ( value && value . length > 0 ) {
10
+ if ( Array . isArray ( value ) ) {
11
+ return value ;
12
+ }
10
13
return value . split ( "," ) ;
11
14
}
12
15
return value ;
You can’t perform that action at this time.
0 commit comments