Skip to content

Commit

Permalink
feat(generator): add description for upload accept config
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshang918 committed Jan 7, 2022
1 parent 5eeb67b commit 9f52274
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/generator/src/fields/formItem/upload.field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,15 @@ const config: Field = {
{
fieldKey: 'accept',
type: 'string',
title: '接收上传的地址',
title: '接收上传的文件类型',
ui: {
type: 'text',
placeholder: 'https://www.jd.com',
description: {
type: 'icon',
trigger: 'hover',
title:
'详细参考:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept',
},
allowClear: true,
},
},
Expand Down

0 comments on commit 9f52274

Please sign in to comment.