import{u as m}from"./useWatermark-BiV6n824.js";import{p as v,a as y,ai as i,q as _,t as W,v as d,U as t,O as o,u as l,S as n}from"./vue-C8lPpR34.js";import{_ as b}from"./index-S1sRAIbm.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const g={class:"app-container"},x=v({__name:"use-watermark",setup($){const s=y(null),{setWatermark:f,clearWatermark:k}=m(s),{setWatermark:p,clearWatermark:C}=m();return(w,e)=>{const r=i("el-button"),u=i("el-button-group");return _(),W("div",g,[e[10]||(e[10]=d("h4",null," 该示例是演示：通过调用 hook，开启或关闭水印， 支持局部、全局、自定义样式（颜色、透明度、字体大小、字体、倾斜角度等），并自带防御（防删、防隐藏）和自适应功能 ",-1)),d("div",{ref_key:"localRef",ref:s,class:"local"},null,512),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[0]||(e[0]=a=>l(f)("局部水印",{color:"#409eff"}))},{default:o(()=>e[4]||(e[4]=[n("创建局部水印")])),_:1}),t(r,{type:"warning",onClick:e[1]||(e[1]=a=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[5]||(e[5]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(k)},{default:o(()=>e[6]||(e[6]=[n("清除局部水印")])),_:1},8,["onClick"])]),_:1}),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[2]||(e[2]=a=>l(p)("全局水印",{color:"#409eff"}))},{default:o(()=>e[7]||(e[7]=[n("创建全局水印")])),_:1}),t(r,{type:"warning",onClick:e[3]||(e[3]=a=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[8]||(e[8]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(C)},{default:o(()=>e[9]||(e[9]=[n("清除全局水印")])),_:1},8,["onClick"])]),_:1})])}}}),c=b(x,[["__scopeId","data-v-dbeea05d"]]);export{c as default};
