feat(layout): 移除头部工具栏中多余的图标和功能- 删除 header-tools.vue 中未使用的 MoreOutlined 图标- 移除二维码展示相关功能代码- 注释掉主题设置抽屉的打开方法feat(cms): 更新导航编辑表单字段标签- 将原 css样式 字段标签更改为 code-保留 style 字段并更新其占位符文本

feat(demo): 移除海报演示页面组件

- 删除 PosterDemo 组件及其相关模板和逻辑
- 移除分销海报设置功能的演示入口
This commit is contained in:
2025-09-26 10:11:02 +08:00
parent ad2657a40a
commit 670f0f075f
3 changed files with 13 additions and 55 deletions

View File

@@ -138,7 +138,6 @@ import {
DownOutlined,
ExclamationCircleOutlined,
FullscreenOutlined,
MoreOutlined,
FullscreenExitOutlined
} from '@ant-design/icons-vue';
import {storeToRefs} from 'pinia';
@@ -216,18 +215,14 @@ const onUserDropClick = ({key}) => {
}
};
const onQrCode = () => {
showQrcode.value = true;
}
const hideShare = () => {
showQrcode.value = false;
}
/* 打开主题设置抽屉 */
const openSetting = () => {
settingVisible.value = true;
};
// const openSetting = () => {
// settingVisible.value = true;
// };
/* 切换全屏 */
const toggleFullscreen = () => {

View File

@@ -85,10 +85,18 @@
@pressEnter="save"
/>
</a-form-item>
<a-form-item label="css样式" name="style" v-if="isUpdate">
<a-form-item label="code" name="code" v-if="isUpdate">
<a-input
allow-clear
placeholder="CSS"
placeholder="code"
v-model:value="form.code"
@pressEnter="save"
/>
</a-form-item>
<a-form-item label="style" name="style" v-if="isUpdate">
<a-input
allow-clear
placeholder="style"
v-model:value="form.style"
@pressEnter="save"
/>

View File

@@ -1,45 +0,0 @@
<template>
<div class="demo-container">
<a-card title="分销海报功能演示" :bordered="false">
<a-alert
message="功能演示"
description="这是分销海报设置功能的演示页面,展示了完整的海报编辑功能。"
type="info"
show-icon
style="margin-bottom: 24px;"
/>
<a-button type="primary" @click="openPosterDemo">
打开海报设置演示
</a-button>
</a-card>
<!-- 海报设置组件 -->
<ShopDealerPoster v-if="showPoster" />
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import ShopDealerPoster from '@/views/shop/shopDealerPoster/index.vue';
const showPoster = ref(false);
const openPosterDemo = () => {
showPoster.value = true;
};
</script>
<script lang="ts">
export default {
name: 'PosterDemo'
};
</script>
<style lang="less" scoped>
.demo-container {
padding: 24px;
max-width: 1200px;
margin: 0 auto;
}
</style>