Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 строки
1.5KB

  1. import{r as p,B as C,b as l,c as V,L as B,h as t,f as o,i as _,k as $}from"./index-dd5fae99.js";const j=$({name:"concurrentDialog"}),I=Object.assign(j,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close","update:data"],setup(i,{emit:c}){const s=i,r=c,u=p(),a=p({name:void 0}),v={name:[{required:!0,message:"请输入分支名称",trigger:"blur"}]},b=async n=>{n&&await n.validate(async e=>{if(e){const m={name:a.value.name,id:s.data.id||"",parentId:s.data.parentId||""};r("update:data",m),r("close",!0)}})};return C(()=>s.visible,async n=>{n?a.value={name:s.data.name}:u.value.resetFields()}),(n,e)=>{const m=l("el-input"),y=l("el-form-item"),g=l("el-col"),w=l("el-row"),x=l("el-form"),f=l("el-button"),k=l("el-dialog");return V(),B(k,{"model-value":i.visible,title:"并行分支节点设置",width:"840px","destroy-on-close":"",onClose:e[3]||(e[3]=d=>r("close"))},{footer:t(()=>[o(f,{type:"primary",onClick:e[1]||(e[1]=d=>b(u.value))},{default:t(()=>e[4]||(e[4]=[_(" 提交 ")])),_:1}),o(f,{onClick:e[2]||(e[2]=d=>r("close"))},{default:t(()=>e[5]||(e[5]=[_(" 关闭 ")])),_:1})]),default:t(()=>[o(x,{ref_key:"formRef",ref:u,model:a.value,rules:v,"label-width":"115px","label-suffix":":"},{default:t(()=>[o(w,null,{default:t(()=>[o(g,{span:24},{default:t(()=>[o(y,{label:"分支名称",prop:"name"},{default:t(()=>[o(m,{modelValue:a.value.name,"onUpdate:modelValue":e[0]||(e[0]=d=>a.value.name=d),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}});export{I as default};