Files
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00

83 lines
1.9 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */
import type { TdWatermarkProps } from './type';
export default {
/** 水印整体透明度,取值范围 [0-1] */
alpha: {
type: Number,
default: 1,
},
/** 水印所覆盖的内容节点 */
content: {
type: String,
},
/** 水印高度 */
height: {
type: Number,
},
/** 水印是否重复出现 */
isRepeat: {
type: Boolean,
default: true,
},
/** 水印的布局方式rectangular矩形即横平竖直的水印hexagonal六边形即错位的水印 */
layout: {
type: String,
default: 'rectangular' as TdWatermarkProps['layout'],
validator(val: TdWatermarkProps['layout']): boolean {
if (!val) return true;
return ['rectangular', 'hexagonal'].includes(val);
},
},
/** 行间距,只作用在多行(`content` 配置为数组)情况下 */
lineSpace: {
type: Number,
default: 16,
},
/** 水印是否可移动 */
movable: Boolean,
/** 水印发生运动位移的间隙,单位:毫秒 */
moveInterval: {
type: Number,
default: 3000,
},
/** 水印在画布上绘制的水平和垂直偏移量,正常情况下水印绘制在中间位置,即 `offset = [gapX / 2, gapY / 2]` */
offset: {
type: Array,
},
/** 水印是否可被删除 */
removable: {
type: Boolean,
default: true,
},
/** 水印旋转的角度,单位 ° */
rotate: {
type: Number,
default: -22,
},
/** 水印内容,需要显示多行情况下可配置为数组 */
watermarkContent: {
type: [Object, Array],
},
/** 水印宽度 */
width: {
type: Number,
},
/** 水印之间的水平间距 */
x: {
type: Number,
},
/** 水印之间的垂直间距 */
y: {
type: Number,
},
/** 水印元素的 `z-index`,默认值写在 CSS 中 */
zIndex: {
type: Number,
},
};