decorate-5bf81ee5.js 2.0 KB

1
  1. import{P as f,_ as d,__tla as h}from"./util-1d14cfdf.js";import{g as v,u as w,__tla as V}from"./page-360733b6.js";import{u as b,__tla as g}from"./tagsView-5f5ec285.js";import{u as P,__tla as j}from"./useMessage-633c11d2.js";import{d as k,r as l,u as D,Z as U,b as x,a,o as C,C as F,a2 as I,__tla as R}from"./index-1f518666.js";import{__tla as S}from"./Dialog-4c960d8c.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Z}from"./Qrcode-75d3f7a7.js";import{__tla as q}from"./el-text-51f1e949.js";import{__tla as z}from"./IFrame.vue_vue_type_script_setup_true_lang-1b3b1a66.js";import{__tla as A}from"./el-card-955661ed.js";import{__tla as B}from"./vuedraggable.umd-88cf4fc6.js";import{__tla as E}from"./el-collapse-item-0f9fda1e.js";let m,G=Promise.all([(()=>{try{return h}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return g}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return E}catch{}})()]).then(async()=>{m=k({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}=D(),{delView:n}=b(),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)?(C(),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};