Commit aa43b8c8320439dfe766b069e775507256c7d492

Authored by 梁灏
1 parent 7b7178f1

fixed #438

examples/routers/select.vue
... ... @@ -194,7 +194,7 @@
194 194 <template>
195 195 <div>
196 196 <i-select v-model="d" filterable style="width: 200px" multiple>
197   - <i-option v-for="e in uList" :value="e.id" :label="e.name">
  197 + <i-option :key="e" v-for="e in uList" :value="e.id" :label="e.name">
198 198 <span>{{ e.name }}</span>
199 199 <span style="float:right;color:#ccc">{{ e.id }}</span>
200 200 </i-option>
... ...
examples/routers/table.vue
... ... @@ -35,7 +35,7 @@
35 35 width: 150,
36 36 align: 'center',
37 37 render (row, column, index) {
38   - return `<i-button type="primary" size="small" @click="show(${index})">{{ info }}查看</i-button> <i-button type="error" size="small" @click="remove(${index})">删除</i-button>`;
  38 + return `{{ column }}`;
39 39 }
40 40 }
41 41 ],
... ... @@ -82,6 +82,7 @@
82 82 mounted () {
83 83 setTimeout(() => {
84 84 this.info = '444';
  85 +// this.data6[0].name = 'xxx';
85 86 }, 3000);
86 87 }
87 88 }
... ...
package.json
1 1 {
2 2 "name": "iview",
3   - "version": "2.0.0-rc.7",
  3 + "version": "2.0.0-rc.8",
4 4 "title": "iView",
5 5 "description": "A high quality UI components Library with Vue.js",
6 6 "homepage": "http://www.iviewui.com",
... ...
src/components/table/cell.vue
... ... @@ -71,6 +71,8 @@
71 71 return $parent._data;
72 72 }
73 73 });
  74 + component.row = this.row;
  75 + component.column = this.column;
74 76  
75 77 const Cell = component.$mount();
76 78 this.$refs.cell.appendChild(Cell.$el);
... ...