Watermark
علامة مائية: طبقة بلاطات فوق المحتوى المحمي (pointer-events: none، غير قابل للتحديد). وضعان نص وصورة.
فروقات المنصة (مسجلة): يستخدم هذا المنفذ تبليط شبكة CSS موحد (بدون canvas tile على H5 والبرنامج المصغر)؛ يتم حساب مواقع البلاطات بدالة share core النقية layoutWatermarkCells.
الاستخدام الأساسي
vue
<template>
<lh-watermark content="lh-ui 家族" :font-size="16" :gap-x="120">
<view class="content">
<text>受保护的内容</text>
</view>
</lh-watermark>
</template>صورة العلامة المائية وملء الشاشة
image له الأولوية على content؛ fullscreen يغطي إطار العرض (fixed):
vue
<lh-watermark image="/logo.png" :opacity="0.2" fullscreen />الخاصية
| الخاصية | الوصف | النوع | الافتراضي |
|---|---|---|---|
| content | string | string | — |
| image | string | string | — |
| opacity | number | number | 0.15 |
| rotate | number | number | -22 |
| gapX | number | number | 100 |
| gapY | number | number | — |
| fontSize | number | number | 14 |
| fontColor | string | string | — |
| zIndex | number | number | 100 |
| fullscreen | boolean | boolean | false |
| disabled | boolean | boolean | false |
| customClass | string | string | — |
| sx | LhSxProps | LhSxProps | — |
الفتحة
| الفتحة |
|---|
| default |

