@faasjs/ant-design 0.0.2-beta.441 → 0.0.2-beta.442
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -157,7 +157,7 @@ function transferOptions(options) {
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
function transferValue(type, value) {
|
|
160
|
-
if (typeof value === "undefined" || value === null || value === "" || Array.isArray(value) && !value.length)
|
|
160
|
+
if (typeof value === "undefined" || value === null || value === "" || value === "null" || value === "undefined" || Array.isArray(value) && !value.length)
|
|
161
161
|
return null;
|
|
162
162
|
if (!type)
|
|
163
163
|
type = "string";
|
|
@@ -199,7 +199,7 @@ function DescriptionItemContent(props) {
|
|
|
199
199
|
propsCopy.item.options = transferOptions(propsCopy.item.options);
|
|
200
200
|
}
|
|
201
201
|
propsCopy.value = transferValue(propsCopy.item.type, propsCopy.value);
|
|
202
|
-
if (propsCopy.item.options &&
|
|
202
|
+
if (propsCopy.item.options && propsCopy.value !== null) {
|
|
203
203
|
if (propsCopy.item.type.endsWith("[]"))
|
|
204
204
|
propsCopy.value = propsCopy.value.map((v) => {
|
|
205
205
|
var _a3;
|
package/dist/index.mjs
CHANGED
|
@@ -110,7 +110,7 @@ function transferOptions(options) {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
function transferValue(type, value) {
|
|
113
|
-
if (typeof value === "undefined" || value === null || value === "" || Array.isArray(value) && !value.length)
|
|
113
|
+
if (typeof value === "undefined" || value === null || value === "" || value === "null" || value === "undefined" || Array.isArray(value) && !value.length)
|
|
114
114
|
return null;
|
|
115
115
|
if (!type)
|
|
116
116
|
type = "string";
|
|
@@ -160,7 +160,7 @@ function DescriptionItemContent(props) {
|
|
|
160
160
|
propsCopy.item.options = transferOptions(propsCopy.item.options);
|
|
161
161
|
}
|
|
162
162
|
propsCopy.value = transferValue(propsCopy.item.type, propsCopy.value);
|
|
163
|
-
if (propsCopy.item.options &&
|
|
163
|
+
if (propsCopy.item.options && propsCopy.value !== null) {
|
|
164
164
|
if (propsCopy.item.type.endsWith("[]"))
|
|
165
165
|
propsCopy.value = propsCopy.value.map((v) => {
|
|
166
166
|
var _a3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.442",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lodash": "*",
|
|
29
29
|
"react": "*",
|
|
30
30
|
"react-dom": "*",
|
|
31
|
-
"@faasjs/react": "^0.0.2-beta.
|
|
31
|
+
"@faasjs/react": "^0.0.2-beta.442",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|