Skip to content

Commit c687bb1

Browse files
committed
add prop disabled lian-yue#245
1 parent 48a3a87 commit c687bb1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/FileUpload.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export default {
7272
capture: {
7373
},
7474
75+
disabled: {
76+
},
77+
7578
multiple: {
7679
type: Boolean,
7780
},
@@ -270,6 +273,7 @@ export default {
270273
this.features.html5 ? 'file-uploads-html5' : 'file-uploads-html4',
271274
this.features.directory && this.directory ? 'file-uploads-directory' : undefined,
272275
this.features.drop && this.drop ? 'file-uploads-drop' : undefined,
276+
this.disabled ? 'file-uploads-disabled' : undefined,
273277
]
274278
}
275279
},

src/InputFile.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:id="$parent.inputId || $parent.name"
66
:accept="$parent.accept"
77
:capture="$parent.capture"
8+
:disabled="$parent.disabled"
89
@change="change"
910
:webkitdirectory="$parent.directory && $parent.features.directory"
1011
:directory="$parent.directory && $parent.features.directory"

0 commit comments

Comments
 (0)