mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
@@ -176,8 +176,7 @@ export default {
|
|||||||
const canvas = await getPivotCanvas(this.$refs.pivotOutput)
|
const canvas = await getPivotCanvas(this.$refs.pivotOutput)
|
||||||
cIo.copyCanvas(canvas)
|
cIo.copyCanvas(canvas)
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -107,7 +107,11 @@ export default {
|
|||||||
return this.$refs.viewComponent.getOptionsForSave()
|
return this.$refs.viewComponent.getOptionsForSave()
|
||||||
},
|
},
|
||||||
copyToClipboard () {
|
copyToClipboard () {
|
||||||
|
if ('ClipboardItem' in window) {
|
||||||
this.$refs.viewComponent.copyPngToClipboard()
|
this.$refs.viewComponent.copyPngToClipboard()
|
||||||
|
} else {
|
||||||
|
alert ("Your browser doesn't support copying images into the clipboard. If you use Firefox you can enable it by setting dom.events.asyncClipboard.clipboardItem to true.")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user