<template>
  <el-collapse v-model="activeNames">
    <el-collapse-item title="布局" name="1" class="marger-pading">
      <div class="manager-top">
        <input v-model="element.style.margerTop"></input>
      </div>
      <div class="manager-right">
        <input v-model="element.style.margerRight"></input>
      </div>
      <div class="manager-bottom">
        <input v-model="element.style.margerBottom"></input>
      </div>
      <div class="manager-left">
        <input v-model="element.style.margerLeft"></input>
      </div>
    </el-collapse-item>
  </el-collapse>
</template>

<script>
export default {
  name: "StyleConfig",
  props: {
    element: {
      type: Object,
      default: function () {
        return {}
      }
    }
  },
  data(){
    return {
      activeNames: ['1']
    }
  }
}
</script>

<style scoped lang="scss">
.marger-pading {
  position: relative;
  .manager-top {
    position: absolute;
    top: 0;
  }
}
</style>