Open zulfikar4568 opened 2 years ago
Here's my code that I used
<template> <Vue3JsonEditor v-model="state" :show-btns="true" @json-change="onJsonChange"/> </template> <script lang="ts"> import { defineComponent, ref } from 'vue' import { Vue3JsonEditor } from 'vue3-json-editor' export default defineComponent({ name: 'App', components: { Vue3JsonEditor }, setup () { function onJsonChange (value: any) { console.log(value) } const state = ref<object>({}) return { state, onJsonChange } } }) </script>
We face the same Issue with Vite and Vue3 on mode code.
Here's my code that I used