update Table

update Table
This commit is contained in:
梁灏 2016-11-25 22:51:50 +08:00
parent 192e2cb849
commit 3ef4dfb9ef
7 changed files with 68 additions and 46 deletions

View file

@ -8,9 +8,8 @@
<!--<i-table size="large" border stripe :columns="columns" :data="data"></i-table>-->
<br>
<i-table
style="width:450px"
width="450"
border
highlight-row
:columns="columns"
:data="data"
:row-class-name="rowClsName"
@ -37,6 +36,10 @@
type: 'selection',
width: 50
},
{
type: 'index',
width: 50
},
{
title: '姓名',
key: 'name',
@ -48,7 +51,7 @@
title: '年龄',
key: 'age',
align: 'right',
fixed: 'left',
// fixed: 'left',
width: 100
// render (row) {
// return `<i-button>${row.age}</i-button>`
@ -151,7 +154,7 @@
// address: '2',
// edit: false
// });
this.data.splice(1, 1)
// this.data.splice(1, 1)
}, 1000);
}
}