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 | 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
src/components/table/cell.vue