From 2b8eb49f7115d04f14a09c860f02b309969df8e5 Mon Sep 17 00:00:00 2001 From: owen Date: Thu, 11 Jan 2024 12:25:34 +0800 Subject: [PATCH] =?UTF-8?q?Review=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ComponentContainerProperty.vue | 4 ++-- .../components/mobile/CouponCard/component.tsx | 14 ++++---------- .../components/mobile/CouponCard/config.ts | 1 - .../components/mobile/MagicCube/config.ts | 1 - .../components/mobile/ProductCard/config.ts | 1 - .../components/mobile/ProductList/config.ts | 1 - .../components/mobile/PromotionArticle/index.vue | 5 ++--- .../mobile/PromotionCombination/config.ts | 2 -- .../components/mobile/SearchBar/config.ts | 1 - .../components/mobile/VideoPlayer/config.ts | 3 +-- .../components/mobile/VideoPlayer/property.vue | 4 ++-- src/components/DiyEditor/util.ts | 7 +++---- src/router/modules/remaining.ts | 6 ++---- 13 files changed, 16 insertions(+), 34 deletions(-) diff --git a/src/components/DiyEditor/components/ComponentContainerProperty.vue b/src/components/DiyEditor/components/ComponentContainerProperty.vue index 4f48e204..9d0750da 100644 --- a/src/components/DiyEditor/components/ComponentContainerProperty.vue +++ b/src/components/DiyEditor/components/ComponentContainerProperty.vue @@ -23,7 +23,7 @@ - + - + diff --git a/src/components/DiyEditor/components/mobile/CouponCard/component.tsx b/src/components/DiyEditor/components/mobile/CouponCard/component.tsx index 1817428d..689690b0 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/component.tsx +++ b/src/components/DiyEditor/components/mobile/CouponCard/component.tsx @@ -2,15 +2,13 @@ import * as CouponTemplateApi from '@/api/mall/promotion/coupon/couponTemplate' import { CouponTemplateValidityTypeEnum, PromotionDiscountTypeEnum } from '@/utils/constants' import { floatToFixed2 } from '@/utils' import { formatDate } from '@/utils/formatTime' +import { object } from 'vue-types' // 优惠值 -// TODO @疯狂:idea 有告警 export const CouponDiscount = defineComponent({ name: 'CouponDiscount', props: { - coupon: { - type: CouponTemplateApi.CouponTemplateVO - } + coupon: object() }, setup(props) { const coupon = props.coupon as CouponTemplateApi.CouponTemplateVO @@ -35,9 +33,7 @@ export const CouponDiscount = defineComponent({ export const CouponDiscountDesc = defineComponent({ name: 'CouponDiscountDesc', props: { - coupon: { - type: CouponTemplateApi.CouponTemplateVO - } + coupon: object() }, setup(props) { const coupon = props.coupon as CouponTemplateApi.CouponTemplateVO @@ -61,9 +57,7 @@ export const CouponDiscountDesc = defineComponent({ export const CouponValidTerm = defineComponent({ name: 'CouponValidTerm', props: { - coupon: { - type: CouponTemplateApi.CouponTemplateVO - } + coupon: object() }, setup(props) { const coupon = props.coupon as CouponTemplateApi.CouponTemplateVO diff --git a/src/components/DiyEditor/components/mobile/CouponCard/config.ts b/src/components/DiyEditor/components/mobile/CouponCard/config.ts index 40c6bed3..304533d1 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/config.ts +++ b/src/components/DiyEditor/components/mobile/CouponCard/config.ts @@ -24,7 +24,6 @@ export interface CouponCardProperty { } // 定义组件 -// TODO @疯狂:idea 有告警 export const component = { id: 'CouponCard', name: '优惠券', diff --git a/src/components/DiyEditor/components/mobile/MagicCube/config.ts b/src/components/DiyEditor/components/mobile/MagicCube/config.ts index d2edfddf..5e10ab55 100644 --- a/src/components/DiyEditor/components/mobile/MagicCube/config.ts +++ b/src/components/DiyEditor/components/mobile/MagicCube/config.ts @@ -31,7 +31,6 @@ export interface MagicCubeItemProperty { } // 定义组件 -// TODO @疯狂:有 idea 爆红告警 export const component = { id: 'MagicCube', name: '广告魔方', diff --git a/src/components/DiyEditor/components/mobile/ProductCard/config.ts b/src/components/DiyEditor/components/mobile/ProductCard/config.ts index fd4b21fc..735b6ba0 100644 --- a/src/components/DiyEditor/components/mobile/ProductCard/config.ts +++ b/src/components/DiyEditor/components/mobile/ProductCard/config.ts @@ -59,7 +59,6 @@ export interface ProductCardFieldProperty { } // 定义组件 -// TODO @疯狂:idea 有告警 export const component = { id: 'ProductCard', name: '商品卡片', diff --git a/src/components/DiyEditor/components/mobile/ProductList/config.ts b/src/components/DiyEditor/components/mobile/ProductList/config.ts index 6522a314..1f168323 100644 --- a/src/components/DiyEditor/components/mobile/ProductList/config.ts +++ b/src/components/DiyEditor/components/mobile/ProductList/config.ts @@ -38,7 +38,6 @@ export interface ProductListFieldProperty { } // 定义组件 -// TODO @疯狂:idea 有告警 export const component = { id: 'ProductList', name: '商品栏', diff --git a/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue b/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue index 3bca5da9..e003b081 100644 --- a/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue +++ b/src/components/DiyEditor/components/mobile/PromotionArticle/index.vue @@ -1,17 +1,16 @@