Skip to content

Commit 2150c4c

Browse files
committed
update 0.0.20
1 parent 3bc3301 commit 2150c4c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codingapi/form-mobile",
3-
"version": "0.0.17",
3+
"version": "0.0.20",
44
"description": "A UI Framework built with React and TypeScript",
55
"keywords": [
66
"ui",
@@ -35,7 +35,7 @@
3535
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
3636
},
3737
"dependencies": {
38-
"@codingapi/ui-framework": "^0.0.17",
38+
"@codingapi/ui-framework": "^0.0.20",
3939
"antd-mobile": "^5.39.0"
4040
},
4141
"scripts": {

src/Form/cascader.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import {RightOutline} from "antd-mobile-icons";
55
import {formFieldInit} from "./common";
66
import "./index.scss";
77

8-
const valueToForm = (value: string) => {
8+
const valueToForm = (value: string|string[]) => {
99
if (value && value.length > 0) {
10+
if(Array.isArray(value)) {
11+
return value;
12+
}
1013
return value.split(",");
1114
}
1215
return value;

0 commit comments

Comments
 (0)