<template>
  <div class="formDiv"   @mouseenter="show" @mouseleave="hide">
    <div class="formDiv-left">
      <Label :style="{marginLeft:'5px'}"></Label>
    </div>
    <div class="formDiv-right">
      <Alert  class="tipAlert" show-icon >
        <div v-html="extend.content"
             :placeholder=extend.placeholder
        />
      </Alert>
    </div>
    <commomHoverModal ref="commomHoverModal" ></commomHoverModal>

  </div>
</template>

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

import commomHoverModal from '../../common/commomHoverModal'

export default {
    // props: {
    //     text: {
    //         type: String,
    //         default: 'Button Text'
    //     },
    //     type: String,
    //     styles: Object
    // },
    components:{
        commomHoverModal
    },
    methods:{
        show(){
            this.$refs.commomHoverModal.handleMouseEnter();
        },
        hide(){
            this.$refs.commomHoverModal.handleMouseLeave();
        }
    },
    data () {
        return {
            extend:{
                content : '无',
            },
            text: 'label',
            styles: {
                display:'inline-block',
                width:'40%',
                height:'60px',
                lineHeight:'60px',
                textAlign:'right',
                fontSize:'15px'
            },
            type: 'label',
            level: editSetting.level,
        };
    },
    editSetting,
    name: editSetting.key,
    level: editSetting.level
};
</script>

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