← Back
Editing: index-BvbPgWU1.js
import{_ as u}from"./index.vue_vue_type_script_setup_true_lang-Cf-ClxAZ.js?v=1775100524734";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-DW-VcLbV.js?v=1775100524734";import{bs as k,hq as g}from"./index-B2eJVQGt.js?v=1775100524734";import{k as v,R as x,r as b,e as S,$ as w,Z as C,a0 as o,a9 as p,_ as $,S as a}from"./vue-core-BlDeWrD6.js?v=1775100524734";import{a1 as D}from"./naive-ui-DTxz-diP.js?v=1775100524734";import"./index-D37DLi-t.js?v=1775100524734";import"./prismjs-BZPoR7_J.js?v=1775100524734";const y={class:"p-20px pb-8px"},B={class:"w-240px"},j=v({__name:"index",setup(R,{expose:i}){const r=k(),{t:c}=x(),n=b(null),e=S({path:r.setting.docker_compose_path}),m={path:{trigger:["blur","input"],validator:()=>e.path.trim()===""?new Error(c("Docker.Setting.compose.index_3")):!0}};return i({onConfirm:async()=>{var t;await((t=n.value)==null?void 0:t.validate()),await g({docker_compose_path:e.path.trim()}),r.getSetting()}}),(t,s)=>{const _=h,l=D,f=u;return w(),C("div",y,[o(f,{ref_key:"formRef",ref:n,model:a(e),rules:m},{default:p(()=>[o(l,{label:t.$t("Docker.Setting.compose.index_1"),path:"path"},{default:p(()=>[$("div",B,[o(_,{value:a(e).path,"onUpdate:value":s[0]||(s[0]=d=>a(e).path=d),"checked-type":["file"],placeholder:t.$t("Docker.Setting.compose.index_2")},null,8,["value","placeholder"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{j as default};
Save File
Cancel