For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/zh/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/zh/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/zh/components/watermark.md.
v0.0.57
  • 简体中文
  • Watermark

    通用@rockshin/tao-ui

    在内容与继承的弹层上重复绘制文字或图片水印。

    组件采用 tao-ui 原生实现,公共 API 对齐 Ant Design 6.7.0。外观、主题 token 与 Semantic DOM 定制遵循 tao-ui,主题通过 TaoProvider 配置。

    Canvas 绘制遵循 6.7.0 content/font/gap/offset API;Modal 与 Drawer 默认继承,inherit=false 关闭门户继承;被移除或篡改的覆盖层会恢复。

    何时使用

    用于标记所有者、工作区或资料类别,同时保持正文可读。

    代码演示

    文字水印

    Workspace report

    Content remains selectable and interactive.

    TSX

    多行文字与字体

    TSX

    旋转、间距与偏移

    TSX

    图片与文字后备

    TSX

    继承到 Modal 与 Drawer

    390 × 640
    TSX

    关闭门户继承

    390 × 640
    TSX

    API

    Watermark

    属性说明类型默认值