fix: ImageUpload config

This commit is contained in:
xingyu4j
2025-06-20 14:50:47 +08:00
parent e2561593d9
commit 6df938431e
16 changed files with 18 additions and 44 deletions

View File

@@ -29,9 +29,6 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'picUrl',
label: '图标地址',
component: 'ImageUpload',
componentProps: {
maxSize: 1,
},
},
{
fieldName: 'sort',

View File

@@ -52,9 +52,6 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'picUrl',
label: '文章封面',
component: 'ImageUpload',
componentProps: {
maxSize: 1,
},
rules: 'required',
},
{

View File

@@ -29,9 +29,6 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'picUrl',
label: '图片地址',
component: 'ImageUpload',
componentProps: {
maxSize: 1,
},
rules: 'required',
},
{

View File

@@ -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,

View File

@@ -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: '活动名称',

View File

@@ -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: '活动名称',