mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-20 13:01:52 +00:00
enable md-file inside input container
This commit is contained in:
parent
16f589a570
commit
a07242675c
2 changed files with 4 additions and 2 deletions
|
|
@ -30,7 +30,9 @@
|
|||
<div slot="example">
|
||||
<example-box card-title="Default">
|
||||
<div slot="demo">
|
||||
<md-file></md-file>
|
||||
<md-input-container>
|
||||
<md-file></md-file>
|
||||
</md-input-container>
|
||||
</div>
|
||||
|
||||
<div slot="code">
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.input = this.$el.querySelectorAll('input, textarea, select')[0];
|
||||
this.input = this.$el.querySelectorAll('input, textarea, select, .md-file')[0];
|
||||
|
||||
if (!this.input) {
|
||||
this.$destroy();
|
||||
|
|
|
|||
Loading…
Reference in a new issue