合并原作者更新

This commit is contained in:
leonine 2017-02-20 09:53:10 +08:00
parent 1594942f2c
commit 2404849c30
5 changed files with 29 additions and 14 deletions

View file

@ -1,8 +1,5 @@
<template>
<i-table border :content="self" :columns="columns7" :data="data6"></i-table>
默认选中行
<i-table border :content="self" :columns="columns8" :data="data8"></i-table>
<i-table highlight-row border :content="self" :columns="columns7" :data="data6"></i-table>
</template>
<script>
export default {
@ -10,6 +7,11 @@
return {
self: this,
columns7: [
{
type: 'selection',
width: 60,
align: 'center'
},
{
title: '姓名',
key: 'name',
@ -50,22 +52,27 @@
{
name: '王小明',
age: 18,
address: '北京市朝阳区芍药居'
address: '北京市朝阳区芍药居',
_highlight: true,
_checked: true
},
{
name: '张小刚',
age: 25,
address: '北京市海淀区西二旗'
address: '北京市海淀区西二旗',
_checked: true
},
{
name: '李小红',
age: 30,
address: '上海市浦东新区世纪大道'
address: '上海市浦东新区世纪大道',
_checked: true
},
{
name: '周小伟',
age: 26,
address: '深圳市南山区深南大道'
address: '深圳市南山区深南大道',
_checked: true
}
],
columns8:[

View file

@ -3,6 +3,7 @@
:data="data2"
:target-keys="targetKeys2"
filterable
:render-format="rf"
:filter-method="filterMethod"
@on-change="handleChange2"></Transfer>
</template>
@ -37,6 +38,9 @@
},
filterMethod (data, query) {
return data.label.indexOf(query) > -1;
},
rf (data) {
return '<i class="ivu-icon ivu-icon-alert"></i>' + data.label;
}
}
}