joaomede / vue3-json-editor

A jsoneditor of vue 3 (next) - (fork vue-json-editor)
ISC License
45 stars 29 forks source link

add editor id, support multiple json editors in same page #16

Closed zousu closed 2 years ago

zousu commented 2 years ago
<template>
  <Vue3JsonEditor editor-id="json-editor-a" v-model="model"/>
  <Vue3JsonEditor editor-id="json-editor-b" v-model="model"/>
</template>
...

image

joaomede commented 2 years ago

Hi Guy, thanks, I think the ID problem could be solved by a hash generator, type UUID, can you implement it??

zousu commented 2 years ago

The default ID contains UUID, also can set an ID to easily rewrite CSS

default image

set ID image

joaomede commented 2 years ago

thank you