VJsoneditor icon indicating copy to clipboard operation
VJsoneditor copied to clipboard

Vue 3

Open stephanbehm opened this issue 4 years ago • 7 comments

Hey, is the component ready to be used in Vue3 projects? I want to use it in an electron application but I receive various errors during rendering.

I am quite new to Vue.js, therefor I am not sure if the problem is on my side.

Regards

image

<template>
  <img alt="Vue logo" src="./assets/logo.png">
  <HelloWorld msg="Welcome to Your Vue.js App"/>
  <v-jsoneditor v-model="json" height="400px"/>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue';
import VJsoneditor from 'v-jsoneditor'

export default {
  name: 'App',
  data () {
      return {
        json: {
          msg: 'demo of jsoneditor'
        }
      }
    },
  components: {
    HelloWorld,
    VJsoneditor    
  },
  methods: {
      onJsonChange (value) {
        console.log('value:', value)
      }
    }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

stephanbehm avatar Apr 15 '21 07:04 stephanbehm

I just came here to look for this same issue, so I guess the component is not ready for Vue3 atm. Are there plans for this?

Evertvdw avatar Apr 20 '21 09:04 Evertvdw

This component has plans to support vue3, Please wait. :blush:

yansenlei avatar Apr 21 '21 01:04 yansenlei

@yansenlei Any chance you can give a timeline?

Evertvdw avatar Jun 18 '21 12:06 Evertvdw

Recently no jsoneditor support vue3 properly, some doesn't have template to import and others have bug,please update. I'm a back-end programmer and my vue technology is poor.

HzAlen avatar Aug 06 '21 09:08 HzAlen

in progress...

yansenlei avatar Aug 10 '21 11:08 yansenlei

is this supported now in vue3?

vaasav-kumar avatar Jun 22 '22 09:06 vaasav-kumar

https://www.npmjs.com/package/v3-jsoneditor

Just published the package for Vue 3.

pratik227 avatar Apr 16 '23 07:04 pratik227