fix: ImageUpload config

pull/152/head
xingyu4j 2025-06-20 14:50:47 +08:00
parent e2561593d9
commit 6df938431e
16 changed files with 18 additions and 44 deletions

View File

@ -40,9 +40,6 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'ImageUpload',
fieldName: 'avatar',
label: '角色头像',
componentProps: {
maxSize: 1,
},
rules: 'required',
},
{

View File

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

View File

@ -57,9 +57,6 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'picUrl',
label: '移动端分类图',
component: 'ImageUpload',
componentProps: {
maxSize: 1,
},
rules: 'required',
},
{

View File

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

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

View File

@ -137,9 +137,6 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'brokeragePosterUrls',
label: '分销海报图',
component: 'ImageUpload',
componentProps: {
maxSize: 1,
},
dependencies: {
triggerFields: ['type'],
show: (values) => values.type === 'brokerage',

View File

@ -31,9 +31,6 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'ImageUpload',
fieldName: 'logo',
label: '公司 logo',
componentProps: {
maxSize: 1,
},
rules: 'required',
},
{

View File

@ -26,9 +26,6 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'ImageUpload',
fieldName: 'logo',
label: '门店logo',
componentProps: {
maxSize: 1,
},
rules: 'required',
},
{

View File

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

View File

@ -56,9 +56,6 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'ImageUpload',
fieldName: 'avatar',
label: '头像',
componentProps: {
maxSize: 1,
},
},
{
component: 'Input',

View File

@ -46,9 +46,6 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'logo',
label: '应用图标',
component: 'ImageUpload',
componentProps: {
limit: 1,
},
rules: 'required',
},
{