0.0.1 • Published 1 year ago

@adolph_dudu/params-editor v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vue-json-schema-editor-visual

npm.io

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 实现

npm.io

Usage

import JsonSchemaEditor from 'vue-json-schema-editor-visual';

Vue.use(JsonSchemaEditor);

在线 Demo

API

Attributes

参数说明类型默认值
schemajson schema 对象Object-
show-raw是否显示 RAW 弹窗,可查看 json schemaBooleanfalse
is-mock是否支持 mock (WIP)Booleanfalse
show-default-value是否展示默认值输入框Booleanfalse

Events

事件名称说明回调参数
schema-changeschema 发生变化时的回调函数新的 json schema 对象

Related

其他 json editor

License

MIT