review:【antd】【mall】店铺装修

This commit is contained in:
YunaiV
2025-11-29 11:32:37 +08:00
parent 0ffebd6de4
commit bdb63cb293
7 changed files with 11 additions and 8 deletions

View File

@@ -133,7 +133,7 @@ function handleSliderChange(prop: string) {
</TabPane> </TabPane>
<!-- 每个组件的通用内容 --> <!-- 每个组件的通用内容 -->
<!-- TODO @xingyu这里的样式貌似没 ele 版本的好看 --> <!-- TODO @xingyu装修这里的样式貌似没 ele 版本的好看 -->
<TabPane tab="样式" key="style" force-render> <TabPane tab="样式" key="style" force-render>
<p class="text-lg font-bold">组件样式</p> <p class="text-lg font-bold">组件样式</p>
<div class="flex flex-col gap-2 rounded-md p-4 shadow-lg"> <div class="flex flex-col gap-2 rounded-md p-4 shadow-lg">

View File

@@ -109,8 +109,9 @@ const handleDeleteComponent = () => {
class="component-toolbar" class="component-toolbar"
v-if="showToolbar && component.name && active" v-if="showToolbar && component.name && active"
> >
<!-- TODO @xingyu按钮少的时候会存在遮住的情况 --> <!-- TODO @xingyu装修按钮少的时候会存在遮住的情况 -->
<!-- TODO @xingyu貌似中间的选中框框没全部框柱上面多了点下面少了点 --> <!-- TODO @xingyu装修貌似中间的选中框框没全部框柱上面多了点下面少了点 -->
<!-- TODO @xingyu装修从左侧的组件拖拽到中间时没有这个组件的小卡片预览ele 版本是有的 -->
<VerticalButtonGroup size="small"> <VerticalButtonGroup size="small">
<Button <Button
:disabled="!canMoveUp" :disabled="!canMoveUp"

View File

@@ -100,5 +100,5 @@ function handleCloneComponent(component: DiyComponent<any>) {
</Collapse.Panel> </Collapse.Panel>
</Collapse> </Collapse>
</div> </div>
<!-- TODO @xingyuele 里面有一些 style看看是不是都迁移完了特别是 drag-area 是全局样式 --> <!-- TODO @xingyu装修ele 里面有一些 style看看是不是都迁移完了特别是 drag-area 是全局样式 -->
</template> </template>

View File

@@ -38,7 +38,7 @@ const props = defineProps({
const emits = defineEmits(['reset', 'save', 'update:modelValue']); // 工具栏操作 const emits = defineEmits(['reset', 'save', 'update:modelValue']); // 工具栏操作
// TODO @xingyu要不要加这个 // TODO @xingyu要不要加这个ele 里是有这个的。
// const qrcode = useQRCode(props.previewUrl, { // const qrcode = useQRCode(props.previewUrl, {
// errorCorrectionLevel: 'H', // errorCorrectionLevel: 'H',
// margin: 4, // margin: 4,
@@ -175,7 +175,7 @@ function handleComponentSelected(
index: number = -1, index: number = -1,
) { ) {
// 使用深拷贝避免响应式追踪循环警告 // 使用深拷贝避免响应式追踪循环警告
// TODO @xingyu这个是必须的么ele 没有哈。 // TODO @xingyu【装修】这个是必须的么ele 没有哈。
selectedComponent.value = cloneDeep(component); selectedComponent.value = cloneDeep(component);
selectedComponentIndex.value = index; selectedComponentIndex.value = index;
} }
@@ -508,5 +508,5 @@ onMounted(() => {
</div> </div>
</PreviewModal> </PreviewModal>
</Page> </Page>
<!-- TODO @xingyu这里改造完后类似 web-ele/src/views/mall/promotion/components/diy-editor/index.vue 里的全局样式递推到子组件里的就没没了类似 property-group --> <!-- TODO @xingyu装修这里改造完后类似 web-ele/src/views/mall/promotion/components/diy-editor/index.vue 里的全局样式递推到子组件里的就没没了类似 property-group -->
</template> </template>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { Space } from 'ant-design-vue'; import { Space } from 'ant-design-vue';
// TODO @芋艿、@xingyu貌似上下移动的按钮被遮住了 // TODO @xingyu【装修】貌似上下移动的按钮,被遮住了!
/** /**
* 垂直按钮组 * 垂直按钮组
* Ant Design Vue 的按钮组,通过 Space 实现垂直布局 * Ant Design Vue 的按钮组,通过 Space 实现垂直布局

View File

@@ -20,6 +20,7 @@ import {
} from '#/api/mall/promotion/diy/template'; } from '#/api/mall/promotion/diy/template';
import { DiyEditor, PAGE_LIBS } from '#/views/mall/promotion/components'; import { DiyEditor, PAGE_LIBS } from '#/views/mall/promotion/components';
// TODO @xingyu【装修】左上角的“基础设施”、“首页”、“我的”切换时中间的编辑器内容没有正确切换。可对比 ele 版本的效果!
/** 装修模板表单 */ /** 装修模板表单 */
defineOptions({ name: 'DiyTemplateDecorate' }); defineOptions({ name: 'DiyTemplateDecorate' });

View File

@@ -15,6 +15,7 @@ const props = defineProps<{
takeType?: number; // 领取方式 takeType?: number; // 领取方式
}>(); }>();
// TODO @puhui999这个也要调整和 antd 保持统一。
const emit = defineEmits(['success']); const emit = defineEmits(['success']);
const [Grid, gridApi] = useVbenVxeGrid({ const [Grid, gridApi] = useVbenVxeGrid({