review:【antd/ele】【mall】代码迁移的 review
This commit is contained in:
@@ -224,9 +224,8 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
formItemClass: 'items-start',
|
formItemClass: 'items-start',
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
// 隐藏字段:用于自动同步 productScopeValues
|
|
||||||
{
|
{
|
||||||
fieldName: 'productScopeValues',
|
fieldName: 'productScopeValues', // 隐藏字段:用于自动同步 productScopeValues
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dependencies: {
|
dependencies: {
|
||||||
triggerFields: ['productScope', 'productSpuIds', 'productCategoryIds'],
|
triggerFields: ['productScope', 'productSpuIds', 'productCategoryIds'],
|
||||||
|
|||||||
@@ -138,12 +138,10 @@ const [Modal, modalApi] = useVbenModal({
|
|||||||
<template #rules>
|
<template #rules>
|
||||||
<RewardRule v-model="formData" />
|
<RewardRule v-model="formData" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- 自定义插槽:商品选择 -->
|
<!-- 自定义插槽:商品选择 -->
|
||||||
<template #productSpuIds>
|
<template #productSpuIds>
|
||||||
<SpuShowcase v-model="formData.productSpuIds" />
|
<SpuShowcase v-model="formData.productSpuIds" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- 自定义插槽:分类选择 -->
|
<!-- 自定义插槽:分类选择 -->
|
||||||
<template #productCategoryIds>
|
<template #productCategoryIds>
|
||||||
<ProductCategorySelect v-model="formData.productCategoryIds" multiple />
|
<ProductCategorySelect v-model="formData.productCategoryIds" multiple />
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ function handleDelete(ruleIndex: number) {
|
|||||||
<span>{{ isPriceCondition ? '元' : '件' }}</span>
|
<span>{{ isPriceCondition ? '元' : '件' }}</span>
|
||||||
</div>
|
</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
||||||
<!-- 优惠内容 -->
|
<!-- 优惠内容 -->
|
||||||
<FormItem
|
<FormItem
|
||||||
label="优惠内容"
|
label="优惠内容"
|
||||||
|
|||||||
Reference in New Issue
Block a user