@uiw/react-json-view 2.0.0-alpha.19 → 2.0.0-alpha.20
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/cjs/section/CountInfo.js
CHANGED
|
@@ -39,7 +39,7 @@ var CountInfoComp = exports.CountInfoComp = function CountInfoComp(props) {
|
|
|
39
39
|
reset.style = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, reset.style), props.style);
|
|
40
40
|
var len = Object.keys(value).length;
|
|
41
41
|
if (!reset.children) {
|
|
42
|
-
reset.children = "".concat(len, "
|
|
42
|
+
reset.children = "".concat(len, " item").concat(len === 1 ? '' : 's');
|
|
43
43
|
}
|
|
44
44
|
var elmProps = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, reset), other);
|
|
45
45
|
var isRender = render && typeof render === 'function';
|
package/esm/section/CountInfo.js
CHANGED
|
@@ -36,7 +36,7 @@ export var CountInfoComp = props => {
|
|
|
36
36
|
reset.style = _extends({}, reset.style, props.style);
|
|
37
37
|
var len = Object.keys(value).length;
|
|
38
38
|
if (!reset.children) {
|
|
39
|
-
reset.children = len + "
|
|
39
|
+
reset.children = len + " item" + (len === 1 ? '' : 's');
|
|
40
40
|
}
|
|
41
41
|
var elmProps = _extends({}, reset, other);
|
|
42
42
|
var isRender = render && typeof render === 'function';
|