2 lines
6.7 KiB
JavaScript
2 lines
6.7 KiB
JavaScript
import{G as S,H as j,t as N,I as $,C as z,D as O,w as R,F as G}from"./element-plus.9175fe58.js";import{_ as T}from"./index.d5a98515.js";import{f as g,b as H,d as M}from"./index.669f9987.js";import{_ as W}from"./picker.6d73274c.js";import{_ as q}from"./picker.0630e4ea.js";import{D as J}from"./vuedraggable.39068026.js";import{d as K,o as n,M as d,O as t,W as o,T as p,S as r,a as u,c as f,u as L,V as P,bk as Q,bj as X}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.js";import"./axios.13991fdc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.6c5d06b3.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./index.vue_vue_type_script_setup_true_lang.0fb3ad1e.js";import"./usePaging.d25ebf19.js";import"./article.ebc53ffb.js";import"./index.c7b1c52d.js";import"./index.ad8825bc.js";import"./index.a26fd36c.js";import"./index.vue_vue_type_script_setup_true_lang.5e44b2ed.js";import"./vue3-video-play.4813c60b.js";import"./vue.ecf7f5ee.js";import"./sortablejs.a3e32c99.js";const i=e=>(Q("data-v-82c79bd7"),e=e(),X(),e),Y=i(()=>u("div",{class:"flex items-end mb-4"},[u("div",{class:"text-base text-[#101010] font-medium"},"\u5C55\u793A\u6837\u5F0F")],-1)),Z=i(()=>u("div",{class:"flex items-end mb-4"},[u("div",{class:"text-base text-[#101010] font-medium"},"\u80CC\u666F\u8054\u52A8")],-1)),ee=i(()=>u("div",{class:"p-[15px] rounded-[8px] bg-[#f3f8ff] text-[#136bdf] mt-2"}," \u5F00\u542F\u80CC\u666F\u8054\u52A8\u540E\uFF0C\u9700\u4E3A\u8F6E\u64AD\u56FE\u8BBE\u7F6E\u80CC\u666F\u56FE\uFF0C\u8F6E\u64AD\u56FE\u5207\u6362\u65F6\uFF0C\u80CC\u666F\u56FE\u4E5F\u8DDF\u968F\u5207\u6362\uFF0C\u6B64\u65F6\u8BE5\u9875\u9762\u81EA\u8EAB\u7684\u201C\u9875\u9762\u80CC\u666F\u201C\u8BBE\u7F6E\u5C06\u5931\u6548\u3002 ",-1)),te={class:"flex items-end"},oe=i(()=>u("div",{class:"text-base text-[#101010] font-medium"},"\u8F6E\u64AD\u56FE\u7247",-1)),ue={key:0,class:"text-xs text-tx-secondary ml-2"},le={key:1,class:"text-xs text-tx-secondary ml-2"},ae={class:"flex-1"},ne={class:"bg-fill-light w-full p-4 mt-4"},se={class:"flex justify-center w-[467px]"},de=i(()=>u("div",{class:"w-[122px] h-[122px] banner-upload-btn"}," \u8F6E\u64AD\u56FE ",-1)),me=i(()=>u("div",{class:"w-[122px] h-[122px] banner-upload-btn"}," \u80CC\u666F\u56FE ",-1)),ie={class:"flex-1"},ce={class:"flex-1 flex items-center"},pe={class:"drag-move cursor-move ml-auto"},re={key:0,class:"mt-4"},E=5,_e=K({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(e){const _=e,C=()=>{var c;((c=_.content.data)==null?void 0:c.length)<E?_.content.data.push({is_show:"1",image:"",name:"",link:{}}):g.msgError(`\u6700\u591A\u6DFB\u52A0${E}\u5F20\u56FE\u7247`)},v=c=>{var s;if(((s=_.content.data)==null?void 0:s.length)<=1)return g.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");_.content.data.splice(c,1)};return(c,s)=>{const F=S,h=j,x=$,b=q,A=W,k=z,V=O,B=N,w=H,D=T,U=R,I=G;return n(),d(I,{"label-width":"70px"},{default:t(()=>[o(x,{shadow:"never",class:"!border-none flex mt-2"},{default:t(()=>[Y,o(h,{modelValue:e.content.style,"onUpdate:modelValue":s[0]||(s[0]=m=>e.content.style=m)},{default:t(()=>[o(F,{label:1},{default:t(()=>[p("\u5E38\u89C4")]),_:1}),o(F,{label:2},{default:t(()=>[p("\u5927\u5C4F")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.content.style==1?(n(),d(x,{key:0,shadow:"never",class:"!border-none flex mt-2"},{default:t(()=>[Z,o(h,{modelValue:e.content.bg_style,"onUpdate:modelValue":s[1]||(s[1]=m=>e.content.bg_style=m)},{default:t(()=>[o(F,{label:1},{default:t(()=>[p("\u5F00\u542F")]),_:1}),o(F,{label:0},{default:t(()=>[p("\u5173\u95ED")]),_:1})]),_:1},8,["modelValue"]),ee]),_:1})):r("",!0),o(x,{shadow:"never",class:"!border-none flex-1 mt-2"},{default:t(()=>{var m;return[u("div",te,[oe,e.content.style==1?(n(),f("div",ue," \u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*340px ")):(n(),f("div",le," \u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*1100px "))]),u("div",ae,[o(L(J),{class:"draggable",modelValue:e.content.data,"onUpdate:modelValue":s[2]||(s[2]=l=>e.content.data=l),animation:"300",handle:".drag-move"},{item:t(({element:l,index:y})=>[(n(),d(D,{key:y,onClose:a=>v(y),class:"w-full"},{default:t(()=>[u("div",ne,[u("div",se,[e.content.style==1?(n(),f(P,{key:0},[o(b,{size:"122px",modelValue:l.image,"onUpdate:modelValue":a=>l.image=a,"upload-class":"bg-body","exclude-domain":""},{upload:t(()=>[de]),_:2},1032,["modelValue","onUpdate:modelValue"]),e.content.style==0||e.content.bg_style==1?(n(),d(b,{key:0,class:"ml-[40px]",size:"122px",modelValue:l.bg,"onUpdate:modelValue":a=>l.bg=a,"upload-class":"bg-body","exclude-domain":""},{upload:t(()=>[me]),_:2},1032,["modelValue","onUpdate:modelValue"])):r("",!0)],64)):(n(),d(b,{key:1,width:"396px",height:"196px",modelValue:l.image,"onUpdate:modelValue":a=>l.image=a,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]))]),u("div",ie,[o(V,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[e.type=="mobile"?(n(),d(A,{key:0,modelValue:l.link,"onUpdate:modelValue":a=>l.link=a},null,8,["modelValue","onUpdate:modelValue"])):r("",!0),e.type=="pc"?(n(),d(k,{key:1,placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5",modelValue:l.link.path,"onUpdate:modelValue":a=>l.link.path=a},null,8,["modelValue","onUpdate:modelValue"])):r("",!0)]),_:2},1024),o(V,{label:"\u662F\u5426\u663E\u793A",class:"mt-[18px] !mb-0"},{default:t(()=>[u("div",ce,[o(B,{modelValue:l.is_show,"onUpdate:modelValue":a=>l.is_show=a,"active-value":"1","inactive-value":"0"},null,8,["modelValue","onUpdate:modelValue"]),u("div",pe,[o(w,{name:"el-icon-Rank",size:"18"})])])]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])]),((m=e.content.data)==null?void 0:m.length)<E?(n(),f("div",re,[o(U,{class:"w-full",type:"primary",onClick:C},{default:t(()=>[p("\u6DFB\u52A0\u56FE\u7247")]),_:1})])):r("",!0)]}),_:1})]),_:1})}}});const st=M(_e,[["__scopeId","data-v-82c79bd7"]]);export{st as default};
|