refactor: move border to screen itself, and use withDefaults
This commit is contained in:
@@ -64,7 +64,15 @@ onUnmounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<canvas ref="canvas" :width="SCREEN_WIDTH" :height="SCREEN_HEIGHT" />
|
||||
<canvas
|
||||
ref="canvas"
|
||||
:width="SCREEN_WIDTH"
|
||||
:height="SCREEN_HEIGHT"
|
||||
:style="{
|
||||
margin: '0',
|
||||
border: '1px solid red',
|
||||
}"
|
||||
/>
|
||||
|
||||
<slot v-if="canvas" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user