fix:【antd】【mall】diy-editor 的 menu-grid、menu-swiper 的 radio 不正确
This commit is contained in:
@@ -30,7 +30,7 @@ const formData = useVModel(props, 'modelValue', emit);
|
|||||||
<!-- 表单 -->
|
<!-- 表单 -->
|
||||||
<Form label-width="80px" :model="formData" class="mt-2">
|
<Form label-width="80px" :model="formData" class="mt-2">
|
||||||
<FormItem label="每行数量" prop="column">
|
<FormItem label="每行数量" prop="column">
|
||||||
<RadioGroup v-model="formData.column">
|
<RadioGroup v-model:value="formData.column">
|
||||||
<Radio :value="3">3个</Radio>
|
<Radio :value="3">3个</Radio>
|
||||||
<Radio :value="4">4个</Radio>
|
<Radio :value="4">4个</Radio>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { Image } from 'ant-design-vue';
|
|||||||
|
|
||||||
/** 菜单导航 */
|
/** 菜单导航 */
|
||||||
defineOptions({ name: 'MenuSwiper' });
|
defineOptions({ name: 'MenuSwiper' });
|
||||||
|
|
||||||
const props = defineProps<{ property: MenuSwiperProperty }>();
|
const props = defineProps<{ property: MenuSwiperProperty }>();
|
||||||
|
|
||||||
const TITLE_HEIGHT = 20; // 标题的高度
|
const TITLE_HEIGHT = 20; // 标题的高度
|
||||||
@@ -71,9 +72,7 @@ watch(
|
|||||||
class="relative flex flex-col items-center justify-center"
|
class="relative flex flex-col items-center justify-center"
|
||||||
:style="{ width: columnWidth, height: `${rowHeight}px` }"
|
:style="{ width: columnWidth, height: `${rowHeight}px` }"
|
||||||
>
|
>
|
||||||
<!-- 图标 + 角标 -->
|
|
||||||
<div class="relative" :class="`h-${ICON_SIZE}px w-${ICON_SIZE}px`">
|
<div class="relative" :class="`h-${ICON_SIZE}px w-${ICON_SIZE}px`">
|
||||||
<!-- 右上角角标 -->
|
|
||||||
<span
|
<span
|
||||||
v-if="item.badge?.show"
|
v-if="item.badge?.show"
|
||||||
class="absolute -right-2.5 -top-2.5 z-10 h-5 rounded-[10px] px-1.5 text-center text-xs leading-5"
|
class="absolute -right-2.5 -top-2.5 z-10 h-5 rounded-[10px] px-1.5 text-center text-xs leading-5"
|
||||||
@@ -91,7 +90,6 @@ watch(
|
|||||||
:preview="false"
|
:preview="false"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 标题 -->
|
|
||||||
<span
|
<span
|
||||||
v-if="property.layout === 'iconText'"
|
v-if="property.layout === 'iconText'"
|
||||||
class="text-xs"
|
class="text-xs"
|
||||||
|
|||||||
Reference in New Issue
Block a user