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
<template>
<div class='page layout-form'>
<slot name='breadcrumb'>
<Breadcrumb />
</slot>
<slot></slot>
</div>
</template>
<style lang="less">
@media screen and (max-width: 800px){
.layout-form{
form{
width: 100%!important;
}
.el-col-12{
width: 100%;
}
}
}
.layout-form{
.el-breadcrumb{
padding-bottom: 12px;
margin-bottom: 12px;
border-bottom: 1px solid #ededed;
}
form{
width: 800px;
&[loading]{
pointer-events: none;
.el-button{
background: #eee;
color: transparent;
border-color: #eee;
}
input,
textarea{
background: #eee;
color: transparent;
border-color: #eee;
}
span, input, button, li, label{
color: #eee;
}
}
.el-input-group--append{
.el-select .el-input {
width: 80px;
}
}
// 自定义的field组件
.my-form-field{
.el-select{
width: 100%;
}
.el-date-editor.el-input{
width: 100%;
}
.form-el-radio-group{
label{
width: 160px;
}
.el-radio-button__inner{
border: 0;
}
}
}
}
}
</style>