feat: accept attribute for the upload component

This commit is contained in:
chenos 2022-04-09 15:24:29 +08:00
parent 7e4b60c410
commit e8a7e321f0
2 changed files with 8 additions and 1 deletions

View File

@ -47,6 +47,13 @@ export const attachment: IField = {
}, },
properties: { properties: {
...defaultProps, ...defaultProps,
'uiSchema.x-component-props.accept': {
type: 'string',
title: '{{t("Accept")}}',
'x-component': 'Input',
'x-decorator': 'FormItem',
description: 'Example: .doc,.docx',
},
'uiSchema.x-component-props.multiple': { 'uiSchema.x-component-props.multiple': {
type: 'boolean', type: 'boolean',
'x-content': "{{t('Allow uploading multiple files')}}", 'x-content': "{{t('Allow uploading multiple files')}}",

View File

@ -206,7 +206,7 @@ export const recordPickerSelector: ISchema = {
title: '{{ t("Select record") }}', title: '{{ t("Select record") }}',
'x-component': 'RecordPicker.Selector', 'x-component': 'RecordPicker.Selector',
'x-component-props': { 'x-component-props': {
className: 'nb-record-picker-selector' className: 'nb-record-picker-selector',
}, },
properties: { properties: {
grid: { grid: {