index.vue 865 Bytes
Newer Older
程智春 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
<template>
  <div
    class="partition"
    :style="{
      'padding-top':getPaddingList[0]['value']+'px',
      'padding-bottom':getPaddingList[1]['value']+'px',
      'padding-left':getPaddingList[2]['value']+'px',
      'padding-right':getPaddingList[3]['value']+'px',
    }"
  >
    <div
      :style="{
        'border-width':'1px',
        'border-top-style':getLineStyle,
        'border-top-color':getLineColor,
      }"
    ></div>
  </div>
</template>
<script>
export default {
  name: "partition",
  props: ["datas"],
  data() {
    return {};
  },
  computed: {
    getPaddingList() {
      return this.datas.componentData.paddingList;
    },
    getLineColor() {
      return this.datas.componentData.lineColor;
    },
    getLineStyle() {
      return this.datas.componentData.initlineStyle;
    }
  }
};
</script>
<style lang="scss" scoped>
</style>