| | |
| | | <hr> |
| | | <div> |
| | | <a-auto-complete v-bind="search" @select="onSelect" @search="onSearch" @change="onChange"> |
| | | <a-input> |
| | | <a-input @pressEnter="onSelect"> |
| | | <a-icon slot="suffix" type="search" class="certain-category-icon" /> |
| | | </a-input> |
| | | </a-auto-complete> |
| | |
| | | sentence: "十里寒塘路,烟花一半醒", |
| | | search: { |
| | | placeholder: "搜索..", |
| | | allowClear: true, |
| | | // autoFocus: true, |
| | | backfill: true, |
| | | value: '', |
| | | dataSource: [], |
| | | }, |
| | | } |
| | |
| | | console.log("补全.."); |
| | | }, |
| | | onSelect(value) { |
| | | this.$message.info("更多功能..敬请期待") |
| | | console.log('回车', value); |
| | | }, |
| | | onChange(value) { |