vue2-client 1.16.84 → 1.16.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +112 -112
- package/src/assets/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/HIS/HButtons/HButtons.vue +381 -381
- package/src/base-client/components/common/HIS/HForm/HForm.vue +492 -348
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +10 -1
- package/src/base-client/components/common/HIS/HTab/HTab.vue +26 -1
- package/src/base-client/components/common/XCollapse/XCollapse.vue +833 -833
- package/src/base-client/components/common/XInput/XInput.vue +194 -194
- package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
- package/src/base-client/components/common/XTimeline/XTimeline.vue +478 -462
- package/src/base-client/components/common/XTree/XTreePro.vue +4 -4
- package/src/base-client/components/his/XCheckbox/XCheckbox.vue +181 -181
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XList/XList.vue +829 -829
- package/src/base-client/components/his/XRadio/XRadio.vue +389 -389
- package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +159 -159
- package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +306 -306
- package/src/base-client/components/his/XTitle/XTitle.vue +274 -269
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src-base-client/components/common/HIS/HForm/HForm.vue +0 -348
- package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
|
@@ -1,348 +1,492 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
3
|
-
import { ref, computed, useAttrs } from 'vue'
|
|
4
|
-
|
|
5
|
-
const xAddNativeFormRef = ref()
|
|
6
|
-
|
|
7
|
-
const attrs = useAttrs()
|
|
8
|
-
const wrapperClassObject = computed(() => {
|
|
9
|
-
const a = attrs
|
|
10
|
-
const classes = {}
|
|
11
|
-
|
|
12
|
-
// 1) 多个布尔型样式开关(存在且为真则生效)
|
|
13
|
-
const booleanStyleKeys = [
|
|
14
|
-
'query-conditions',
|
|
15
|
-
'padding-50',
|
|
16
|
-
'label-text-horizontal',
|
|
17
|
-
'label-text-justify',
|
|
18
|
-
'left-form',
|
|
19
|
-
'charge-form'
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
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
|
-
v-
|
|
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
|
-
padding-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
font-
|
|
115
|
-
font-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
font-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
@color-
|
|
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
|
-
.ant-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
margin-
|
|
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
|
-
.ant-input
|
|
208
|
-
.ant-
|
|
209
|
-
.ant-
|
|
210
|
-
.ant-
|
|
211
|
-
.ant-
|
|
212
|
-
.ant-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
.ant-form-item-control-input
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
margin-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
padding-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
text-
|
|
335
|
-
text-align
|
|
336
|
-
text-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
3
|
+
import { ref, computed, useAttrs } from 'vue'
|
|
4
|
+
|
|
5
|
+
const xAddNativeFormRef = ref()
|
|
6
|
+
|
|
7
|
+
const attrs = useAttrs()
|
|
8
|
+
const wrapperClassObject = computed(() => {
|
|
9
|
+
const a = attrs
|
|
10
|
+
const classes = {}
|
|
11
|
+
|
|
12
|
+
// 1) 多个布尔型样式开关(存在且为真则生效)
|
|
13
|
+
const booleanStyleKeys = [
|
|
14
|
+
'query-conditions',
|
|
15
|
+
'padding-50',
|
|
16
|
+
'label-text-horizontal',
|
|
17
|
+
'label-text-justify',
|
|
18
|
+
'left-form',
|
|
19
|
+
'charge-form',
|
|
20
|
+
'aligned-form'
|
|
21
|
+
]
|
|
22
|
+
for (const key of booleanStyleKeys) {
|
|
23
|
+
const val = a[key]
|
|
24
|
+
const truthy = val === true || val === '' || val === 'true'
|
|
25
|
+
if (truthy) classes[`h-form-${key}`] = true
|
|
26
|
+
}
|
|
27
|
+
return classes
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
defineExpose({
|
|
31
|
+
getXAddNativeFormInstance: () => xAddNativeFormRef.value,
|
|
32
|
+
init: (params) => xAddNativeFormRef.value && xAddNativeFormRef.value.init && xAddNativeFormRef.value.init(params),
|
|
33
|
+
asyncSubmit: () => xAddNativeFormRef.value && xAddNativeFormRef.value.asyncSubmit && xAddNativeFormRef.value.asyncSubmit(),
|
|
34
|
+
validateForm: () => xAddNativeFormRef.value && xAddNativeFormRef.value.validateForm && xAddNativeFormRef.value.validateForm()
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<template>
|
|
40
|
+
<div
|
|
41
|
+
class="h-form-wrapper"
|
|
42
|
+
:class="[
|
|
43
|
+
wrapperClassObject
|
|
44
|
+
]"
|
|
45
|
+
>
|
|
46
|
+
|
|
47
|
+
<x-add-native-form
|
|
48
|
+
ref="xAddNativeFormRef"
|
|
49
|
+
v-bind="$attrs"
|
|
50
|
+
v-on="$listeners"
|
|
51
|
+
>
|
|
52
|
+
<template v-for="(_, name) in $slots" #[name]="slotData">
|
|
53
|
+
<slot :name="name" v-bind="slotData" />
|
|
54
|
+
</template>
|
|
55
|
+
</x-add-native-form>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<style scoped lang="less">
|
|
60
|
+
.h-form-wrapper {
|
|
61
|
+
// 基础样式
|
|
62
|
+
:deep(.ant-form-item) {
|
|
63
|
+
margin-bottom: 4px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// query-conditions 样式
|
|
67
|
+
&.h-form-query-conditions {
|
|
68
|
+
// ant-card-body 样式
|
|
69
|
+
:deep(.ant-card-body) {
|
|
70
|
+
padding: 0px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// ant-row-flex 样式
|
|
74
|
+
:deep(.ant-row-flex) {
|
|
75
|
+
// x-form-col-wrapper 样式
|
|
76
|
+
.x-form-col-wrapper {
|
|
77
|
+
.ant-form-item {
|
|
78
|
+
display: flex;
|
|
79
|
+
width: 100%;
|
|
80
|
+
margin-bottom: 4px;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
|
|
83
|
+
.ant-form-item-label {
|
|
84
|
+
padding-left: 4px;
|
|
85
|
+
width: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ant-form-item-control-wrapper {
|
|
89
|
+
padding-left: -6px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// ant-col-24 样式
|
|
95
|
+
.ant-col-24 {
|
|
96
|
+
padding: 0px 4px !important;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.h-form-padding-50 {
|
|
102
|
+
// ant-row-flex 样式
|
|
103
|
+
:deep(.ant-row-flex) {
|
|
104
|
+
padding-left: 50px;
|
|
105
|
+
padding-right: 50px
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// charge-form 样式
|
|
110
|
+
&.h-form-charge-form {
|
|
111
|
+
margin-top: 2px !important;
|
|
112
|
+
// 定义变量
|
|
113
|
+
@font-common: {
|
|
114
|
+
font-family: 'Source Han Sans', sans-serif;
|
|
115
|
+
font-size: 16px;
|
|
116
|
+
font-weight: normal;
|
|
117
|
+
letter-spacing: 0em;
|
|
118
|
+
font-variation-settings: "opsz" auto;
|
|
119
|
+
font-feature-settings: "kern" on;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
@color-primary: #313131;
|
|
123
|
+
@color-placeholder: #999999;
|
|
124
|
+
|
|
125
|
+
// 定义混合宏
|
|
126
|
+
.input-base() {
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: 30px;
|
|
129
|
+
line-height: 30px;
|
|
130
|
+
vertical-align: top;
|
|
131
|
+
margin: 0;
|
|
132
|
+
text-align: left;
|
|
133
|
+
color: @color-primary;
|
|
134
|
+
opacity: 1;
|
|
135
|
+
@font-common();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.placeholder-base() {
|
|
139
|
+
color: @color-placeholder;
|
|
140
|
+
opacity: 1;
|
|
141
|
+
@font-common();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.option-group-base() {
|
|
145
|
+
height: 30px;
|
|
146
|
+
line-height: 30px;
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
|
|
150
|
+
.ant-radio-wrapper,
|
|
151
|
+
.ant-checkbox-wrapper {
|
|
152
|
+
height: 30px;
|
|
153
|
+
line-height: 30px;
|
|
154
|
+
margin-right: 16px;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:deep(.ant-form-item) {
|
|
159
|
+
margin-bottom: 16px;
|
|
160
|
+
margin-top: 0;
|
|
161
|
+
padding: 0;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
|
|
165
|
+
.ant-form-item-label {
|
|
166
|
+
text-align: left;
|
|
167
|
+
margin: 0 16px 0 0 !important;
|
|
168
|
+
width: 64px;
|
|
169
|
+
min-width: 64px;
|
|
170
|
+
max-width: 64px;
|
|
171
|
+
flex-shrink: 0;
|
|
172
|
+
|
|
173
|
+
label {
|
|
174
|
+
height: 23px;
|
|
175
|
+
opacity: 1;
|
|
176
|
+
line-height: 23px;
|
|
177
|
+
color: @color-primary;
|
|
178
|
+
margin: 0;
|
|
179
|
+
padding: 0;
|
|
180
|
+
white-space: nowrap;
|
|
181
|
+
display: block;
|
|
182
|
+
@font-common();
|
|
183
|
+
|
|
184
|
+
// 移除冒号
|
|
185
|
+
&::after {
|
|
186
|
+
content: '';
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.ant-form-item-control-wrapper {
|
|
192
|
+
margin: 0;
|
|
193
|
+
padding: 0;
|
|
194
|
+
flex: 1;
|
|
195
|
+
min-width: 0;
|
|
196
|
+
display: flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
|
|
199
|
+
.ant-form-item-control {
|
|
200
|
+
margin: 0;
|
|
201
|
+
padding: 0;
|
|
202
|
+
width: 100%;
|
|
203
|
+
text-align: left;
|
|
204
|
+
line-height: 30px !important;
|
|
205
|
+
|
|
206
|
+
// 输入框样式统一
|
|
207
|
+
.ant-input,
|
|
208
|
+
.ant-input-affix-wrapper,
|
|
209
|
+
.ant-select,
|
|
210
|
+
.ant-input-number,
|
|
211
|
+
.ant-picker,
|
|
212
|
+
.ant-radio-group,
|
|
213
|
+
.ant-checkbox-group {
|
|
214
|
+
.input-base();
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// 选择器样式
|
|
218
|
+
.ant-select {
|
|
219
|
+
.ant-select-selector {
|
|
220
|
+
.input-base();
|
|
221
|
+
height: 30px;
|
|
222
|
+
line-height: 30px;
|
|
223
|
+
|
|
224
|
+
.ant-select-selection-item {
|
|
225
|
+
.input-base();
|
|
226
|
+
line-height: 30px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ant-select-selection-placeholder {
|
|
230
|
+
.placeholder-base();
|
|
231
|
+
line-height: 30px;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// 日期选择器样式
|
|
237
|
+
.ant-picker {
|
|
238
|
+
height: 30px;
|
|
239
|
+
|
|
240
|
+
.ant-picker-input {
|
|
241
|
+
height: 30px;
|
|
242
|
+
line-height: 30px;
|
|
243
|
+
.input-base();
|
|
244
|
+
|
|
245
|
+
input {
|
|
246
|
+
.input-base();
|
|
247
|
+
height: 30px;
|
|
248
|
+
line-height: 30px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// 数字输入框样式
|
|
254
|
+
.ant-input-number {
|
|
255
|
+
height: 30px;
|
|
256
|
+
|
|
257
|
+
.ant-input-number-input {
|
|
258
|
+
.input-base();
|
|
259
|
+
height: 30px;
|
|
260
|
+
line-height: 30px;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// 单选框组样式
|
|
265
|
+
.ant-radio-group {
|
|
266
|
+
.option-group-base();
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// 复选框组样式
|
|
270
|
+
.ant-checkbox-group {
|
|
271
|
+
.option-group-base();
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// 重置可能的容器边距
|
|
278
|
+
:deep(.ant-row) {
|
|
279
|
+
margin: 0;
|
|
280
|
+
padding: 0;
|
|
281
|
+
|
|
282
|
+
.ant-col {
|
|
283
|
+
margin: 0;
|
|
284
|
+
padding: 0;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// 强制重置所有可能的表单项样式
|
|
289
|
+
:deep(.ant-form-item) {
|
|
290
|
+
margin: 0 0 16px 0 !important;
|
|
291
|
+
|
|
292
|
+
// 重置可能的内部边距
|
|
293
|
+
.ant-form-item-control-input,
|
|
294
|
+
.ant-form-item-control-input-content {
|
|
295
|
+
margin: 0 !important;
|
|
296
|
+
padding: 0 !important;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// label-text-horizontal 样式 - 只控制label文字从左到右排列
|
|
302
|
+
&.h-form-label-text-horizontal {
|
|
303
|
+
:deep(.ant-form-item-label) {
|
|
304
|
+
text-align: left;
|
|
305
|
+
direction: ltr;
|
|
306
|
+
|
|
307
|
+
// 标签文字水平排列
|
|
308
|
+
.ant-form-item-label-text {
|
|
309
|
+
display: inline-block;
|
|
310
|
+
text-align: left;
|
|
311
|
+
direction: ltr;
|
|
312
|
+
unicode-bidi: normal;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// 必填标识水平排列
|
|
316
|
+
.ant-form-item-required::before {
|
|
317
|
+
margin-right: 4px;
|
|
318
|
+
margin-left: 0;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// label-text-justify 样式 - 标签文字两端对齐分散占满 必填*可能会有问题
|
|
324
|
+
&.h-form-label-text-justify {
|
|
325
|
+
:deep(.ant-form-item-label) {
|
|
326
|
+
padding-left: 0;
|
|
327
|
+
padding-right: 8px;
|
|
328
|
+
label {
|
|
329
|
+
position: relative;
|
|
330
|
+
display: block;
|
|
331
|
+
width: 100%;
|
|
332
|
+
white-space: nowrap;
|
|
333
|
+
margin: 0;
|
|
334
|
+
text-indent: 0;
|
|
335
|
+
text-align: justify;
|
|
336
|
+
text-align-last: justify;
|
|
337
|
+
text-justify: inter-ideograph;
|
|
338
|
+
box-sizing: border-box;
|
|
339
|
+
padding-right: 12px; // 给绝对定位的冒号留出空间
|
|
340
|
+
}
|
|
341
|
+
// 将冒号绝对定位到最右侧,避免参与两端对齐计算
|
|
342
|
+
label::after {
|
|
343
|
+
position: absolute;
|
|
344
|
+
right: 0;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
// aligned-form 样式 - 实现标签左对齐、输入框垂直对齐的整齐布局
|
|
350
|
+
&.h-form-aligned-form {
|
|
351
|
+
:deep(.ant-form-item) {
|
|
352
|
+
margin-bottom: 16px;
|
|
353
|
+
display: flex;
|
|
354
|
+
align-items: center;
|
|
355
|
+
width: 100%;
|
|
356
|
+
|
|
357
|
+
.ant-form-item-label {
|
|
358
|
+
text-align: left;
|
|
359
|
+
margin-right: 12px;
|
|
360
|
+
flex-shrink: 0;
|
|
361
|
+
min-width: 80px; // 确保标签有最小宽度,保持对齐
|
|
362
|
+
max-width: 120px; // 限制最大宽度,避免过宽
|
|
363
|
+
|
|
364
|
+
label {
|
|
365
|
+
margin: 0;
|
|
366
|
+
padding: 0;
|
|
367
|
+
white-space: nowrap;
|
|
368
|
+
display: block;
|
|
369
|
+
text-align: left;
|
|
370
|
+
line-height: 32px;
|
|
371
|
+
height: 32px;
|
|
372
|
+
color: rgba(0, 0, 0, 0.85);
|
|
373
|
+
font-size: 14px;
|
|
374
|
+
|
|
375
|
+
// 移除默认冒号
|
|
376
|
+
&::after {
|
|
377
|
+
content: '';
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.ant-form-item-control-wrapper {
|
|
383
|
+
flex: 1;
|
|
384
|
+
min-width: 0;
|
|
385
|
+
display: flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
|
|
388
|
+
.ant-form-item-control {
|
|
389
|
+
width: 100%;
|
|
390
|
+
margin: 0;
|
|
391
|
+
padding: 0;
|
|
392
|
+
|
|
393
|
+
// 统一输入框样式
|
|
394
|
+
.ant-input,
|
|
395
|
+
.ant-input-affix-wrapper,
|
|
396
|
+
.ant-select,
|
|
397
|
+
.ant-input-number,
|
|
398
|
+
.ant-picker,
|
|
399
|
+
.ant-radio-group,
|
|
400
|
+
.ant-checkbox-group {
|
|
401
|
+
width: 100%;
|
|
402
|
+
height: 32px;
|
|
403
|
+
line-height: 32px;
|
|
404
|
+
vertical-align: top;
|
|
405
|
+
margin: 0;
|
|
406
|
+
text-align: left;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// 选择器样式
|
|
410
|
+
.ant-select {
|
|
411
|
+
.ant-select-selector {
|
|
412
|
+
height: 32px;
|
|
413
|
+
line-height: 32px;
|
|
414
|
+
|
|
415
|
+
.ant-select-selection-item,
|
|
416
|
+
.ant-select-selection-placeholder {
|
|
417
|
+
line-height: 32px;
|
|
418
|
+
height: 32px;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// 日期选择器样式
|
|
424
|
+
.ant-picker {
|
|
425
|
+
height: 32px;
|
|
426
|
+
|
|
427
|
+
.ant-picker-input {
|
|
428
|
+
height: 32px;
|
|
429
|
+
line-height: 32px;
|
|
430
|
+
|
|
431
|
+
input {
|
|
432
|
+
height: 32px;
|
|
433
|
+
line-height: 32px;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// 数字输入框样式
|
|
439
|
+
.ant-input-number {
|
|
440
|
+
height: 32px;
|
|
441
|
+
|
|
442
|
+
.ant-input-number-input {
|
|
443
|
+
height: 32px;
|
|
444
|
+
line-height: 32px;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// 单选框组和复选框组样式
|
|
449
|
+
.ant-radio-group,
|
|
450
|
+
.ant-checkbox-group {
|
|
451
|
+
height: 32px;
|
|
452
|
+
line-height: 32px;
|
|
453
|
+
display: flex;
|
|
454
|
+
align-items: center;
|
|
455
|
+
|
|
456
|
+
.ant-radio-wrapper,
|
|
457
|
+
.ant-checkbox-wrapper {
|
|
458
|
+
height: 32px;
|
|
459
|
+
line-height: 32px;
|
|
460
|
+
margin-right: 16px;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// 确保行容器样式
|
|
468
|
+
:deep(.ant-row) {
|
|
469
|
+
margin: 0;
|
|
470
|
+
padding: 0;
|
|
471
|
+
|
|
472
|
+
.ant-col {
|
|
473
|
+
margin: 0;
|
|
474
|
+
padding: 0 8px; // 列与列之间的间距
|
|
475
|
+
display: flex;
|
|
476
|
+
flex-direction: column;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// 重置可能的容器边距
|
|
481
|
+
:deep(.ant-form-item) {
|
|
482
|
+
margin: 0 0 16px 0 !important;
|
|
483
|
+
|
|
484
|
+
.ant-form-item-control-input,
|
|
485
|
+
.ant-form-item-control-input-content {
|
|
486
|
+
margin: 0 !important;
|
|
487
|
+
padding: 0 !important;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
</style>
|