<template>
  <div>
  <label>关键词：<input v-model="keyword"></label>
  <baidu-map>
    <bm-view class="map"></bm-view>
    <bm-local-search :panel="false" :keyword="keyword" :forceLocal="true" :auto-viewport="true" :location="location" @markersset="searchcomplete" ></bm-local-search>
  </baidu-map>
  </div>
</template>
<script>
  export default {
    data () {
      return {
        location: '上海',
        keyword: '巾帼园'
      }
    },
    methods: {
      searchcomplete (e) {
        console.log(e)
      }
    }
  }
</script>
