import{d as H,r as N,u as h,a as M,c as W,o as B,U as V,w as n,j as l,t as L,i as o,_ as R,H as $,k as q,ch as S,aH as j,B as z,p as c,aA as A,cf as O,M as T}from"./index-9PRMimni.js";const F=H({__name:"RevealSetting",setup(D){const v={name:{required:!0,message:"请输入网站名称",trigger:"blur"},mobile:{required:!0,message:"请输入联系电话",trigger:"input"}},f=[{label:"左上",value:1},{label:"右上",value:2},{label:"居中",value:3},{label:"右下",value:4}],g=[{label:"2位",value:1},{label:"3位",value:2},{label:"4位",value:3}],b=[{label:"四舍五入",value:1},{label:"向上取整",value:2},{label:"向下取整",value:3}],p=N(),_=h(),a=M({bigWidth:"",bigHeight:"",smallWidth:"",smallHeight:"",watermarkClarity:null,pricePrecise:1,isMarketPrice:!0,pricePreciseNum:null,systemOpen:!1,watermarkPlace:null});function w(){p.value.validate(m=>{m?_.error("验证失败，请填写完整信息"):_.success("验证成功")})}return(m,e)=>{const s=q,r=$,u=R,k=S,d=z,P=j,i=A,y=O,x=L,U=T,C=V;return B(),W(C,{cols:"1 s:1 m:1 l:4 xl:4 2xl:4",responsive:"screen"},{default:n(()=>[l(U,null,{default:n(()=>[l(x,{"label-width":120,model:a,rules:v,ref_key:"formRef",ref:p},{default:n(()=>[l(u,{label:"商品图片(大)"},{default:n(()=>[l(r,{align:"center"},{default:n(()=>[e[9]||(e[9]=o("span",null,"宽度：",-1)),l(s,{value:a.bigWidth,"onUpdate:value":e[0]||(e[0]=t=>a.bigWidth=t),style:{width:"80px"},placeholder:"宽度像素"},null,8,["value"]),e[10]||(e[10]=o("span",null,"高度：",-1)),l(s,{value:a.bigHeight,"onUpdate:value":e[1]||(e[1]=t=>a.bigHeight=t),style:{width:"80px"},placeholder:"高度像素"},null,8,["value"])]),_:1})]),_:1}),l(u,{label:"商品图片(小)"},{default:n(()=>[l(r,{align:"center"},{default:n(()=>[e[11]||(e[11]=o("span",null,"宽度：",-1)),l(s,{value:a.smallWidth,"onUpdate:value":e[2]||(e[2]=t=>a.smallWidth=t),style:{width:"80px"},placeholder:"宽度像素"},null,8,["value"]),e[12]||(e[12]=o("span",null,"高度：",-1)),l(s,{value:a.smallHeight,"onUpdate:value":e[3]||(e[3]=t=>a.smallHeight=t),style:{width:"80px"},placeholder:"高度像素"},null,8,["value"])]),_:1})]),_:1}),l(u,{label:"水印透明度",path:"watermarkClarity"},{default:n(()=>[l(k,{value:a.watermarkClarity,"onUpdate:value":e[4]||(e[4]=t=>a.watermarkClarity=t),"show-button":!1,placeholder:"请输入水印透明度"},null,8,["value"])]),_:1}),l(u,{label:"水印图片",path:"watermarkClarity"},{default:n(()=>[l(P,{action:"http://www.mocky.io/v2/5e4bafc63100007100d8b70f"},{default:n(()=>[l(d,null,{default:n(()=>e[13]||(e[13]=[c("上传文件")])),_:1})]),_:1})]),_:1}),l(u,{label:"水印位置",path:"watermarkPlace"},{default:n(()=>[l(i,{placeholder:"请选择价格精确方式",options:f,value:a.watermarkPlace,"onUpdate:value":e[5]||(e[5]=t=>a.watermarkPlace=t)},null,8,["value"])]),_:1}),l(u,{label:"价格精确位数",path:"pricePreciseNum"},{default:n(()=>[l(i,{placeholder:"请选择价格精确位数",options:g,value:a.pricePreciseNum,"onUpdate:value":e[6]||(e[6]=t=>a.pricePreciseNum=t)},null,8,["value"])]),_:1}),l(u,{label:"价格精确方式",path:"pricePrecise"},{default:n(()=>[l(i,{placeholder:"请选择价格精确方式",options:b,value:a.pricePrecise,"onUpdate:value":e[7]||(e[7]=t=>a.pricePrecise=t)},null,8,["value"])]),_:1}),l(u,{label:"前台显示市场价",path:"isMarketPrice"},{default:n(()=>[l(y,{size:"large",value:a.isMarketPrice,"onUpdate:value":e[8]||(e[8]=t=>a.isMarketPrice=t)},null,8,["value"])]),_:1}),o("div",null,[l(r,null,{default:n(()=>[l(d,{type:"primary",onClick:w},{default:n(()=>e[14]||(e[14]=[c("更新显示信息")])),_:1})]),_:1})])]),_:1},8,["model"])]),_:1})]),_:1})}}});export{F as _};
