fix: 抽离水印的组件

This commit is contained in:
奔跑的面条
2022-04-11 17:06:04 +08:00
parent 383b7c3cd5
commit 295115b6be
3 changed files with 54 additions and 17 deletions
@@ -0,0 +1,3 @@
import EditWatermark from './index.vue'
export { EditWatermark }
@@ -0,0 +1,27 @@
<template>
<n-watermark
id="go-edit-watermark"
:content="watermarkText"
cross
selectable
:font-size="16"
:line-height="16"
:width="500"
:height="150"
:x-offset="12"
:y-offset="80"
:rotate="-15"
></n-watermark>
</template>
<script setup lang="ts">
import { watermarkText } from '@/settings/designSetting'
</script>
<style lang="scss" scoped>
#go-edit-watermark {
display: none;
width: 100%;
height: 100%;
}
</style>