import B from"./BaseConfig.0466b450.js";import{d as w,r as f,p as c,c as i,e as C,f as y,h as e,i as o,q as m,u as n,g as b,m as _,y as h}from"./index.0308b213.js";const k={class:"optimization-config"},A=_("\u8BBE\u7F6E\u4F18\u9009\u5E97\u94FA"),q={class:"dialog-footer"},z=_(" \u5173\u95ED "),D=w({props:{config:null},emits:["update:config"],setup(g,{emit:F}){const V=g;let a=f({title:"",desc:""}),t=f(!1);return c(()=>V.config,s=>{s&&h(()=>{a.value.title=s.title,a.value.desc=s.desc})},{immediate:!0}),c(a.value,s=>{F("update:config",s)}),(s,l)=>{const p=i("el-button"),d=i("el-form-item"),r=i("el-input"),E=i("el-form"),v=i("el-image"),x=i("el-dialog");return C(),y("div",k,[e(B,{title:"\u4F18\u9009\u5E97\u94FA",desc:"\u5C55\u793A\u4F18\u9009\u5E97\u94FA"},{default:o(()=>[e(E,{"label-width":"120px"},{default:o(()=>[e(d,{label:"\u8DF3\u8F6C\u8BBE\u7F6E\u9875\u9762"},{default:o(()=>[e(p,{type:"primary",onClick:l[0]||(l[0]=u=>m(t)?t.value=!0:t=!0)},{default:o(()=>[A]),_:1})]),_:1}),e(d,{label:"\u6807\u9898"},{default:o(()=>[e(r,{modelValue:n(a).title,"onUpdate:modelValue":l[1]||(l[1]=u=>n(a).title=u),maxlength:6},null,8,["modelValue"])]),_:1}),e(d,{label:"\u63CF\u8FF0"},{default:o(()=>[e(r,{modelValue:n(a).desc,"onUpdate:modelValue":l[2]||(l[2]=u=>n(a).desc=u),maxlength:24},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(x,{modelValue:n(t),"onUpdate:modelValue":l[4]||(l[4]=u=>m(t)?t.value=u:t=u),title:"\u8BBE\u7F6E\u4F18\u9009\u5E97\u94FA",width:"100%"},{footer:o(()=>[b("div",q,[e(p,{type:"primary",onClick:l[3]||(l[3]=u=>m(t)?t.value=!1:t=!1)},{default:o(()=>[z]),_:1})])]),default:o(()=>[e(v,{style:{width:"100%"},src:"https://qny.wdsp666.com/uploads/images/20240902182711e22ff6351.png","zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":["https://qny.wdsp666.com/uploads/images/20240902182711e22ff6351.png"],"initial-index":0,fit:"cover"},null,8,["zoom-rate","min-scale","preview-src-list"])]),_:1},8,["modelValue"])])}}});export{D as _};
