// 安装依赖
npm install vue-json-structure
// vue中引入
import vueJsonStructure from 'vue-json-structure'
Vue.use(vueJsonStructure);
为了体验更好,组件使用了TDesign组件库,如需使用,请在主项目中引入TDesign
参数名 | 说明 |
---|---|
jsonData | 基础数据,为一个对象 |
disabled | 是否可编辑 |
change | (data, index) => {}, data中removeSelf若为true,为删除当前数据 |