2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
|
|
import{_ as d}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-CgKUoL60.js?v=1773287522785";import{bm as x,h1 as k}from"./index-BTglIPU2.js?v=1773287522785";import{k as v,R as b,r as g,e as w,$ as R,Z as $,a0 as t,a9 as s,_ as C,S as a,N as D}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as I}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index-K4YGya6V.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const y={class:"px-20px pt-24px pb-8px"},B={class:"w-240px"},q=v({__name:"index",setup(L,{expose:p}){const{t:m}=b(),c=x(),r=g(null),e=w({path:""}),i={path:{trigger:["blur","change"],validator:()=>e.path.trim()===""?new Error(m("Docker.LocalImage.index_23")):!0}};return p({onConfirm:async()=>{var o;await((o=r.value)==null?void 0:o.validate()),await k({...D(e)}),c.setRefresh(!0)}}),(o,n)=>{const _=h,l=I,f=d;return R(),$("div",y,[t(f,{ref_key:"formRef",ref:r,model:a(e),rules:i},{default:s(()=>[t(l,{label:o.$t("Docker.LocalImage.index_22"),path:"path"},{default:s(()=>[C("div",B,[t(_,{value:a(e).path,"onUpdate:value":n[0]||(n[0]=u=>a(e).path=u),"checked-type":["file"],placeholder:o.$t("Docker.LocalImage.index_23")},null,8,["value","placeholder"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{q as default};
|