Commit 82d90c4f8fc87aa80487b33167f12d4fb69acfb6

Authored by 梁灏
1 parent 98bf25b3

update Select example

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
examples/routers/select.vue
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 remote 7 remote
8 :remote-method="remoteMethod1" 8 :remote-method="remoteMethod1"
9 :loading="loading1"> 9 :loading="loading1">
10 - <Option v-for="option in options1" :value="option.value" :key="new Date()">{{option.label}}</Option> 10 + <Option v-for="(option, index) in options1" :value="option.value" :key="index">{{option.label}}</Option>
11 </Select> 11 </Select>
12 </Col> 12 </Col>
13 <Col span="12"> 13 <Col span="12">
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 remote 18 remote
19 :remote-method="remoteMethod2" 19 :remote-method="remoteMethod2"
20 :loading="loading2"> 20 :loading="loading2">
21 - <Option v-for="option in options2" :value="option.value" :key="new Date()">{{option.label}}</Option> 21 + <Option v-for="(option, index) in options2" :value="option.value" :key="index">{{option.label}}</Option>
22 </Select> 22 </Select>
23 </Col> 23 </Col>
24 </Row> 24 </Row>