<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
               split-panels
               :editable="false"
               :placeholder=extend.placeholder
               class="datepickerStyle"
       >
       </DatePicker>
     </div>
     <commomHoverModal ref="commomHoverModal" ></commomHoverModal>
 </div>
</template>

<script>
    import commomHoverModal from '../../common/commomHoverModal'

    import {editSetting} from './property';
export default {
    data () {
        return {
            property:{
                label : '日期',
            },
            extend:{
                placeholder:""
            },
            text: 'input',
            styles: {},
            type: 'date-picker',
            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 scoped>
  .formDiv{
      display: inline-block;
      line-height: 60px;
      text-align: left;
  }
  .datepickerStyle{
      width:50%;
  }
  .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>
