
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
json-editor-vue
Advanced tools
JSON editor & viewer for Vue 2 and 3 powered by svelte-jsoneditor & vue-json-viewer.
JSON editor & viewer for Vue 2 and 3 powered by svelte-jsoneditor & vue-json-viewer
svelte-jsoneditor是 jsoneditor 作者带来的全新JSON编辑器。 作者开这个新坑的原因是老库已难以维护、架构需要大改、体验亟待提升。json-editor-vue是svelte-jsoneditor的Vue版本。
element-plus
& element-ui
(禁用状态默认跟随 el-form
)pnpm add json-editor-vue svelte-jsoneditor
// 全局引入
import JsonEditorVue from 'json-editor-vue'
createApp(App)
.use(JsonEditorVue, {
// 全局配置
})
<!-- 局部引入 -->
<template>
<JsonEditorVue v-model="value" v-bind="{/* 局部配置 */}"/>
</template>
<script setup>
import JsonEditorVue from 'json-editor-vue'
</script>
pnpm add json-editor-vue svelte-jsoneditor @vue/composition-api
// 全局引入
import JsonEditorVue from 'json-editor-vue'
Vue.use(JsonEditorVue, {
// 全局配置
})
<!-- 局部引入 -->
<template>
<JsonEditorVue :modelValue.sync="value" v-bind="{/* 局部配置 */}"/>
</template>
<script>
import JsonEditorVue from 'json-editor-vue'
export default {
components: { JsonEditorVue },
}
</script>
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
v-model / modelValue | 绑定值 | any | ||
readonly | 是否只读 | boolean | false | |
readonlyOptions | props of vue-json-viewer | object | ||
... | props of svelte-jsoneditor |
v-model
/ modelValue
)仅支持局部配置权重:
FAQs
Vue and Nuxt 2/3 isomorphic JSON editor, viewer, formatter and validator.
The npm package json-editor-vue receives a total of 22,338 weekly downloads. As such, json-editor-vue popularity was classified as popular.
We found that json-editor-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.