Skip to content

水印 Watermark

在页面上添加文字水印信息

示例代码

<script setup>
import { ref } from "vue";


const Watermark = ref({
  text: "earthsdk-ui",
  font: "14px Microsoft Yahei",
  textColor: "red",
  width: 200,
  height: 150,
  textRotate: -20,
});
</script>

<template>
  <div v-watermark="Watermark" class="vWatermark"></div>

</template>

<style scoped>
.vWatermark {
  height: 600px;
}
</style>

Attributes

属性名说明类型默认值
text水印内容stringearthsdk-ui
font字体大小string14px Microsoft Yahei
textColor字体颜色stringrgba(204,204,204,0.1)