feat:【antd】【mall】seckill 优化完善

This commit is contained in:
puhui999
2025-12-20 08:40:09 +08:00
parent 348cc35aec
commit 57855eff06
2 changed files with 203 additions and 177 deletions

View File

@@ -59,8 +59,8 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
placeholder: '请选择活动开始时间',
showTime: false,
format: 'YYYY-MM-DD',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: 'w-full',
},
@@ -72,8 +72,8 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
placeholder: '请选择活动结束时间',
showTime: false,
format: 'YYYY-MM-DD',
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
class: 'w-full',
},
@@ -137,6 +137,12 @@ export function useFormSchema(): VbenFormSchema[] {
},
formItemClass: 'col-span-2',
},
{
fieldName: 'spuId',
label: '秒杀商品',
component: 'Input',
formItemClass: 'col-span-2',
},
];
}