fixed #438
This commit is contained in:
parent
7b7178f165
commit
aa43b8c832
4 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue