review:【antd/ele】【mall】代码迁移的 review

This commit is contained in:
YunaiV
2025-11-27 17:58:54 +08:00
parent 271923999c
commit 6a8f60957d
3 changed files with 1 additions and 5 deletions

View File

@@ -224,9 +224,8 @@ export function useFormSchema(): VbenFormSchema[] {
formItemClass: 'items-start',
rules: 'required',
},
// 隐藏字段:用于自动同步 productScopeValues
{
fieldName: 'productScopeValues',
fieldName: 'productScopeValues', // 隐藏字段:用于自动同步 productScopeValues
component: 'Input',
dependencies: {
triggerFields: ['productScope', 'productSpuIds', 'productCategoryIds'],

View File

@@ -138,12 +138,10 @@ const [Modal, modalApi] = useVbenModal({
<template #rules>
<RewardRule v-model="formData" />
</template>
<!-- 自定义插槽商品选择 -->
<template #productSpuIds>
<SpuShowcase v-model="formData.productSpuIds" />
</template>
<!-- 自定义插槽分类选择 -->
<template #productCategoryIds>
<ProductCategorySelect v-model="formData.productCategoryIds" multiple />

View File

@@ -100,7 +100,6 @@ function handleDelete(ruleIndex: number) {
<span>{{ isPriceCondition ? '元' : '件' }}</span>
</div>
</FormItem>
<!-- 优惠内容 -->
<FormItem
label="优惠内容"