forked from buefy/buefy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rounded property to BUpload Component (buefy#3012)
- Loading branch information
1 parent
a7eaa8b
commit 7ae8af3
Showing
5 changed files
with
71 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<section> | ||
<b-field label="Included filename"> | ||
<b-field class="file is-primary" :class="{'has-name': !!file}"> | ||
<b-upload v-model="file" class="file-label" rounded> | ||
<span class="file-cta"> | ||
<b-icon icon="upload"></b-icon> | ||
<span class="file-label">{{ file.name || "Click to upload"}}</span> | ||
</span> | ||
</b-upload> | ||
</b-field> | ||
</b-field> | ||
|
||
<b-field label="Separated filename"> | ||
<b-field class="file is-primary" :class="{'has-name': !!file2}"> | ||
<b-upload v-model="file2" class="file-label" rounded> | ||
<span class="file-cta"> | ||
<b-icon class="file-icon" icon="upload"></b-icon> | ||
<span class="file-label">Click to upload</span> | ||
</span> | ||
<span class="file-name" v-if="file2"> | ||
{{ file2.name }} | ||
</span> | ||
</b-upload> | ||
</b-field> | ||
</b-field> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
file: {}, | ||
file2 : null | ||
}; | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters