feat: accept attribute for the upload component
This commit is contained in:
parent
7e4b60c410
commit
e8a7e321f0
@ -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')}}",
|
||||||
|
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user