fix: support disabled on file
This commit is contained in:
parent
f4684033f1
commit
7f1a4d54a8
|
|
@ -39,7 +39,7 @@ async function parseFileAsString(file: File | undefined): Promise<string> {
|
|||
v-if="!inputFile"
|
||||
type="file"
|
||||
v-bind="{ ...config?.inputProps }"
|
||||
:disabled="disabled"
|
||||
:disabled="config?.inputProps?.disabled ?? disabled"
|
||||
@change="async (ev: InputEvent) => {
|
||||
const file = (ev.target as HTMLInputElement).files?.[0]
|
||||
inputFile = file
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ async function parseFileAsString(file: File | undefined): Promise<string> {
|
|||
v-if="!inputFile"
|
||||
type="file"
|
||||
v-bind="{ ...config?.inputProps }"
|
||||
:disabled="disabled"
|
||||
:disabled="config?.inputProps?.disabled ?? disabled"
|
||||
@change="async (ev: InputEvent) => {
|
||||
const file = (ev.target as HTMLInputElement).files?.[0]
|
||||
inputFile = file
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user