Commit b575fe2c6ceec0c7bafd37c224f0b416e8defbe1

Authored by 梁灏
1 parent 2baba209

update AutoComplete

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
... ... @@ -12,4 +12,7 @@
12 12 &:hover .@{icon-prefix-cls}-ios-close{
13 13 display: inline-block;
14 14 }
  15 + &.@{select-dropdown-prefix-cls} {
  16 + max-height: none;
  17 + }
15 18 }
16 19 \ No newline at end of file
... ...