diff --git a/src/App.vue b/src/App.vue index 3262b3f..82d7d2f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1145,10 +1145,7 @@ export default { const imageFileDom = document.querySelector('#image') imageFileDom.click() }, - getSelectQrCode() { - const imageFileDom = document.querySelector('#qrCode') - imageFileDom.click() - }, + selectImage(event) { event.stopPropagation() let _this = this @@ -1173,29 +1170,7 @@ export default { } } }, - selectQrCode(event) { - let _this = this - //console.log('cododododo') - const imageFileDom = document.querySelector('#qrCode') - const file = event.target.files[0]//imageFileDom.files![0]! - const fileReader = new FileReader() - fileReader.readAsDataURL(file) - fileReader.onload = function () { - // 计算宽高 - const image = new Image() - const value = fileReader.result - image.src = value - image.onload = function () { - _this.instance.command.executeImage({ - value, - width: image.width, - height: image.height, - field: _this.imageType - }) - imageFileDom.value = '' - } - } - }, + executeInsertElementList() { this.instance.command.executeInsertElementList([ {