Watermark 水印
用于页面背景中添加水印。
import { NpWatermarkModule } from 'ng-element-plus/watermark';
基本用法
页面背景中添加水印。
import { Component } from '@angular/core';
@Component({
selector: 'np-demo-watermark-basic',
template: `
<div np-watermark [npText]="'Ng Element Plus'" class="container"></div>
`,
styles: [
`
.container {
height: 500px;
}
`
]
})
export class NpDemoWatermarkBasicComponent { }
显示代码
Attribute
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
npText | 文本 | string | — | — |