import{a as P,_}from"./app-PrSv7rSt.js";import{_ as V}from"./app-CVQkwzlf.js";import{C as N}from"./app-Ciy_QwIW.js";import{r as x,o as a,g as n,a as o,t as s,b as c,w as d,F as i,D as g,u as l,c as y,f as u,h as k}from"./app-SC54XQDl.js";const C={key:0,class:"comment"},h={key:0},v={class:"comment"},B={key:1},A={class:"comment"},E={__name:"HTTPOSSBucketParams",props:["v-oss-config","v-params","name"],setup(r){const p=r,{params:b,ossConfig:m}=function(){let f=p.vParams;f==null&&(f=[]);let e=p.vOssConfig;return e==null?e={bucketParam:"input",bucketName:"",bucketArgName:""}:(e.bucketParam!=null&&e.bucketParam.length==0&&(e.bucketParam="input"),e.options!=null&&e.options.bucketName!=null&&e.options.bucketName.length>0&&(e.bucketName=e.options.bucketName)),{params:x(f),ossConfig:x(e)}}();return(f,e)=>(a(),n("tbody",null,[o("tr",null,[o("td",null,s(r.name)+"名称获取方式 *",1),o("td",null,[c(_,{name:"bucketParam",modelValue:l(m).bucketParam,"onUpdate:modelValue":e[0]||(e[0]=t=>l(m).bucketParam=t)},{default:d(()=>[(a(!0),n(i,null,g(l(b),t=>(a(),n(i,null,[t.example.length==0?(a(),y(P,{key:0,value:t.code},{default:d(()=>[u(s(t.name.replace("${optionName}",r.name)),1)]),_:2},1032,["value"])):k("",!0)],64))),256)),(a(!0),n(i,null,g(l(b),t=>(a(),n(i,null,[t.example.length>0?(a(),y(P,{key:0,value:t.code},{default:d(()=>[u(s(t.name)+" - "+s(t.example),1)]),_:2},1032,["value"])):k("",!0)],64))),256))]),_:1},8,["modelValue"]),(a(!0),n(i,null,g(l(b),t=>(a(),n(i,null,[t.code==l(m).bucketParam?(a(),n("p",C,s(t.description.replace("${optionName}",r.name)),1)):k("",!0)],64))),256))])]),l(m).bucketParam=="input"?(a(),n("tr",h,[o("td",null,s(r.name)+"名称 *",1),o("td",null,[c(V,{type:"text",name:"bucketName",maxlength:"100",modelValue:l(m).bucketName,"onUpdate:modelValue":e[1]||(e[1]=t=>l(m).bucketName=t),class:"w-full"},null,8,["modelValue"]),o("p",v,[u(s(r.name)+"名称，类似于 ",1),c(N,null,{default:d(()=>[u("bucket-12345678")]),_:1}),u(" 。 ")])])])):k("",!0),l(m).bucketParam=="arg"?(a(),n("tr",B,[o("td",null,s(r.name)+"参数名称 *",1),o("td",null,[c(V,{type:"text",name:"bucketArgName",maxlength:"100",modelValue:l(m).bucketArgName,"onUpdate:modelValue":e[2]||(e[2]=t=>l(m).bucketArgName=t),class:"w-full"},null,8,["modelValue"]),o("p",A,[u(s(r.name)+"参数名称，比如 ",1),c(N,null,{default:d(()=>[u("?myBucketName=BUCKET-NAME")]),_:1}),u(" 中的 "),c(N,null,{default:d(()=>[u("myBucketName")]),_:1}),u(" 。 ")])])])):k("",!0)]))}};export{E as _};
