UNPKG

element-plus

Version:

A Component Library for Vue 3

62 lines (58 loc) 1.32 kB
'use strict'; var runtime = require('../../../utils/vue/props/runtime.js'); const watermarkProps = runtime.buildProps({ /** * @description The z-index of the appended watermark element */ zIndex: { type: Number, default: 9 }, /** * @description The rotation angle of the watermark */ rotate: { type: Number, default: -22 }, /** * @description The width of the watermark */ width: Number, /** * @description The height of the watermark */ height: Number, /** * @description Image source, it is recommended to export 2x or 3x image, high priority (support base64 format) */ image: String, /** * @description Watermark text content */ content: { type: runtime.definePropType([String, Array]), default: "Element Plus" }, /** * @description Text style */ font: { type: runtime.definePropType(Object) }, /** * @description The spacing between watermarks */ gap: { type: runtime.definePropType(Array), default: () => [100, 100] }, /** * @description The offset of the watermark from the upper left corner of the container. The default is gap/2 */ offset: { type: runtime.definePropType(Array) } }); exports.watermarkProps = watermarkProps; //# sourceMappingURL=watermark.js.map