wl-json-schema
A json-schema editor of high efficient and easy-to-use, base on Vue
387
| Install | |
|---|---|
npm install wl-json-schema |
|
| Latest Version: | 0.1.8 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Jan 5, 2023 |
| Links: | npm |
Maintainer: star409964
npm install wl-json-schema
import wlJsonSchema from 'wl-json-schema'
Vue.use(wlJsonSchema)
<template>
<div id="app">
...
<wl-json-schema :value="tree"/>
...
</div>
</template>
<script>
export default {
name: 'App',
data() {
return {
tree:
{
root: {
type: "object"
}
}
}
}
}
</script>
json-schema-editor-vue属性说明如下:
| 属性 | 说明 | 类型 | 是否必须 | 默认值 |
|---|---|---|---|---|
| value | 传入一个默认的树节点,用来接收编辑后的json schema结果 | Object | 是 | |
| disabled | 节点名称不可编辑 | Boolean | false |
|
| disabledType | 节点类型不可选择 | Boolean | false |
|
| root | 是否是根节点 | Boolean | true |
|
| tipDisabled | 是否禁用提示 | Boolean | false |
|
| delay | 提示信息延迟时间(毫秒) | Number | 1000 |
版本说明
0.1.6
1.增加控制是否显示提示功能
Related Packages
json-schema-editor-vue3
A json-schema editor of high efficient and easy-to-use, base on Vue3
26,921
92
json-schema-editor-vue
A json-schema editor of high efficient and easy-to-use, base on Vue
3,215
311
lzo-json-schema-editor-vue3
A json-schema editor of high efficient and easy-to-use, base on Vue3
2,945
92
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.8 | ^2.6.11 | MIT | |
| 0.1.7 | ^2.6.11 | MIT | |
| 0.1.6 | ^2.6.11 | MIT | |
| 0.1.5 | ^2.6.11 | MIT | |
| 0.1.4 | ^2.6.11 | MIT | |
| 0.1.3 | ^2.6.11 | MIT | |
| 0.1.2 | ^2.6.11 | MIT | |
| 0.1.1 | ^2.6.11 | MIT | |
| 0.1.0 | ^2.6.11 | MIT |