zhuoyuan.wang
2024-06-19 15ebe96f28cadec6a726c5324593a40bbf56205f
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
  <el-row class="app-layout-row" v-bind="$attrs"
          :style="
          `height: ${height};
          position:relative;
          left:${left}px;
          right:${right}px;
          bottom:${bottom}px;
          top:${top}px;
          padding-left:${paddingLeft}px;
          padding-right:${paddingRight}px;
          padding-bottom:${paddingBottom}px;
          padding-top:${paddingTop}px;
          margin-left:${marginLeft}px;
          margin-right:${marginRight}px;
          margin-bottom:${marginBottom}px;
          margin-top:${marginTop}px;
          `
">
    <template v-for="slot in Object.keys($slots)">
      <slot :name="slot"/>
    </template>
  </el-row>
</template>
 
<script setup>
 
const props = defineProps({
  left: {
    type: Number,
    default: 0
  },
  right: {
    type: Number,
    default: 0
  },
  bottom: {
    type: Number,
    default: 0
  },
  top: {
    type: Number,
    default: 0
  },
  paddingLeft: {
    type: Number,
    default: 0
  },
  paddingRight: {
    type: Number,
    default: 0
  },
  paddingBottom: {
    type: Number,
    default: 0
  },
  paddingTop: {
    type: Number,
    default: 0
  },
  marginLeft: {
    type: Number,
    default: 0
  },
  marginRight: {
    type: Number,
    default: 0
  },
  marginBottom: {
    type: Number,
    default: 0
  },
  marginTop: {
    type: Number,
    default: 0
  },
  height: {
    type: String,
    default: ''
  }
});
 
</script>
 
 
<style lang="scss">
.app-layout-row {
  width: 100%;
}
</style>