From a090aeb9cc79c69359a81fea7da02ef2fb9b9b6a Mon Sep 17 00:00:00 2001 From: maxiaobo01 Date: Mon, 11 Jul 2022 17:10:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=8D=95=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=BB=84=E4=BB=B6value=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/index.ts | 4 ++-- src/single/Editor.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/index.ts b/demo/index.ts index 6802c6f..485e87b 100644 --- a/demo/index.ts +++ b/demo/index.ts @@ -1,5 +1,5 @@ -import './app'; -// import './single'; +// import './app'; +import './single'; import { startUp } from '../src/utils/initEditor'; startUp(); diff --git a/src/single/Editor.tsx b/src/single/Editor.tsx index 2693892..e4ed22b 100644 --- a/src/single/Editor.tsx +++ b/src/single/Editor.tsx @@ -60,7 +60,7 @@ function getStringValue(value: any) { if (typeof value === 'number') { return String(value); } - return value; + return String(value); } export const SingleEditor = React.forwardRef(({ @@ -122,6 +122,7 @@ export const SingleEditor = React.forwardRef