mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
form content
This commit is contained in:
@ -50,6 +50,11 @@ export type FormInputItem = {
|
||||
output_variable_name: string
|
||||
// only text-input and paragraph support placeholder
|
||||
placeholder?: FormInputItemPlaceholder
|
||||
options: any[]
|
||||
max_length: number
|
||||
allowed_file_extensions?: string[]
|
||||
allowed_file_types?: string[]
|
||||
allowed_file_upload_methods?: string[]
|
||||
}
|
||||
|
||||
export enum UserActionButtonType {
|
||||
@ -64,3 +69,15 @@ export type UserAction = {
|
||||
title: string
|
||||
button_style: UserActionButtonType
|
||||
}
|
||||
|
||||
export type GeneratedFormInputItem = {
|
||||
type: InputVarType
|
||||
output_variable_name: string
|
||||
// only text-input and paragraph support placeholder
|
||||
placeholder?: string
|
||||
options: any[]
|
||||
max_length: number
|
||||
allowed_file_extensions?: string[]
|
||||
allowed_file_types?: string[]
|
||||
allowed_file_upload_methods?: string[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user