vue-tree-grid
vue-tree-grid copied to clipboard
基于vue和优秀的iView组件库的树型表格(tree-table/tree-grid)
我用vue-cli把TreeGrid2.0的单文件组件生成了一个可以直接引用的js使用,结果放在html中vue不能识别此组件,报Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. ,请问可否将此组件基于vue2.0生成一个可直接引用的js文件发布上了?
你好,楼主。使用了下,感觉还可以,就是不支持render。不知道能像原生table那样,可以在每个 column里面自定义 想返回的内容格式例如: `{ key: 'status', title: '状态', width: 20, align: 'left', render: (h, params) => { if (params.row.status !== '') { return h('div', { attrs: { style: 'width: 100%;float:...
.ivu-icon-plus-circled:before { content: "\F216"; } *, :after, :before { box-sizing: border-box; }
大大 怎么默认全部展开啊
大大 怎么默认全部展开啊
我数据绑定的是data1 我的代码如下: ``` rowClick(data, index, event) { console.log(data) let children=data.children?data.children:[] children.push({ id:'001', code:'222aia', name:'测试测试' }) this.$set(data,'children',children) console.log('当前行数据:' , data) console.log('点击行号:' , index) console.log('点击事件:' , event) // data1是绑定的数据 console.log('this.data1',this.data1) }, ```...
改的地方不多, 1、watch方法 监控items 添加了 一行 this.initItems = [] ,防止父组件里数据更新了,initItems数组不更新而是在后面添加 ``` items () { if (this.items) { this.initItems = [] this.dataLength = this.Length(this.items) this.initData(this.deepCopy(this.items), 1, null) this.checkGroup = this.renderCheck(this.items) if (this.checkGroup.length...
运行不了么
run dev 报错