<script>

import AddressSearchCombobox from '@vue2-client/base-client/components/common/AddressSearchCombobox/index'

export default {
  name: 'Demo',
  components: { AddressSearchCombobox },
  data () {
    return {
      visible: false,
      searchResult: {}
    }
  },
  methods: {
    addressSearchComboboxSelect (res) {
      console.log('===', res)
    }
  }
}
</script>

<template>
  <div>
    <address-search-combobox
      v-model="searchResult"
      :resultKeys="{ address: 'f_address', coords: `f_address_lng_lat` }"
      searchResultType="Object"
      @onSelect="addressSearchComboboxSelect"
      @onDivisionsChange="addressSearchComboboxSelect"
    ></address-search-combobox>
  </div>
</template>

<style scoped lang="less">

</style>
