decorate-a4e503f5.js 2.0 KB

1
  1. import{P as f,_ as d,__tla as h}from"./util-6f397195.js";import{g as v,u as w,__tla as b}from"./page-675c3133.js";import{u as g,__tla as D}from"./tagsView-a1cbfa1f.js";import{u as P,__tla as V}from"./useMessage-de42a595.js";import{d as j,r as l,u as k,$ as U,b as x,a,o as A,A as F,D as I,__tla as R}from"./index-e8bff8cb.js";import{__tla as S}from"./Dialog-4d17ac25.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as $}from"./Qrcode-5bbe47fe.js";import{__tla as q}from"./el-text-f88c4dda.js";import{__tla as z}from"./IFrame.vue_vue_type_script_setup_true_lang-11295655.js";import{__tla as B}from"./el-card-f9558d99.js";import{__tla as C}from"./vuedraggable.umd-e6dc7eda.js";import{__tla as E}from"./el-collapse-item-4651ee33.js";let m,G=Promise.all([(()=>{try{return h}catch{}})(),(()=>{try{return b}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return C}catch{}})(),(()=>{try{return E}catch{}})()]).then(async()=>{m=j({name:"DiyPageDecorate",__name:"decorate",setup(H){const s=P(),r=l(!1),t=l(),o=l(),c=async()=>{if(o){r.value=!0;try{await w(a(t)),s.success("\u4FDD\u5B58\u6210\u529F")}finally{r.value=!1}}},{currentRoute:u}=k(),{delView:n}=g(),i=U();return x(()=>{var _;if(t.value={id:void 0,templateId:void 0,name:"",remark:"",previewPicUrls:[],property:""},(_=o.value)==null||_.resetFields(),!i.params.id)return s.warning("\u53C2\u6570\u9519\u8BEF\uFF0C\u9875\u9762\u7F16\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF01"),void n(a(u));(async e=>{r.value=!0;try{t.value=await v(e)}finally{r.value=!1}})(i.params.id)}),(_,e)=>{const p=d;return a(t)&&!a(r)?(A(),F(p,{key:0,modelValue:a(t).property,"onUpdate:modelValue":e[0]||(e[0]=y=>a(t).property=y),title:a(t).name,libs:a(f),onSave:c},null,8,["modelValue","title","libs"])):I("",!0)}}})});export{G as __tla,m as default};