fix: #98 · cloydlau/json-editor-vue@69bbc18 (original) (raw)

`@@ -2,7 +2,7 @@ import type { JSONContent, JSONEditorPropsOptional, TextContent } from 'vanilla-

`

2

2

`import type { App, Plugin, PropType } from 'vue-demi'

`

3

3

`import { destr, safeDestr } from 'destr'

`

4

4

`import { debounce } from 'lodash-es'

`

5

``

`-

import { JSONEditor, Mode } from 'vanilla-jsoneditor'

`

``

5

`+

import { createJSONEditor, Mode } from 'vanilla-jsoneditor'

`

6

6

`import { computed, defineComponent, getCurrentInstance, h, isVue3, onMounted, onUnmounted, ref, unref, watch, watchEffect } from 'vue-demi'

`

7

7

`import { conclude, resolveConfig } from 'vue-global-config'

`

8

8

`import { PascalCasedName as name } from '../package.json'

`

`@@ -201,7 +201,7 @@ const JsonEditorVue = defineComponent({

`

201

201

`},

`

202

202

`)

`

203

203

``

204

``

`-

jsonEditor.value = new JSONEditor({

`

``

204

`+

jsonEditor.value = createJSONEditor({

`

205

205

`target: currentInstance?.$refs.jsonEditorRef as Element,

`

206

206

`props: initialAttrs,

`

207

207

`})

`