
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
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 30,479 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 0 open source maintainers 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.