<template>
  <div class="formDiv">
    <div class="formDiv-left">
      <Label :style="{marginLeft:'5px'}">{{property.label}}</Label>
    </div>
    <div class="formDiv-right" >
      <div style="display: inline-block;text-align: left;">
        <DatePicker type="date"  placeholder="请选择,有效期为一年"></DatePicker>
      </div>
      <div style="width:1%;display: inline-block;text-align: left;">-</div>
      <div style="width: 38%;display: inline-block;text-align: left;">
          <Input  style="background-color: #fff" disabled clearable/>
      </div>
    </div>
  </div>
</template>

<script>
import {editSetting} from './property';
export default {
    // props: {
    //     text: {
    //         type: String,
    //         default: 'Button Text'
    //     },
    //     type: String,
    //     styles: Object
    // },
    data () {
        return {
            property:{
                label : '标签',
            },
            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;
  }
  .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>
