You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.1 KiB
JavaScript

var d=(f,l,a)=>new Promise((r,m)=>{var p=o=>{try{i(a.next(o))}catch(n){m(n)}},e=o=>{try{i(a.throw(o))}catch(n){m(n)}},i=o=>o.done?r(o.value):Promise.resolve(o.value).then(p,e);i((a=a.apply(f,l)).next())});import{a as w,B as M}from"./index-fya05jI8.js";import{u as S,_ as B}from"./useForm-fILnWqWp.js";import"./BasicForm.vue_vue_type_style_index_0_lang-D499EpF5.js";import"./componentMap-zBHKqdNc.js";import{c as O,d as k,e as v}from"./config-scE584S-.js";import{m as y}from"./oss.config.data-COqcmhMz.js";import{d as F,f as I,c as R,_ as b,a8 as x,a9 as A,k as P,u as s,ad as U}from"./vue-aEZWZQSa.js";import"./entry/index-C2Ijy48E-1723706691540.js";import"./antd-BY-1PcYE.js";import"./useWindowSizeFn-CjdUjzGl.js";import"./FormItem.vue_vue_type_script_lang-CKJUw6EQ.js";import"./helper-D0Efh3UP.js";import"./RadioButtonGroup.vue_vue_type_script_setup_true_lang-CVQ-sEzT.js";import"./index-DVy1eUzr.js";import"./useSortable-Bra4jKJL.js";import"./download-Cu3oizbN.js";import"./useLoading-C2GeNIUj.js";import"./copyTextToClipboard-BBFF3Y3I.js";import"./onMountedOrActivated-BIJ0U1R1.js";import"./style-apcQnL4e.js";import"./useRender-C6_44OXE.js";import"./index-JkNHdZh2.js";import"./dict-1X4Pwk-Z.js";import"./dictEnum-DeC8h6ZR.js";const io=F({name:"OssConfigModal",__name:"OssConfigModal",emits:["register","reload"],setup(f,{emit:l}){const a=l,r=I(!1),m=R(()=>r.value?"编辑OSS配置":"新增OSS配置"),[p,{modalLoading:e,closeModal:i}]=w(t=>d(this,null,function*(){e(!0);const{record:c,update:g}=t;if(r.value=g,g&&c){const h=yield O(c.ossConfigId);yield n(h)}e(!1)})),[o,{setFieldsValue:n,resetForm:u,validate:_}]=S({labelWidth:100,name:"oss_config_modal",showActionButtonGroup:!1,baseColProps:{span:24},schemas:y});function C(){return d(this,null,function*(){try{e(!0);const t=yield _();s(r)?yield k(t):yield v(t),yield u(),a("reload",i)}catch(t){}finally{e(!1)}})}return(t,c)=>(b(),x(s(M),U(t.$attrs,{title:m.value,width:600,onRegister:s(p),onOk:C,onCancel:s(u)}),{default:A(()=>[P(s(B),{onRegister:s(o)},null,8,["onRegister"])]),_:1},16,["title","onRegister","onCancel"]))}});export{io as default};