This commit is contained in:
梁灏 2017-03-30 09:48:47 +08:00
parent 7b7178f165
commit aa43b8c832
4 changed files with 6 additions and 3 deletions

View file

@ -194,7 +194,7 @@
<template>
<div>
<i-select v-model="d" filterable style="width: 200px" multiple>
<i-option v-for="e in uList" :value="e.id" :label="e.name">
<i-option :key="e" v-for="e in uList" :value="e.id" :label="e.name">
<span>{{ e.name }}</span>
<span style="float:right;color:#ccc">{{ e.id }}</span>
</i-option>

View file

@ -35,7 +35,7 @@
width: 150,
align: 'center',
render (row, column, index) {
return `<i-button type="primary" size="small" @click="show(${index})">{{ info }}查看</i-button> <i-button type="error" size="small" @click="remove(${index})">删除</i-button>`;
return `{{ column }}`;
}
}
],
@ -82,6 +82,7 @@
mounted () {
setTimeout(() => {
this.info = '444';
// this.data6[0].name = 'xxx';
}, 3000);
}
}

View file

@ -1,6 +1,6 @@
{
"name": "iview",
"version": "2.0.0-rc.7",
"version": "2.0.0-rc.8",
"title": "iView",
"description": "A high quality UI components Library with Vue.js",
"homepage": "http://www.iviewui.com",

View file

@ -71,6 +71,8 @@
return $parent._data;
}
});
component.row = this.row;
component.column = this.column;
const Cell = component.$mount();
this.$refs.cell.appendChild(Cell.$el);