diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-container.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-container.vue index ebdf462b9..5c4d30ece 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-container.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-container.vue @@ -5,7 +5,7 @@ import { computed } from 'vue'; import { IconifyIcon } from '@vben/icons'; -import { Button, Tooltip } from 'ant-design-vue'; +import { Button } from 'ant-design-vue'; import { VerticalButtonGroup } from '#/views/mall/promotion/components'; @@ -96,7 +96,7 @@ const handleDeleteComponent = () => {
-
+
{{ component.name }} @@ -107,32 +107,52 @@ const handleDeleteComponent = () => { v-if="showToolbar && component.name && active" > - - - - - - - - - - - - + + + +
@@ -149,7 +169,7 @@ $toolbar-position: -55px; .component-wrap { /* 鼠标放到组件上时 */ &:hover { - border: $hover-border-width dashed var(--ant-color-primary); + border: $hover-border-width dashed var(--primary); box-shadow: 0 0 5px 0 rgb(24 144 255 / 30%); .component-name { @@ -170,9 +190,9 @@ $toolbar-position: -55px; height: 25px; font-size: 12px; line-height: 25px; - color: #6a6a6a; + color: hsl(var(--text-color)); text-align: center; - background: #fff; + background: hsl(var(--background)); box-shadow: 0 0 4px #00000014, 0 2px 6px #0000000f, @@ -187,7 +207,7 @@ $toolbar-position: -55px; height: 0; content: ' '; border: 5px solid transparent; - border-left-color: #fff; + border-left-color: hsl(var(--background)); } } @@ -207,7 +227,7 @@ $toolbar-position: -55px; height: 0; content: ' '; border: 5px solid transparent; - border-right-color: #2d8cf0; + border-right-color: hsl(var(--primary)); } } } @@ -218,7 +238,7 @@ $toolbar-position: -55px; .component-wrap { margin-bottom: $active-border-width + $active-border-width; - border: $active-border-width solid var(--ant-color-primary) !important; + border: $active-border-width solid hsl(var(--primary)) !important; box-shadow: 0 0 10px 0 rgb(24 144 255 / 30%); .component-name { @@ -227,10 +247,10 @@ $toolbar-position: -55px; /* 防止加了边框之后,位置移动 */ left: $name-position - $active-border-width !important; color: #fff; - background: var(--ant-color-primary); + background: hsl(var(--primary)); &::after { - border-left-color: var(--ant-color-primary); + border-left-color: hsl(var(--primary)); } } diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-library.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-library.vue index 2133d49d0..ed796c4f6 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-library.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/component-library.vue @@ -1,12 +1,12 @@ - - diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/Carousel/index.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/Carousel/index.vue index 74a2fcf0a..892c08641 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/Carousel/index.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/Carousel/index.vue @@ -5,6 +5,8 @@ import { ref } from 'vue'; import { IconifyIcon } from '@vben/icons'; +import { Carousel, Image } from 'ant-design-vue'; + /** 轮播图 */ defineOptions({ name: 'Carousel' }); @@ -16,36 +18,36 @@ const handleIndexChange = (index: number) => { }; - - diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/Carousel/property.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/Carousel/property.vue index fba42af2e..6d154cf4e 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/Carousel/property.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/Carousel/property.vue @@ -38,12 +38,12 @@ const formData = useVModel(props, 'modelValue', emit); - + - + @@ -90,7 +90,7 @@ const formData = useVModel(props, 'modelValue', emit); draggable="false" height="80px" width="100%" - class="min-w-[80px]" + class="min-w-20" :show-description="false" /> @@ -102,7 +102,7 @@ const formData = useVModel(props, 'modelValue', emit); :show-description="false" height="80px" width="100%" - class="min-w-[80px]" + class="min-w-20" /> @@ -111,7 +111,7 @@ const formData = useVModel(props, 'modelValue', emit); :file-type="['mp4']" :limit="1" :file-size="100" - class="min-w-[80px]" + class="min-w-20" /> @@ -124,5 +124,3 @@ const formData = useVModel(props, 'modelValue', emit); - - diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/index.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/index.vue index 13e946cf3..7be978088 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/index.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/coupon-card/index.vue @@ -155,4 +155,3 @@ onMounted(() => {
- diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/floating-action-button/index.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/floating-action-button/index.vue index 9ccad9d7f..beff6683c 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/floating-action-button/index.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/floating-action-button/index.vue @@ -25,7 +25,7 @@ const handleActive = (index: number) => { - - diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/menu-grid/property.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/menu-grid/property.vue index b752dfe8b..4365d8ef8 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/menu-grid/property.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/menu-grid/property.vue @@ -12,7 +12,11 @@ import { } from 'ant-design-vue'; import UploadImg from '#/components/upload/image-upload.vue'; -import { AppLinkInput, Draggable } from '#/views/mall/promotion/components'; +import { + AppLinkInput, + ColorInput, + Draggable, +} from '#/views/mall/promotion/components'; import ComponentContainerProperty from '../../component-container-property.vue'; import { EMPTY_MENU_GRID_ITEM_PROPERTY } from './config'; @@ -53,13 +57,13 @@ const formData = useVModel(props, 'modelValue', emit); - - @@ -72,7 +76,7 @@ const formData = useVModel(props, 'modelValue', emit); - - diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/menu-swiper/index.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/menu-swiper/index.vue index e92f0a5aa..0dcd9d468 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/menu-swiper/index.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/components/mobile/menu-swiper/index.vue @@ -3,6 +3,8 @@ import type { MenuSwiperItemProperty, MenuSwiperProperty } from './config'; import { ref, watch } from 'vue'; +import { Image } from 'ant-design-vue'; + /** 菜单导航 */ defineOptions({ name: 'MenuSwiper' }); const props = defineProps<{ property: MenuSwiperProperty }>(); @@ -122,14 +124,14 @@ watch( button { width: 6px; height: 6px; - background: #ff6000; + background: hsl(var(--red)); border-radius: 6px; } } .ant-carousel-dot-active button { width: 12px; - background: #ff6000; + background: hsl(var(--red)); } } diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/index.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/index.vue index a44e740f4..128aa49e8 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/index.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/index.vue @@ -3,11 +3,11 @@ import type { DiyComponent, DiyComponentLibrary, PageConfig } from './util'; import { onMounted, ref, unref, watch } from 'vue'; -import { useVbenModal } from '@vben/common-ui'; +import { Page, useVbenModal } from '@vben/common-ui'; import { IconifyIcon } from '@vben/icons'; import { cloneDeep, isEmpty, isString } from '@vben/utils'; -import { Button, Card, QRCode, Tag, Tooltip } from 'ant-design-vue'; +import { Button, Card, Col, QRCode, Row, Tag, Tooltip } from 'ant-design-vue'; import draggable from 'vuedraggable'; import statusBarImg from '#/assets/imgs/diy/statusBar.png'; @@ -287,54 +287,62 @@ onMounted(() => { }); - diff --git a/apps/web-antd/src/views/mall/promotion/diy/template/decorate/index.vue b/apps/web-antd/src/views/mall/promotion/diy/template/decorate/index.vue index 261d1f5e3..8cabab609 100644 --- a/apps/web-antd/src/views/mall/promotion/diy/template/decorate/index.vue +++ b/apps/web-antd/src/views/mall/promotion/diy/template/decorate/index.vue @@ -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 () => { diff --git a/apps/web-antd/src/views/mall/promotion/point/activity/modules/form.vue b/apps/web-antd/src/views/mall/promotion/point/activity/modules/form.vue index 94ab444c2..b5d5c66f5 100644 --- a/apps/web-antd/src/views/mall/promotion/point/activity/modules/form.vue +++ b/apps/web-antd/src/views/mall/promotion/point/activity/modules/form.vue @@ -1,7 +1,8 @@