Merge branch 'master' of github.com:payloadcms/payload

This commit is contained in:
James
2021-11-26 17:10:20 -05:00
31 changed files with 410 additions and 88 deletions

View File

@@ -99,6 +99,8 @@ export type TextField = FieldBase & {
placeholder?: string
autoComplete?: string
}
value?: string
onChange?: (value: string) => void
}
export type EmailField = FieldBase & {
@@ -167,9 +169,11 @@ export type UIField = {
}
export type UploadField = FieldBase & {
type: 'upload';
relationTo: string;
maxDepth?: number;
type: 'upload'
relationTo: string
maxDepth?: number
value?: string
onChange?: (value: string) => void
}
type CodeAdmin = Admin & {
@@ -184,9 +188,11 @@ export type CodeField = Omit<FieldBase, 'admin'> & {
}
export type SelectField = FieldBase & {
type: 'select';
options: Option[];
hasMany?: boolean;
type: 'select'
options: Option[]
hasMany?: boolean
value?: string
onChange?: (value: string) => void
}
export type RelationshipField = FieldBase & {