【功能完善】修复 jsonEditor 编辑回显不生效的问题
This commit is contained in:
@@ -41,9 +41,9 @@ const initJsonEditor = () => {
|
||||
navigationBar: props.showNavigationBar,
|
||||
statusBar: props.showStatusBar,
|
||||
mainMenuBar: props.showMainMenuBar,
|
||||
onChangeJSON: (json: any) => {
|
||||
jsonObj.value = json
|
||||
emits('change', json)
|
||||
onChange: () => {
|
||||
jsonObj.value = jsonEditor?.get()
|
||||
emits('change', jsonEditor?.get())
|
||||
},
|
||||
onValidationError: (errors: any) => {
|
||||
emits('error', errors)
|
||||
|
||||
Reference in New Issue
Block a user