0.0.22 • Published 1 year ago
vue-json-schema-k v0.0.22
vue-json-schema-editor-visual
fork FROM 后续修改:剥离vue、elementui依赖 缩小包体
目前改动: 修复了 输入框输入切换选中第一次无效的问题。 修复了 输入新的属性名会设置到属性最后的问题。
A json-schema editor of high efficient and easy-to-use, base on Vue & Element UI.
一个高效易用的基于 Vue + Element UI 的 json-schema 编辑器。 模仿 Yapi React 版本 json-schema-editor-visual 实现
Usage
import JsonSchemaEditor from 'vue-json-schema-editor-visual';
Vue.use(JsonSchemaEditor);
在线 Demo
API
Attributes
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
schema | json schema 对象 | Object | - |
show-raw | 是否显示 RAW 弹窗,可查看 json schema | Boolean | false |
is-mock | 是否支持 mock (WIP) | Boolean | false |
show-default-value | 是否展示默认值输入框 | Boolean | false |
其他 json editor
License
MIT
0.0.22
1 year ago