zy-react-library 1.0.171 → 1.0.173

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.
@@ -53,7 +53,7 @@ const Editor = forwardRef(({
53
53
 
54
54
  const handleChange = (editor) => {
55
55
  setHtml(editor.getHtml());
56
- onChange?.(normalizeEmptyHtml(editor.getHtml()));
56
+ onChange?.(normalizeEmptyHtml(editor.getHtml()) || " ");
57
57
  };
58
58
 
59
59
  // 工具栏配置
@@ -60,7 +60,7 @@ const ImportFile = (props) => {
60
60
  {exportTemplateButtonText}
61
61
  </Button>
62
62
  ),
63
- {extraButtons},
63
+ ...(extraButtons || []),
64
64
  <Button key="cancel" onClick={handleClose}>
65
65
  取消
66
66
  </Button>,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.171",
4
+ "version": "1.0.173",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",