Browse Source

再次选择相同文件表格内容不更新bug修改

zhuwei 5 years ago
parent
commit
c8ba865744
3 changed files with 2 additions and 1 deletions
  1. 0 0
      js/dist/excel-preview.min.js
  2. 1 0
      js/src/excel-preview.js
  3. 1 1
      package.json

File diff suppressed because it is too large
+ 0 - 0
js/dist/excel-preview.min.js


+ 1 - 0
js/src/excel-preview.js

@@ -25,6 +25,7 @@
             var e = this;
             $(e.element).prev('input[type=file]').on('change', function(file) {
                 e.excelPreview(file);
+                $(this).val('');
             })  
         },
 

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "excel-preview",
-  "version": "1.0.0",
+  "version": "1.0.1",
   "description": "Preview Excel online",
   "main": "index.js",
   "scripts": {

Some files were not shown because too many files changed in this diff