index.vue
2.6 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<template>
<div class="entryEdit">
<div class="entryEdit-button" v-if="option">
<slot name="options"></slot>
</div>
<div class="entryInformation">
<el-row class="entryEditBox" :gutter="editBoxCol.gutter">
<el-col :span="editBoxCol.colLeft">
<div class="editboxLeft">
<slot name="leftTitle"></slot>
<div class="editInformation">
<slot name="leftEdit"></slot>
</div>
<slot name="leftFloot"></slot>
</div>
</el-col>
<el-col :span="editBoxCol.colRight">
<slot name="right"></slot>
</el-col>
</el-row>
</div>
</div>
</template>
<script>
export default {
props: {
option: {
type: Boolean,
default: true
},
editBoxCol: {
type: Object,
default() {
return {
gutter: 10,
colLeft: 18,
colRight: 6
}
}
}
},
}
</script>
<style lang="scss" scoped>
@import '@/assets/styles/variables.scss';
.entryEdit {
position: relative;
height: 100%;
.entryEdit-info,
.entryEdit-button {
width: 100%;
height: 50px;
line-height: 40px;
font-size: .88rem;
padding: 0 24px;
border-bottom: 1px solid $fedexBorder;
background-color: #fff;
z-index: 99;
}
.entryEdit-info {
text-align: left;
.info-class {
font-weight: 600;
}
}
.entryEdit-button {
text-align: right;
.el-button {
margin-right: 10px;
color: $fedexButton;
font-size: .875rem;
font-weight: 600;
}
}
.entryInformation {
width: 100%;
height: 100%;
position: relative;
padding: 1rem 40px 120px 40px;
overflow: auto;
.entryEditBox {
height: auto;
max-width: 1328px;
margin: 0 auto !important;
.editboxLeft {
width: 100%;
height: auto;
margin: 0 auto;
background-color: #fff;
padding: 16px 16px 32px 16px;
position: relative;
}
.editInformation {
width: 72%;
height: auto;
margin: 20px auto;
}
}
}
}
</style>