<template>
 <div class="formDiv"   @mouseenter="show" @mouseleave="hide">
     <div class="formDiv-left">
         <Label :style="{marginLeft:'5px'}">{{property.label}}</Label>
     </div>
     <div class="formDiv-right">
       <DatePicker
               type="daterange"
               split-panels
               placeholder="Select date"
               :editable="false"
               style="width: 50%;"
       >
       </DatePicker>
     </div>
     <commomHoverModal ref="commomHoverModal" ></commomHoverModal>

 </div>
</template>

<script>
import {editSetting} from './property';
import commomHoverModal from '../../common/commomHoverModal'

export default {
    data () {
        return {
            property:{
                label : '日期区间',
            },
            text: 'input',
            styles: {},
            type: 'date-picker-daterange',
            level: editSetting.level,
        };
    },
    components:{
        commomHoverModal
    },
    methods:{
        show(){
            this.$refs.commomHoverModal.handleMouseEnter();
        },
        hide(){
            this.$refs.commomHoverModal.handleMouseLeave();
        }
    },
    editSetting,
    name: editSetting.key,
    level: editSetting.level
};
</script>

<style>
  .formDiv{
      display: inline-block;
      line-height: 60px;
      text-align: left;
  }
  .formDiv-left {
      display:inline-block;
      width: 35%;
      height:40px;
      text-align:right;
      font-size:15px;
      float: left;
      margin: 0 10px;
  }
  .formDiv-right {
      width: 60%;
      position: relative;
      display:inline-block;
      float: right;
  }
</style>
