leisure-core 0.5.55 → 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.
@@ -14,13 +14,17 @@
14
14
  :key="`form-item-${index}-${item.prop}`"
15
15
  class="leisure-form-item-class"
16
16
  >
17
- <div class="comContainerClass">
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,8 +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;
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
+ }
283
300
  }
284
301
  }
285
302
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.55",
3
+ "version": "0.5.57",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",