Browse Source

KERNEL-12408:base中eslint的修改

es6
chaos0156 2 years ago
parent
commit
b721941854
  1. 3
      .eslintrc
  2. 6
      src/base/single/input/file.js

3
.eslintrc

@ -14,7 +14,8 @@
"Fix": true, "Fix": true,
"module": true, "module": true,
"Demo": true, "Demo": true,
"_global": true "_global": true,
"ActiveXObject": true
}, },
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {

6
src/base/single/input/file.js

@ -251,7 +251,7 @@
} else { } else {
// Internet Explorer, Opera, others // Internet Explorer, Opera, others
sendFile = function (handler, maxSize, width, height) { sendFile = function (handler, maxSize, width, height) {
var current = handler.current; var current = handler.current, iframe, form;
var url = handler.url.concat(-1 === handler.url.indexOf("?") ? "?" : "&", "AjaxUploadFrame=true"), var url = handler.url.concat(-1 === handler.url.indexOf("?") ? "?" : "&", "AjaxUploadFrame=true"),
rpe = { rpe = {
loaded: 1, total: 100, simulation: true, interval: setInterval(function () { loaded: 1, total: 100, simulation: true, interval: setInterval(function () {
@ -499,9 +499,9 @@
if (this.file.fileSize !== -1) { if (this.file.fileSize !== -1) {
// simulation property indicates when the progress event is fake // simulation property indicates when the progress event is fake
if (rpe.simulation) { if (rpe.simulation) {
// empty
} else { } else {
// empty
} }
} else { } else {
// if fileSIze is -1 browser is using an iframe because it does // if fileSIze is -1 browser is using an iframe because it does

Loading…
Cancel
Save