vue-json-edit
Version:
visual JSON editor built as an vue component
24 lines (18 loc) • 540 B
JavaScript
import JsonEditor from './JsonEditor.vue'
import JsonView from './JsonView.vue'
import ArrayView from './ArrayView.vue'
import draggable from 'vuedraggable'
import PackageFile from '../package.json'
const VERSION = PackageFile.version
const install = (Vue) => {
if (install.installed) return
Vue.component('draggable', draggable)
Vue.component('JsonEditor', JsonEditor)
Vue.component('json-view', JsonView)
Vue.component('array-view', ArrayView)
}
export default install
export const components = {
JsonEditor,
VERSION
}