leisure-core 0.5.56 → 0.5.57
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/le-list-form/src/main.vue +18 -2
- package/package.json +1 -1
|
@@ -14,13 +14,17 @@
|
|
|
14
14
|
:key="`form-item-${index}-${item.prop}`"
|
|
15
15
|
class="leisure-form-item-class"
|
|
16
16
|
>
|
|
17
|
-
<div
|
|
17
|
+
<div
|
|
18
|
+
class="comContainerClass"
|
|
19
|
+
:class="{ 'radio-container': item.type === 'radio' }"
|
|
20
|
+
>
|
|
18
21
|
<component
|
|
19
22
|
:is="componentType(item.type)"
|
|
20
23
|
v-model="formPop[item.prop]"
|
|
21
24
|
v-bind="mergeProps(getComponentProps(item), item.attr || {})"
|
|
22
25
|
v-on="item.event"
|
|
23
26
|
class="compontClass"
|
|
27
|
+
:class="{ 'radio-group-class': item.type === 'radio' }"
|
|
24
28
|
:key="`component-${index}-${item.prop}-${item.type}`"
|
|
25
29
|
>
|
|
26
30
|
<template v-if="item.type === 'radio'">
|
|
@@ -278,9 +282,21 @@ le-form-container {
|
|
|
278
282
|
line-height: inherit;
|
|
279
283
|
justify-content: center; /* 水平居中 */
|
|
280
284
|
|
|
285
|
+
&.radio-container {
|
|
286
|
+
align-items: center;
|
|
287
|
+
min-height: 40px; /* 确保有足够的高度 */
|
|
288
|
+
}
|
|
289
|
+
|
|
281
290
|
.compontClass {
|
|
282
291
|
flex: 1;
|
|
283
|
-
|
|
292
|
+
|
|
293
|
+
&.radio-group-class {
|
|
294
|
+
display: flex;
|
|
295
|
+
align-items: center;
|
|
296
|
+
flex-wrap: wrap;
|
|
297
|
+
line-height: normal;
|
|
298
|
+
// background-color: rebeccapurple;
|
|
299
|
+
}
|
|
284
300
|
}
|
|
285
301
|
}
|
|
286
302
|
|