@agentscope-ai/design 1.0.27-beta.1769678521654 → 1.0.27-beta.1769680455227
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.
|
@@ -69,6 +69,7 @@ export var langExtensionsMap = {
|
|
|
69
69
|
};
|
|
70
70
|
var empty = [];
|
|
71
71
|
var Editor = function Editor(props) {
|
|
72
|
+
var _props$value;
|
|
72
73
|
var _useStyles = useStyles(),
|
|
73
74
|
styles = _useStyles.styles;
|
|
74
75
|
var variables = props.variables || empty;
|
|
@@ -133,7 +134,7 @@ var Editor = function Editor(props) {
|
|
|
133
134
|
}, getTheme), /*#__PURE__*/_jsxs("div", {
|
|
134
135
|
className: styles.footer,
|
|
135
136
|
children: [tips, props.maxLength ? /*#__PURE__*/_jsxs("div", {
|
|
136
|
-
children: [props.value.length, "/", props.maxLength]
|
|
137
|
+
children: [((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) || 0, "/", props.maxLength]
|
|
137
138
|
}) : null]
|
|
138
139
|
})]
|
|
139
140
|
});
|