ywana-core8 0.0.159 → 0.0.160
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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +4 -3
package/dist/index.cjs
CHANGED
@@ -2831,7 +2831,8 @@ var FieldEditor = function FieldEditor(_ref4) {
|
|
2831
2831
|
item = field.item,
|
2832
2832
|
label = field.label,
|
2833
2833
|
options = field.options,
|
2834
|
-
hidden = field.hidden
|
2834
|
+
_field$hidden = field.hidden,
|
2835
|
+
hidden = _field$hidden === void 0 ? false : _field$hidden;
|
2835
2836
|
|
2836
2837
|
function change(id, value) {
|
2837
2838
|
if (onChange) onChange(id, value);
|
@@ -2839,8 +2840,9 @@ var FieldEditor = function FieldEditor(_ref4) {
|
|
2839
2840
|
|
2840
2841
|
function renderField() {
|
2841
2842
|
var value1 = field.value ? field.value : field["default"];
|
2843
|
+
var isHidden = CHECK['isFunction'](hidden) ? hidden(field, value1) : hidden;
|
2842
2844
|
|
2843
|
-
if (
|
2845
|
+
if (isHidden) {
|
2844
2846
|
return null;
|
2845
2847
|
} else {
|
2846
2848
|
switch (type) {
|