mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-04-27 01:54:48 +00:00
add file input code example
This commit is contained in:
parent
3db58c969a
commit
42b3bd9dd2
1 changed files with 39 additions and 4 deletions
|
|
@ -97,7 +97,45 @@
|
|||
|
||||
<div slot="code">
|
||||
<code-block lang="xml">
|
||||
<md-input-container>
|
||||
<label>Single</label>
|
||||
<md-file v-model="single"></md-file>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<md-file v-model="placeholder" placeholder="A nice input placeholder"></md-file>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<md-file placeholder="Disabled" disabled></md-file>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<label>Initial Value</label>
|
||||
<md-file v-model="initialValue"></md-file>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<label>Multiple</label>
|
||||
<md-file v-model="multiple" multiple></md-file>
|
||||
</md-input-container>
|
||||
|
||||
<md-input-container>
|
||||
<label>Only Images</label>
|
||||
<md-file v-model="onlyImages" accept="image/*"></md-file>
|
||||
</md-input-container>
|
||||
</code-block>
|
||||
|
||||
<code-block lang="javascript">
|
||||
export default {
|
||||
data: () => ({
|
||||
single: null,
|
||||
placeholder: null,
|
||||
initialValue: 'my-profile-picture.jpg',
|
||||
multiple: null,
|
||||
onlyImages: null
|
||||
})
|
||||
};
|
||||
</code-block>
|
||||
</div>
|
||||
</example-box>
|
||||
|
|
@ -114,9 +152,6 @@
|
|||
initialValue: 'my-profile-picture.jpg',
|
||||
multiple: null,
|
||||
onlyImages: null
|
||||
}),
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue