diff --git a/apps/web-antd/src/views/ai/model/chatRole/data.ts b/apps/web-antd/src/views/ai/model/chatRole/data.ts index a20434ba6..d579df3d0 100644 --- a/apps/web-antd/src/views/ai/model/chatRole/data.ts +++ b/apps/web-antd/src/views/ai/model/chatRole/data.ts @@ -40,9 +40,6 @@ export function useFormSchema(): VbenFormSchema[] { component: 'ImageUpload', fieldName: 'avatar', label: '角色头像', - componentProps: { - maxSize: 1, - }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/mall/product/brand/data.ts b/apps/web-antd/src/views/mall/product/brand/data.ts index e2202ee80..654809ac9 100644 --- a/apps/web-antd/src/views/mall/product/brand/data.ts +++ b/apps/web-antd/src/views/mall/product/brand/data.ts @@ -30,9 +30,6 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'picUrl', label: '品牌图片', component: 'ImageUpload', - componentProps: { - maxSize: 1, - }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/mall/product/category/data.ts b/apps/web-antd/src/views/mall/product/category/data.ts index b2f016e9f..5efa27c02 100644 --- a/apps/web-antd/src/views/mall/product/category/data.ts +++ b/apps/web-antd/src/views/mall/product/category/data.ts @@ -57,9 +57,6 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'picUrl', label: '移动端分类图', component: 'ImageUpload', - componentProps: { - maxSize: 1, - }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/mall/product/comment/data.ts b/apps/web-antd/src/views/mall/product/comment/data.ts index f422155d6..fb4d87cfd 100644 --- a/apps/web-antd/src/views/mall/product/comment/data.ts +++ b/apps/web-antd/src/views/mall/product/comment/data.ts @@ -31,9 +31,6 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'userAvatar', label: '用户头像', component: 'ImageUpload', - componentProps: { - maxSize: 1, - }, rules: 'required', }, { @@ -65,7 +62,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '评论图片', component: 'ImageUpload', componentProps: { - maxSize: 9, + maxNumber: 9, }, rules: 'required', }, diff --git a/apps/web-antd/src/views/mall/promotion/article/category/data.ts b/apps/web-antd/src/views/mall/promotion/article/category/data.ts index 10c493445..096569261 100644 --- a/apps/web-antd/src/views/mall/promotion/article/category/data.ts +++ b/apps/web-antd/src/views/mall/promotion/article/category/data.ts @@ -29,9 +29,6 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'picUrl', label: '图标地址', component: 'ImageUpload', - componentProps: { - maxSize: 1, - }, }, { fieldName: 'sort', diff --git a/apps/web-antd/src/views/mall/promotion/article/data.ts b/apps/web-antd/src/views/mall/promotion/article/data.ts index e4476977e..5b03258fb 100644 --- a/apps/web-antd/src/views/mall/promotion/article/data.ts +++ b/apps/web-antd/src/views/mall/promotion/article/data.ts @@ -52,9 +52,6 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'picUrl', label: '文章封面', component: 'ImageUpload', - componentProps: { - maxSize: 1, - }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/mall/promotion/banner/data.ts b/apps/web-antd/src/views/mall/promotion/banner/data.ts index fd3abd144..a94930b79 100644 --- a/apps/web-antd/src/views/mall/promotion/banner/data.ts +++ b/apps/web-antd/src/views/mall/promotion/banner/data.ts @@ -29,9 +29,6 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'picUrl', label: '图片地址', component: 'ImageUpload', - componentProps: { - maxSize: 1, - }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/mall/promotion/bargain/activity/data.ts b/apps/web-antd/src/views/mall/promotion/bargain/activity/data.ts index 2637d7719..80285f23c 100644 --- a/apps/web-antd/src/views/mall/promotion/bargain/activity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/bargain/activity/data.ts @@ -9,8 +9,8 @@ import { DICT_TYPE, getDictOptions } from '#/utils'; export function useFormSchema(): VbenFormSchema[] { return [ { - component: 'Input', fieldName: 'id', + component: 'Input', dependencies: { triggerFields: [''], show: () => false, diff --git a/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts b/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts index 19a3b7525..8ac9a0e6a 100644 --- a/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/combination/activity/data.ts @@ -8,6 +8,14 @@ import { DICT_TYPE, getDictOptions } from '#/utils'; /** 表单配置 */ export function useFormSchema(): VbenFormSchema[] { return [ + { + fieldName: 'id', + component: 'Input', + dependencies: { + triggerFields: [''], + show: () => false, + }, + }, { fieldName: 'name', label: '活动名称', diff --git a/apps/web-antd/src/views/mall/promotion/discountActivity/data.ts b/apps/web-antd/src/views/mall/promotion/discountActivity/data.ts index b7d7d8c1e..e0319d86f 100644 --- a/apps/web-antd/src/views/mall/promotion/discountActivity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/discountActivity/data.ts @@ -8,6 +8,14 @@ import { DICT_TYPE, getDictOptions } from '#/utils'; /** 表单配置 */ export function useFormSchema(): VbenFormSchema[] { return [ + { + fieldName: 'id', + component: 'Input', + dependencies: { + triggerFields: [''], + show: () => false, + }, + }, { fieldName: 'name', label: '活动名称', diff --git a/apps/web-antd/src/views/mall/trade/config/data.ts b/apps/web-antd/src/views/mall/trade/config/data.ts index a66e44959..9c35219fc 100644 --- a/apps/web-antd/src/views/mall/trade/config/data.ts +++ b/apps/web-antd/src/views/mall/trade/config/data.ts @@ -137,9 +137,6 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'brokeragePosterUrls', label: '分销海报图', component: 'ImageUpload', - componentProps: { - maxSize: 1, - }, dependencies: { triggerFields: ['type'], show: (values) => values.type === 'brokerage', diff --git a/apps/web-antd/src/views/mall/trade/delivery/express/data.ts b/apps/web-antd/src/views/mall/trade/delivery/express/data.ts index 514b776e6..908cf3e1e 100644 --- a/apps/web-antd/src/views/mall/trade/delivery/express/data.ts +++ b/apps/web-antd/src/views/mall/trade/delivery/express/data.ts @@ -31,9 +31,6 @@ export function useFormSchema(): VbenFormSchema[] { component: 'ImageUpload', fieldName: 'logo', label: '公司 logo', - componentProps: { - maxSize: 1, - }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/mall/trade/delivery/pickUpStore/data.ts b/apps/web-antd/src/views/mall/trade/delivery/pickUpStore/data.ts index 65d1f0fb9..4442201b8 100644 --- a/apps/web-antd/src/views/mall/trade/delivery/pickUpStore/data.ts +++ b/apps/web-antd/src/views/mall/trade/delivery/pickUpStore/data.ts @@ -26,9 +26,6 @@ export function useFormSchema(): VbenFormSchema[] { component: 'ImageUpload', fieldName: 'logo', label: '门店logo', - componentProps: { - maxSize: 1, - }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/member/level/data.ts b/apps/web-antd/src/views/member/level/data.ts index f9597b326..d60a180dc 100644 --- a/apps/web-antd/src/views/member/level/data.ts +++ b/apps/web-antd/src/views/member/level/data.ts @@ -52,17 +52,11 @@ export function useFormSchema(): VbenFormSchema[] { component: 'ImageUpload', fieldName: 'icon', label: '等级图标', - componentProps: { - maxSize: 1, - }, }, { component: 'ImageUpload', fieldName: 'backgroundUrl', label: '等级背景图', - componentProps: { - maxSize: 1, - }, }, { fieldName: 'status', diff --git a/apps/web-antd/src/views/member/user/data.ts b/apps/web-antd/src/views/member/user/data.ts index f934f1a4b..ee18ddda7 100644 --- a/apps/web-antd/src/views/member/user/data.ts +++ b/apps/web-antd/src/views/member/user/data.ts @@ -56,9 +56,6 @@ export function useFormSchema(): VbenFormSchema[] { component: 'ImageUpload', fieldName: 'avatar', label: '头像', - componentProps: { - maxSize: 1, - }, }, { component: 'Input', diff --git a/apps/web-antd/src/views/system/oauth2/client/data.ts b/apps/web-antd/src/views/system/oauth2/client/data.ts index c510f8fde..1994bc0e0 100644 --- a/apps/web-antd/src/views/system/oauth2/client/data.ts +++ b/apps/web-antd/src/views/system/oauth2/client/data.ts @@ -46,9 +46,6 @@ export function useFormSchema(): VbenFormSchema[] { fieldName: 'logo', label: '应用图标', component: 'ImageUpload', - componentProps: { - limit: 1, - }, rules: 'required', }, {