<template>
  <div class="app-container">
    <xd-baidu-overlay
      :edit.sync="isEdit"
      :draw.sync="isDraw"
      @onDone="handleDone"
      :is-show-edit="true"
      :draw-type="drawType"
    ></xd-baidu-overlay>
    <div class="app-container__search">
      <xd-baidu-search
        @onSelect="handleSelect"
      ></xd-baidu-search>
    </div>
  </div>
</template>

<script>
  import XdBaiduOverlay from "@/components/XdBaiduOverlay";
  import XdBaiduSearch from "@/components/XdBaiduSearch";

  export default {
    name: "titleList",
    components: {
      XdBaiduSearch,
      XdBaiduOverlay
    },
    data(){
      return {
        drawType: 3,
        isEdit: false,
        isDraw: false,
      }
    },
    created(){

    },
    methods: {
      handleDone(res){
        console.log('handleDone',res)
      },
      handleSelect(res){
        console.log('handleSelect', res)
      }
    }
  }
</script>

<style scoped lang="scss">
  .app-container {
    padding: 20px;

    &__search {
      margin-top: 20px;
    }
  }
</style>
