Merge branch 'master' of github.com:payloadcms/payload
This commit is contained in:
@@ -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 & {
|
||||
|
||||
Reference in New Issue
Block a user