← Back
Editing: add-url-proxy.js
import{j as e,ag as l,_ as a,H as o,W as s}from"./utils-lib.js?v=1765440387";import{c as t,p as r,G as p,q as d,v as i,H as n,x as m,M as u,A as c,e as h,y as f,$ as _,P as b,aa as y,ay as x,a8 as j}from"./base-lib.js?v=1765440387";import{i as V,o as g,f as v,u as w,t as C,s as k,a as T,h as U,p as F,b as H,c as I,d as R,e as $}from"./index408.js?v=1765440387";import"./__commonjsHelpers__.js?v=1765440387";import"./index93.js?v=1765440387";import"./column.js?v=1765440387";import"./index94.js?v=1765440387";import"./validator.js?v=1765440387";import"./useController4.js?v=1765440387";import"./useController5.js?v=1765440387";import"./site.js?v=1765440387";import"./useStore3.js?v=1765440387";import"./useController6.js?v=1765440387";const q={class:"p-[20px]"},A={class:"flex items-center"},G=t({__name:"add-url-proxy",setup:(t,{expose:G})=>(r(()=>{V()}),G({onConfirm:g}),(t,r)=>{const V=e,g=y,G=l,L=a,M=o,P=x,S=j,W=s,z=p("bt-loading");return d(),i("div",q,[n((d(),u(S,{ref_key:"proxyFormRef",ref:H,model:m(w),rules:m(I),"label-width":"100px",disabled:m(R)},{default:c(()=>[h(g,{label:"代理目录",prop:"path"},{default:c(()=>[h(V,{modelValue:m(w).path,"onUpdate:modelValue":r[0]||(r[0]=e=>m(w).path=e),placeholder:"请输入代理目录,例如:/web",width:"42rem"},null,8,["modelValue"])]),_:1}),h(g,{label:"目标",prop:"proxysite"},{default:c(()=>[f("div",A,[h(g,null,{default:c(()=>[h(G,{class:"!w-[16rem]",modelValue:m(w).targetType,"onUpdate:modelValue":r[1]||(r[1]=e=>m(w).targetType=e),placeholder:"请选择",options:m(C),onChange:m(k)},null,8,["modelValue","options","onChange"])]),_:1}),h(V,{modelValue:m(w).proxysite,"onUpdate:modelValue":r[2]||(r[2]=e=>m(w).proxysite=e),placeholder:"http"===m(w).targetType?"请输入目标地址":"请选择sock文件",class:"!ml-[1rem]",width:"24rem",iconType:"http"!==m(w).targetType&&"folder",onFolder:m(T),onInput:m(U)},_({_:2},["http"!==m(w).targetType?{name:"append",fn:c(()=>[h(M,{onClick:m(T)},{default:c(()=>[h(L,{icon:"el-folder-opened",class:"cursor-pointer"})]),_:1},8,["onClick"])]),key:"0"}:void 0]),1032,["modelValue","placeholder","iconType","onFolder","onInput"])])]),_:1}),h(g,{label:"发送域名(host)",prop:"todomain","label-width":"100px"},{default:c(()=>[h(P,{placement:"top-start",effect:"dark",title:"",content:"请求转发到后端服务器时的主机名,一般为$http_host,如果目标URL是域名,则需要改为域名",width:"400",visible:m(F),"onUpdate:visible":r[5]||(r[5]=e=>b(F)?F.value=e:null),"trigger-keys":[],trigger:"focus"},{reference:c(()=>[h(V,{modelValue:m(w).todomain,"onUpdate:modelValue":r[3]||(r[3]=e=>m(w).todomain=e),onFocus:r[4]||(r[4]=e=>F.value=!0),placeholder:"请输入发送域名",width:"42rem"},null,8,["modelValue"])]),_:1},8,["visible"])]),_:1}),h(g,{label:"备注"},{default:c(()=>[h(V,{modelValue:m(w).ps,"onUpdate:modelValue":r[6]||(r[6]=e=>m(w).ps=e),placeholder:"请输入备注,可为空",width:"42rem"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules","disabled"])),[[z,m(v)]]),h(W,{options:m($),class:"mt-2rem ml-[20px]"},null,8,["options"])])})});export{G as default};
Save File
Cancel