@faasjs/ant-design 0.0.3-beta.8 → 0.0.3-beta.9
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -421,13 +421,13 @@ function FormItem(props) {
|
|
|
421
421
|
const originShouldUpdate = propsCopy.shouldUpdate;
|
|
422
422
|
propsCopy.shouldUpdate = (prev, cur) => {
|
|
423
423
|
const show = condition(cur);
|
|
424
|
-
console.debug("Form:if", props.id, !show);
|
|
425
424
|
const shouldUpdate = hidden !== show;
|
|
426
425
|
setHidden(!show);
|
|
427
426
|
const origin = originShouldUpdate ? typeof originShouldUpdate === "boolean" ? originShouldUpdate : originShouldUpdate(prev, cur, {}) : true;
|
|
428
427
|
return shouldUpdate || origin;
|
|
429
428
|
};
|
|
430
429
|
delete propsCopy.if;
|
|
430
|
+
delete propsCopy.hidden;
|
|
431
431
|
}
|
|
432
432
|
setComputedProps(processProps(propsCopy, common2));
|
|
433
433
|
}, [props]);
|
package/dist/index.mjs
CHANGED
|
@@ -407,13 +407,13 @@ function FormItem(props) {
|
|
|
407
407
|
const originShouldUpdate = propsCopy.shouldUpdate;
|
|
408
408
|
propsCopy.shouldUpdate = (prev, cur) => {
|
|
409
409
|
const show = condition(cur);
|
|
410
|
-
console.debug("Form:if", props.id, !show);
|
|
411
410
|
const shouldUpdate = hidden !== show;
|
|
412
411
|
setHidden(!show);
|
|
413
412
|
const origin = originShouldUpdate ? typeof originShouldUpdate === "boolean" ? originShouldUpdate : originShouldUpdate(prev, cur, {}) : true;
|
|
414
413
|
return shouldUpdate || origin;
|
|
415
414
|
};
|
|
416
415
|
delete propsCopy.if;
|
|
416
|
+
delete propsCopy.hidden;
|
|
417
417
|
}
|
|
418
418
|
setComputedProps(processProps(propsCopy, common2));
|
|
419
419
|
}, [props]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lodash-es": "*",
|
|
29
29
|
"react": "*",
|
|
30
30
|
"react-dom": "*",
|
|
31
|
-
"@faasjs/react": "^0.0.3-beta.
|
|
31
|
+
"@faasjs/react": "^0.0.3-beta.9",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|