feat: allow clear select value (#735)

This commit is contained in:
Arick
2022-07-18 04:22:49 +08:00
committed by GitHub
parent 5512022a10
commit 3132d35e27
8 changed files with 14 additions and 1 deletions

View File

@@ -144,6 +144,7 @@ export const select = baseField.keys({
joi.array().items(joi.string().allow('')),
joi.func(),
),
isClearable: joi.boolean().default(false),
});
export const radio = baseField.keys({

View File

@@ -214,6 +214,7 @@ export type SelectField = FieldBase & {
type: 'select'
options: Option[]
hasMany?: boolean
isClearable?: boolean;
}
export type RelationshipField = FieldBase & {