37 lines
550 B
Vue
37 lines
550 B
Vue
<template>
|
|
<div class="ysrxegms">
|
|
<canvas ref="canvas" :width="value.width" :height="value.height"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
props: {
|
|
value: {
|
|
required: true
|
|
},
|
|
script: {
|
|
required: true
|
|
}
|
|
},
|
|
mounted() {
|
|
this.script.aoiScript.registerCanvas(this.value.name, this.$refs.canvas);
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.ysrxegms {
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
overflow: auto;
|
|
max-width: 100%;
|
|
|
|
> canvas {
|
|
display: block;
|
|
}
|
|
}
|
|
</style>
|