Skip to content

Commit 3ec36b6

Browse files
author
zhigang.li
committed
更新tree-table-vue版本,更改了个别api命名
1 parent 0f6f038 commit 3ec36b6

File tree

3 files changed

+45
-13
lines changed

3 files changed

+45
-13
lines changed

Diff for: package-lock.json

+35-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"js-cookie": "^2.2.0",
2525
"simplemde": "^1.11.2",
2626
"sortablejs": "^1.7.0",
27-
"tree-table-vue": "^1.0.5",
27+
"tree-table-vue": "^1.1.0",
2828
"vue": "^2.5.10",
2929
"vue-i18n": "^7.8.0",
3030
"vue-router": "^3.0.1",

Diff for: src/view/components/tree-table/index.vue

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
树状表格组件tree-table-vue,基于<a href="https://github.com/MisterTaki/vue-table-with-tree-grid">vue-table-with-tree-grid</a>进行开发,修复了一些bug,添加了一些新属性
55
<p><b>支持使用slot-scope进行自定义列渲染内容</b></p>
66
<p>文档请看<a href="https://github.com/lison16/tree-table-vue">https://github.com/lison16/tree-table-vue</a></p>
7-
<tree-table expand-key="sex" :expand-type="false" :selection-type="false" :columns="columns" :data="data" >
7+
<tree-table expand-key="sex" :expand-type="false" :selectable="false" :columns="columns" :data="data" >
88
<template slot="likes" slot-scope="scope">
99
<Button @click="handle(scope)">123</Button>
1010
</template>
@@ -20,22 +20,22 @@ export default {
2020
return {
2121
columns: [
2222
{
23-
label: 'name',
24-
prop: 'name',
23+
title: 'name',
24+
key: 'name',
2525
width: '400px'
2626
},
2727
{
28-
label: 'sex',
29-
prop: 'sex',
28+
title: 'sex',
29+
key: 'sex',
3030
minWidth: '50px'
3131
},
3232
{
33-
label: 'score',
34-
prop: 'score'
33+
title: 'score',
34+
key: 'score'
3535
},
3636
{
37-
label: 'likes',
38-
prop: 'likes',
37+
title: 'likes',
38+
key: 'likes',
3939
minWidth: '200px',
4040
type: 'template',
4141
template: 'likes'

0 commit comments

Comments
 (0)