main-1b5ddcbf.js 3.3 KB

1
  1. import{d as w,e as x,r as T,M as h,a as m,o as M,j,w as o,i as l,m as r,P as s,_ as I,s as N,W as P,X as R}from"./index-6d906b8a.js";import{N as W,R as i,c as _,T as S}from"./TabNews-a33764a6.js";import{_ as X}from"./TabText.vue_vue_type_script_setup_true_lang-2af17644.js";import k from"./TabImage-36563584.js";import q from"./TabVoice-e390b244.js";import z from"./TabVideo-f02689a3.js";import{_ as A}from"./TabMusic.vue_vue_type_script_setup_true_lang-0070d1a5.js";import{_ as B}from"./_plugin-vue_export-helper-1b428a4d.js";import"./main-eb41e3b1.js";import"./el-image-9aeecfea.js";import"./el-image-viewer-3eb20b9c.js";import"./main-df8db002.js";import"./index.vue_vue_type_script_setup_true_lang-7766ce4b.js";import"./index-06db4b5a.js";import"./main-3de46a23.js";import"./main.vue_vue_type_script_setup_true_lang-c4618b0e.js";import"./index-49db8564.js";import"./index-0e968ab2.js";import"./formatTime-b48ce278.js";import"./useUpload-aeeb422d.js";import"./useMessage-cb0d0c75.js";const C=B(w({name:"WxReplySelect",__name:"main",props:{modelValue:{},newsType:{default:()=>W.Published}},emits:["update:modelValue"],setup(v,{expose:g,emit:b}){const f=v,y=b,a=x({get:()=>f.modelValue,set:n=>y("update:modelValue",n)}),c=new Map,V=T(f.modelValue.type||i.Text);return h(V,(n,e)=>{if(e===void 0||n===void 0)return;c.set(e,m(a));const d=c.get(n);if(d)a.value=d;else{let u=_(a);u.type=n,a.value=u}},{immediate:!0}),g({clear:()=>{a.value=_(a)}}),(n,e)=>{const d=I,u=N,p=P,U=R;return M(),j(U,{type:"border-card",modelValue:m(V),"onUpdate:modelValue":e[6]||(e[6]=t=>s(V)?V.value=t:null)},{default:o(()=>[l(p,{name:m(i).Text},{label:o(()=>[l(u,{align:"middle"},{default:o(()=>[l(d,{icon:"ep:document"}),e[7]||(e[7]=r(" \u6587\u672C"))]),_:1})]),default:o(()=>[l(X,{modelValue:m(a).content,"onUpdate:modelValue":e[0]||(e[0]=t=>m(a).content=t)},null,8,["modelValue"])]),_:1},8,["name"]),l(p,{name:m(i).Image},{label:o(()=>[l(u,{align:"middle"},{default:o(()=>[l(d,{icon:"ep:picture",class:"mr-5px"}),e[8]||(e[8]=r(" \u56FE\u7247"))]),_:1})]),default:o(()=>[l(k,{modelValue:m(a),"onUpdate:modelValue":e[1]||(e[1]=t=>s(a)?a.value=t:null)},null,8,["modelValue"])]),_:1},8,["name"]),l(p,{name:m(i).Voice},{label:o(()=>[l(u,{align:"middle"},{default:o(()=>[l(d,{icon:"ep:phone"}),e[9]||(e[9]=r(" \u8BED\u97F3"))]),_:1})]),default:o(()=>[l(q,{modelValue:m(a),"onUpdate:modelValue":e[2]||(e[2]=t=>s(a)?a.value=t:null)},null,8,["modelValue"])]),_:1},8,["name"]),l(p,{name:m(i).Video},{label:o(()=>[l(u,{align:"middle"},{default:o(()=>[l(d,{icon:"ep:share"}),e[10]||(e[10]=r(" \u89C6\u9891"))]),_:1})]),default:o(()=>[l(z,{modelValue:m(a),"onUpdate:modelValue":e[3]||(e[3]=t=>s(a)?a.value=t:null)},null,8,["modelValue"])]),_:1},8,["name"]),l(p,{name:m(i).News},{label:o(()=>[l(u,{align:"middle"},{default:o(()=>[l(d,{icon:"ep:reading"}),e[11]||(e[11]=r(" \u56FE\u6587"))]),_:1})]),default:o(()=>[l(S,{modelValue:m(a),"onUpdate:modelValue":e[4]||(e[4]=t=>s(a)?a.value=t:null),"news-type":n.newsType},null,8,["modelValue","news-type"])]),_:1},8,["name"]),l(p,{name:m(i).Music},{label:o(()=>[l(u,{align:"middle"},{default:o(()=>[l(d,{icon:"ep:service"}),e[12]||(e[12]=r("\u97F3\u4E50"))]),_:1})]),default:o(()=>[l(A,{modelValue:m(a),"onUpdate:modelValue":e[5]||(e[5]=t=>s(a)?a.value=t:null)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-462adbe4"]]);export{C as default};