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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
@import '~antd/es/style/themes/default.less';
@disabledBgColor: rgb(248, 250, 252);
@disabledColor: rgba(0, 0, 0, 0.7);
body #app {
background: transparent;
width: 100%;
height: 100%;
.pg-viewer-wrapper {
overflow-y: auto;
}
}
.pandaXform {
background: white;
.fr-generator-container .left-layout {
padding: 10px 0 0 0;
.left-item {
justify-content: left;
padding-left: 10px;
&:hover {
svg {
fill: #409eff;
}
}
.anticon {
margin-right: 5px;
}
}
}
.@{ant-prefix}-spin-spinning {
background: rgba(255, 255, 255, 0.7);
max-height: none !important;
}
.@{ant-prefix}-tabs-content-holder {
height: 664px;
overflow: auto;
}
.fr-generator-container .right-layout {
width: 21rem;
}
.fr-container .fr-label-required {
margin: 0;
} //表单组横线样式
.@{ant-prefix}-divider-horizontal {
margin: 15px 0;
} //提示语样式
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.@{ant-prefix}-select-selection-placeholder {
color: #8a8282;
} // 单行文本框
input[disabled] {
color: @disabledColor;
cursor: default;
background: @disabledBgColor;
border: none;
} // 多行文本框
.@{ant-prefix}-input[disabled] {
color: @disabledColor;
box-shadow: none;
cursor: default;
background: @disabledBgColor;
border: none;
} //数值输入框样式修改
.@{ant-prefix}-input-number-handler-wrap {
opacity: 1;
}
.@{ant-prefix}-input-number-disabled {
border: none;
} // 时间选择器的disabled样式
.@{ant-prefix}-picker-disabled {
cursor: default;
color: @disabledColor;
background-color: rgb(250, 250, 250);
&+span {
cursor: default;
}
} // radio的disabled样式
.@{ant-prefix}-radio-disabled {
cursor: default;
&+span {
cursor: default;
color: @disabledColor;
}
.@{ant-prefix}-radio-inner {
cursor: default;
&:after {
background: rgba(0, 0, 0, 0.5);
}
}
}
.@{ant-prefix}-checkbox-wrapper {
margin-top: 10px;
margin-left: 5px;
} //复选框disabled的样式
.@{ant-prefix}-checkbox-disabled {
&+span {
cursor: default;
color: @disabledColor;
}
.@{ant-prefix}-checkbox-inner {
cursor: default;
&:after {
border-color: rgba(0, 0, 0, 0.5);
}
}
} // 下拉选未选的disabled样式
.@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) {
.@{ant-prefix}-select-selector {
color: @disabledColor;
cursor: default;
border: none;
background: @disabledBgColor;
}
} // 下拉选已选的disabled样式
.@{ant-prefix}-cascader-picker-disabled {
color: @disabledColor;
background-color: rgb(250, 250, 250);
cursor: default;
border: none;
} // 按钮的disabled样式
.@{ant-prefix}-btn[disabled] {
text-shadow: none;
background: #ffffff;
border-color: #d9d9d9;
box-shadow: none;
cursor: default;
&:hover,
&:focus,
&:active {
color: @disabledColor;
text-shadow: none;
background: #ffffff;
border-color: #d9d9d9;
box-shadow: none;
}
} // 上传组件的图片类型按钮的disabled样式
.@{ant-prefix}-upload-disabled {
color: @disabledColor;
cursor: default;
border: none;
.@{ant-prefix}-btn-default {
display: none;
}
} // 多选下的tag的disabled样式
.@{ant-prefix}-select-disabled.@{ant-prefix}-select-multiple {
.@{ant-prefix}-select-selection-item {
color: @disabledColor;
background: @disabledBgColor;
cursor: default;
border: none;
}
}
.@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) {
.@{ant-prefix}-select-selector input {
cursor: default;
}
} // 时间选择框
.@{ant-prefix}-picker-input>input[disabled] {
color: @disabledColor;
}
.@{ant-prefix}-picker-disabled {
border: none;
.@{ant-prefix}-picker-suffix {
display: none;
}
}
&-operate-group {
display: flex;
align-items: flex-end;
justify-content: flex-end;
padding: 10px 10px;
}
&-group {
// .@{pandaXform-prefix-cls}-title {
// display: flex;
// align-items: center;
// justify-content: center;
// font-size: 16px;
// }
i {
width: 3px;
height: 16px;
margin-right: 10px;
background-color: #337ab7;
}
.fr-label-object {
.fr-label-title {
padding: 10px 10px 0 0;
}
.fr-label-title::after {
content: '';
}
}
.b--black-20 {
border-color: rgba(232, 240, 237, 1);
}
}
.emphasis {
input {
font-weight: bold;
}
}
.notEditable {
input {
cursor: default;
}
}
/** @Tips: 在原有框架下,表单渲染后,使用的是flex自动布局,与calc来计算组件宽度,未设置固定宽度,导致页面布局错乱 */
.fr-content .fr-item-wrapper>div {
width: 100%;
}
}