Skip to content

Commit dbb312d

Browse files
committed
add new files
1 parent 7cc5f2e commit dbb312d

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "airbnb-base",
33
"plugins": [
44
"import",
5-
"vue"
5+
"vue",
6+
"html"
67
],
78
"globals": {
89
"XMLHttpRequest": 1,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ npm i vue-core-image-upload --save
1818

1919
Code Example (ES6)
2020
``` js
21-
import VueCoreImageUpload from './vue.core.image.upload.vue';
21+
import VueCoreImageUpload from 'vue.core.image.upload';
2222

2323
new Vue({
2424
el: '#app',

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ npm i vue-core-image-upload --save
1818

1919
使用ES6
2020
``` js
21-
import VueCoreImageUpload from './vue.core.image.upload.vue';
21+
import VueCoreImageUpload from 'vue.core.image.upload';
2222

2323
new Vue({
2424
el: '#app',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-core-image-upload",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"description": "a vue plgin for image upload and crop",
55
"main": "index.js",
66
"dependencies": {

src/vue.core.image.upload.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
border:1px solid #777;
150150
box-shadow: 0 1px 3px rgba(0,0,0,.05);
151151
}
152-
.g-core-image-corp-container .btn:active,{
152+
.g-core-image-corp-container .btn:active{
153153
background: #ddd;
154154
}
155155
.g-core-image-corp-container .btn:disabled{
@@ -479,17 +479,14 @@
479479
for(let i=0;i<this.files.length;i++) {
480480
data.append(self.inputOfFile, this.files[i]);
481481
}
482-
483482
if (typeof this.data === 'object') {
484483
for(let k in this.data) {
485484
if(this.data[k] !== undefined) {
486485
data.append(k,this.data[k]);
487486
}
488-
489487
}
490488
491489
}
492-
493490
xhr('POST',this.url,this.headers,data,function(res) {
494491
if(typeof callback === 'function') {
495492
callback();

0 commit comments

Comments
 (0)