Skip to content

Commit b373986

Browse files
wangdan-fit2cloudliuruibin
authored andcommitted
fix: Dynamic form card style bug
1 parent 2b05ca6 commit b373986

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

ui/src/components/dynamics-form/items/MultiRow.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="radio_content">
2+
<div class="multi_row">
33
<div
44
v-for="item in option_list"
55
:key="item.value"
@@ -68,8 +68,8 @@ const option_list = computed(() => {
6868
})
6969
</script>
7070
<style lang="scss" scoped>
71-
.radio_content {
72-
height: 32px;
71+
.multi_row {
72+
// height: 32px;
7373
display: inline-flex;
7474
border: 1px solid #bbbfc4;
7575
border-radius: 4px;

ui/src/components/dynamics-form/items/radio/RadioCard.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="radio_content" :style="radioContentStyle">
2+
<div class="radio-card" :style="radioContentStyle">
33
<el-row :gutter="12" class="w-full">
44
<template v-for="(item, index) in option_list" :key="index">
55
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
@@ -74,8 +74,7 @@ const option_list = computed(() => {
7474
})
7575
</script>
7676
<style lang="scss" scoped>
77-
.radio_content {
78-
height: 32px;
77+
.radio-card {
7978
display: flex;
8079
flex-wrap: wrap;
8180
justify-content: flex-start;

ui/src/components/dynamics-form/items/radio/RadioRow.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="radio_content">
2+
<div class="radio-row">
33
<div
44
v-for="item in option_list"
55
:key="item.value"
@@ -48,8 +48,8 @@ const option_list = computed(() => {
4848
})
4949
</script>
5050
<style lang="scss" scoped>
51-
.radio_content {
52-
height: 32px;
51+
.radio-row {
52+
// height: 32px;
5353
display: inline-flex;
5454
border: 1px solid #bbbfc4;
5555
border-radius: 4px;

0 commit comments

Comments
 (0)