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