OrionUpload
<o-upload>
displays a file upload component.
Usage
UploadFile UploadPlayground
Props
Name
autofocus
boolean = false
clearable
boolean = false
clearToNull
boolean = false
disabled
boolean = false
donetyping
number = 0
fileMaxSize
number = 4
fileTypes
string[] = () => ['image/jpeg', 'image/png', 'image/gif', 'application/pdf']
forceLabelFloating
boolean = false
inheritValidationState
boolean = undefined
label
string = undefined
modelValue
T = undefined
multiple
boolean = false
prefixFontIcon
string = undefined
prefixIcon
Orion.Icon = undefined
readonly
boolean = false
required
boolean = false
selectOnFocus
boolean = false
showPreview
boolean = true
size
Orion.Size = 'md'
suffixFontIcon
string = undefined
suffixIcon
Orion.Icon = undefined
type
string | Orion.DatepickerType = 'text'
validation
string | ((val: any) => boolean) | Orion.Validator.Rule | Orion.Validation.Rule | boolean = undefined
validationErrorMessage
string = undefined
Events
Name
Payload type
focus
FocusEvent
blur
FocusEvent
input
VModelType
change
VModelType
update:modelValue
VModelType
clear
No payload
Slots
Name
Bindings
default
No bindings
PublicInstance
Name
Type
hasBeenFocus
() => boolean
isFocus
() => boolean
focus
() => void
blur
Lodash.debounce
clear
() => void
setHasBeenFocus
(value: boolean) => void
isValid
() => boolean
_input
() => HTMLInputElement | undefined