Skip to content

Commit d60d0ab

Browse files
committed
update template
1 parent faad345 commit d60d0ab

9 files changed

+20
-21
lines changed

dist/example.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/example.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-upload-component.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-upload-component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-upload-component.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-upload-component.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
#app {
99
position: relative;
1010
}
11-
.file-uploads-label {
11+
.file-upload {
1212
display: block;
1313
}
14-
.file-uploads-label span{
14+
.file-upload span{
1515
display: block;
1616
font-size: 18px;
1717
padding: 1em;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-upload-component",
33
"description": "Vue.js file upload component, Support for multiple file uploads, progress, html5, html4, support ie9",
4-
"version": "0.2.3",
4+
"version": "0.2.4",
55
"author": "LianYue",
66
"scripts": {
77
"dev": "webpack-dev-server --inline --hot",

src/FileUpload.vue

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
<template>
2-
<div>
3-
<label :for="id||name" :class="{'file-uploads-label': true, 'file-uploads-html5': $mode == 'html5', 'file-uploads-html4': $mode == 'html4'}">
4-
<span>{{title}}</span>
5-
<input-file></input-file>
6-
</label>
7-
</div>
2+
<label :class="{'file-uploads': true, 'file-uploads-html5': $mode == 'html5', 'file-uploads-html4': $mode == 'html4'}">
3+
<span>{{title}}</span>
4+
<input-file></input-file>
5+
</label>
86
</template>
97

108
<style>
11-
.file-uploads-label {
9+
.file-uploads {
1210
overflow: hidden;
1311
position: relative;
1412
text-align: center;
1513
}
16-
.file-uploads-label span{
14+
.file-uploads span{
1715
-webkit-user-select: none;
1816
-moz-user-select: none;
1917
-ms-user-select: none;
2018
-o-user-select: none;
2119
user-select: none;
2220
}
23-
.file-uploads-label input{
21+
.file-uploads input{
2422
z-index: 1;
2523
opacity: 0;
2624
font-size: 20em;
@@ -32,7 +30,8 @@
3230
width: 100%;
3331
height: 100%;
3432
}
35-
.file-uploads-label.file-uploads-html5 input{
33+
.file-uploads.file-uploads-html5 input{
34+
float: left;
3635
width: 1px !important;
3736
height: 1px !important;
3837
top:-1px !important;

0 commit comments

Comments
 (0)