Commit b575fe2c6ceec0c7bafd37c224f0b416e8defbe1
1 parent
2baba209
update AutoComplete
Showing
2 changed files
with
6 additions
and
3 deletions
Show diff stats
examples/routers/auto-complete.vue
1 | 1 | <template> |
2 | 2 | <div style="margin: 100px;width: 200px;"> |
3 | - <AutoComplete transfer v-model="value" :data="data" @on-change="hc" :filter-method="fm"> | |
3 | + <AutoComplete transfer v-model="value" :data="data" @on-search="handleSearch" @on-change="hc" :filter-method="fm"> | |
4 | 4 | <!--<Option v-for="item in data" :value="item" :label="item" :key="item">--> |
5 | 5 | <!--<span style="color: red">{{ item }}</span>--> |
6 | 6 | <!--</Option>--> |
... | ... | @@ -16,8 +16,8 @@ |
16 | 16 | data () { |
17 | 17 | return { |
18 | 18 | value: '', |
19 | -// data: [], | |
20 | - data: ['Burns Bay Road', 'Downing Street', 'Wall Street'] | |
19 | + data: [], | |
20 | +// data: ['Burns Bay Road', 'Downing Street', 'Wall Street'] | |
21 | 21 | }; |
22 | 22 | }, |
23 | 23 | computed: {}, | ... | ... |
src/styles/components/auto-complete.less