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