支持水印排列

御魂2,4,6属性简称
修正截图大小
式神,御魂信息更新
This commit is contained in:
2025-03-09 21:30:56 +08:00
parent b869d5263c
commit 9250faaf92
30 changed files with 1685 additions and 1255 deletions

View File

@@ -6,7 +6,7 @@
</template>
<script setup>
import { onMounted, ref } from 'vue';
import { onMounted,watch, ref } from 'vue';
const props = defineProps({
text: {
@@ -31,6 +31,8 @@ onMounted(() => {
createWatermark();
});
const createWatermark = () => {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
@@ -78,6 +80,9 @@ const createWatermark = () => {
// });
// observer.observe(container);
};
// 响应props变化
watch(() => [props.text, props.font, props.color, props.angle], createWatermark);
</script>
<style scoped>