Skip to content

页面水印组件

页面增加水印, 且不可通过控制台删除

Usage

点击啊查看代码
vue
<template>
    <div id="app" >
        <q-page-watermark class="page-watermark-container" :customStyle="customStyle" name="12312" gapX="130" gapY="80">
            <template #content>
                内容
            </template>
        </q-page-watermark>
    </div>
</template>

<script lang="ts">
import { defineComponent} from 'vue';
import { QPageWatermark } from '@qmfront/vue3-ui';

export default defineComponent({
    name: 'App',
    components: {
        QPageWatermark
    },
    setup() {
        const customStyle = {
            zIndex: '10000', fontWeight: '800', opacity: '0.08'
        }
        return {
            customStyle
        };
    }
});
</script>

API

属性类型默认值可选值说明
customStyleCSSStyleDeclaration{}-自定义样式
gapYstring50px-上下距离
gapXstring80px-左右距离
namestring``-水印名称

MIT Licensed