feat: 优化 diy editor 样式

This commit is contained in:
xingyu4j
2025-11-05 14:09:38 +08:00
parent 769c56aeff
commit 57f39fbc90
12 changed files with 249 additions and 404 deletions

View File

@@ -11,7 +11,7 @@ import { IconifyIcon } from '@vben/icons';
import { useAccessStore } from '@vben/stores';
import { isEmpty } from '@vben/utils';
import { message, Radio, RadioGroup, Tooltip } from 'ant-design-vue';
import { message, Radio, RadioGroup } from 'ant-design-vue';
import { updateDiyPageProperty } from '#/api/mall/promotion/diy/page';
import {
@@ -191,18 +191,18 @@ onMounted(async () => {
<template #toolBarLeft>
<RadioGroup
:value="selectedTemplateItem"
class="h-full!"
class="flex items-center"
size="large"
@change="handleTemplateItemChange"
>
<Tooltip
v-for="(item, index) in templateItems"
:key="index"
:title="item.name"
>
<template v-for="(item, index) in templateItems" :key="index">
<Radio.Button :value="index">
<IconifyIcon :icon="item.icon" :size="24" />
<IconifyIcon
:icon="item.icon"
class="mt-2 flex size-6 items-center"
/>
</Radio.Button>
</Tooltip>
</template>
</RadioGroup>
</template>
</DiyEditor>