vue-img-watermark icon indicating copy to clipboard operation
vue-img-watermark copied to clipboard

Custom content does not work

Open huangjinlei666 opened this issue 8 months ago • 0 comments

I want to customize the content, but the generated watermark content is undefined

The code is as follows

OptionConfig : { mode: "bottomleft", textBaseline: "middle", font: "12px Arial", fillStyle: "white", content: ${this.now}, rotate: 45 }

//username,userid from data computed: { now(){ return this.username+this.userid+dayjs().format("YYYY-MM-DD HH:mm:ss") } },

huangjinlei666 avatar Jun 12 '24 02:06 huangjinlei666