Commit aa43b8c8320439dfe766b069e775507256c7d492
1 parent
7b7178f1
fixed #438
Showing
4 changed files
with
6 additions
and
3 deletions
Show diff stats
examples/routers/select.vue
| @@ -194,7 +194,7 @@ | @@ -194,7 +194,7 @@ | ||
| 194 | <template> | 194 | <template> |
| 195 | <div> | 195 | <div> |
| 196 | <i-select v-model="d" filterable style="width: 200px" multiple> | 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 | <span>{{ e.name }}</span> | 198 | <span>{{ e.name }}</span> |
| 199 | <span style="float:right;color:#ccc">{{ e.id }}</span> | 199 | <span style="float:right;color:#ccc">{{ e.id }}</span> |
| 200 | </i-option> | 200 | </i-option> |
examples/routers/table.vue
| @@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
| 35 | width: 150, | 35 | width: 150, |
| 36 | align: 'center', | 36 | align: 'center', |
| 37 | render (row, column, index) { | 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,6 +82,7 @@ | ||
| 82 | mounted () { | 82 | mounted () { |
| 83 | setTimeout(() => { | 83 | setTimeout(() => { |
| 84 | this.info = '444'; | 84 | this.info = '444'; |
| 85 | +// this.data6[0].name = 'xxx'; | ||
| 85 | }, 3000); | 86 | }, 3000); |
| 86 | } | 87 | } |
| 87 | } | 88 | } |
package.json
| 1 | { | 1 | { |
| 2 | "name": "iview", | 2 | "name": "iview", |
| 3 | - "version": "2.0.0-rc.7", | 3 | + "version": "2.0.0-rc.8", |
| 4 | "title": "iView", | 4 | "title": "iView", |
| 5 | "description": "A high quality UI components Library with Vue.js", | 5 | "description": "A high quality UI components Library with Vue.js", |
| 6 | "homepage": "http://www.iviewui.com", | 6 | "homepage": "http://www.iviewui.com", |
src/components/table/cell.vue
| @@ -71,6 +71,8 @@ | @@ -71,6 +71,8 @@ | ||
| 71 | return $parent._data; | 71 | return $parent._data; |
| 72 | } | 72 | } |
| 73 | }); | 73 | }); |
| 74 | + component.row = this.row; | ||
| 75 | + component.column = this.column; | ||
| 74 | 76 | ||
| 75 | const Cell = component.$mount(); | 77 | const Cell = component.$mount(); |
| 76 | this.$refs.cell.appendChild(Cell.$el); | 78 | this.$refs.cell.appendChild(Cell.$el); |