Appearance
水印 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 | 水印内容 | string | earthsdk-ui |
| font | 字体大小 | string | 14px Microsoft Yahei |
| textColor | 字体颜色 | string | rgba(204,204,204,0.1) |
EarthSDK UI