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
| .formStyle {
| .formItem {
| // 移除固定宽度限制
| width: auto !important;
| margin-right: 0 !important;
| }
|
| .formControl {
| flex: 1; // 让控件占据剩余空间
| min-width: 0; // 允许控件收缩
| }
|
| .formItemLabel {
| display: inline-flex;
| justify-content: flex-end;
| align-items: center;
| flex: 0 0 auto;
| font-size: var(--cs-form-label-font-size);
| color: var(--cs-text-color-regular);
| height: 32px;
| line-height: 32px;
| padding: 0 12px 0 0;
| box-sizing: border-box;
| > img {
| margin-left: 10px;
| }
| }
|
| :global(.cs-select) {
| width: 100%;
| }
|
| // 移除固定宽度设置
| :global(.cs-form--inline .cs-form-item) {
| width: auto !important;
| }
|
| :global(.cs-form--inline .cs-form-item:nth-last-of-type(2n)) {
| margin-right: 0 !important;
| }
| }
|
|