<template>
  <div class="formDiv">
    <div class="formDiv-left">
      <Label :style="{marginLeft:'5px'}">{{getLabel}}</Label>
    </div>
    <div class="formDiv-right">
      <div style="width:58%;display: inline-block;text-align: left;">
        <Select clearable>
          <Option v-for="(item,index) in selectData" :key="index" :value="item.value">
            {{item.label}}
          </Option>
        </Select>
      </div>
      <div style="width: 40%;display: inline-block;text-align: left;">
        <Input />
      </div>
    </div>
  </div>
</template>

<script>
import {editSetting} from './property';
export default {
    // props: {
    //     text: {
    //         type: String,
    //         default: 'Button Text'
    //     },
    //     type: String,
    //     styles: Object
    // },
    computed:{
       getLabel(){
         return this.property.label;
        }
    },

    data () {
        return {
            selectData: [
                {
                    value: '高新区',
                    label: "高新区"
                },
                {
                    value: '碑林区',
                    label: "碑林区"
                },
                {
                    value: '经开区',
                    label: "经开区"
                },
                {
                    value: '莲湖区',
                    label: "莲湖区"
                },
                {
                    value: '曲江新区',
                    label: "曲江新区"
                },
                {
                    value: '雁塔区',
                    label: "雁塔区"
                },
                {
                    value: '浐灞生态区',
                    label: "浐灞生态区"
                },
                {
                    value: '灞桥区',
                    label: "灞桥区"
                },
                {
                    value: '航空基地',
                    label: "航空基地"
                },
                {
                    value: '未央区',
                    label: "未央区"
                },
                {
                    value: '航天基地',
                    label: "航天基地"
                },
                {
                    value: '阎良区',
                    label: "阎良区"
                },
                {
                    value: '国际港务区',
                    label: "国际港务区"
                },
                {
                    value: '临潼区',
                    label: "临潼区"
                },
                {
                    value: '长安区',
                    label: "长安区"
                },
                {
                    value: '高陵区',
                    label: "高陵区"
                },
                {
                    value: '鄠邑区',
                    label: "鄠邑区"
                },
                {
                    value: '蓝田县',
                    label: "蓝田县"
                },
                {
                    value: '周至县',
                    label: "周至县"
                },
                {
                    value: '西安市本级',
                    label: "西安市本级"
                },
            ],
            property:{
                label : '标签',
            },
            text: 'input',
            type: 'input',
            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%;
    text-align:right;
    font-size:15px;
    float: left;
    margin: 0 10px;
  }
  .formDiv-right {
    width: 60%;
    position: relative;
    display:inline-block;
    float: right;
  }
</style>
