Revert eslintrc changes
This commit is contained in:
parent
b458b2ae5f
commit
546ba9eba9
2 changed files with 2 additions and 8 deletions
|
@ -10,12 +10,6 @@ module.exports = {
|
|||
plugins: [
|
||||
'html'
|
||||
],
|
||||
globals: {
|
||||
'FileReader': false,
|
||||
'Element': false,
|
||||
'FormData': false,
|
||||
'XMLHttpRequest': false
|
||||
},
|
||||
// add your custom rules here
|
||||
rules: {
|
||||
// allow paren-less arrow functions
|
||||
|
|
|
@ -5,7 +5,7 @@ import 'cropperjs/dist/cropper.css'
|
|||
const ImageCropper = {
|
||||
props: {
|
||||
trigger: {
|
||||
type: [String, Element],
|
||||
type: [String, window.Element],
|
||||
required: true
|
||||
},
|
||||
cropperOptions: {
|
||||
|
@ -74,7 +74,7 @@ const ImageCropper = {
|
|||
readFile () {
|
||||
const fileInput = this.$refs.input
|
||||
if (fileInput.files != null && fileInput.files[0] != null) {
|
||||
let reader = new FileReader()
|
||||
let reader = new window.FileReader()
|
||||
reader.onload = (e) => {
|
||||
this.dataUrl = e.target.result
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue