uu
This commit is contained in:
parent
e9c3c11e9b
commit
718152caef
@ -40,7 +40,10 @@
|
||||
</view>
|
||||
</tpx-dialog>
|
||||
|
||||
<create-image-data-bycanvas ref="curCanvas"></create-image-data-bycanvas>
|
||||
<view v-for="(url, index) in imageUrl">
|
||||
<create-image-data-bycanvas :ref="`curCanvas${index}`"></create-image-data-bycanvas>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -101,10 +104,12 @@ export default {
|
||||
}
|
||||
},
|
||||
async confirmPrint(){
|
||||
let imgRes = await this.$refs.curCanvas.renderCanvasImg(this.imageUrl[0], this.paperWidth)
|
||||
let res = await this.$refs.curPrint.callPrint({
|
||||
imgRes,
|
||||
paperWidth: this.paperWidth
|
||||
this.imageUrl.map(async (url, index)=> {
|
||||
let imgRes = await this.$refs[`curCanvas${index}`][0].renderCanvasImg(url, this.paperWidth)
|
||||
let res = await this.$refs.curPrint.callPrint({
|
||||
imgRes,
|
||||
paperWidth: this.paperWidth
|
||||
})
|
||||
})
|
||||
},
|
||||
autoConnectCallback(bl){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user