0.1.0 • Published 3 years ago

simple-vue-json-editor v0.1.0

Weekly downloads
51
License
-
Repository
-
Last release
3 years ago

vue-json-editor

使用组件

npm install vue-json-editor -S

import vueJsonEditor from 'vue-json-editor'

<editors :sourceObj="obj"></editors>

参数配置

参数名功能类型默认值
canEdit是否可以编辑,为false时,整个json格式只读不可编辑Booleantrue
sourceObj源对象,需要展示的对象内容Object
highlightFileds作为高亮依据的字段,暂时只有“isNew”可配置,配置之后新创建的字段会标红高亮Array[]
isNewEditableOnly已有数据不可编辑,新增数据才可编辑Booleanfalse
canToggle是否需要展开收起的功能,为false时,收缩icon会隐藏Booleantrue

使用效果

效果图

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.