data_center/public/admin/assets/tabbar.e564cbcf.js

2 lines
7.1 KiB
JavaScript

import{_ as K}from"./index.403e8c99.js";import{s as O,B as $,w as I,C as Q,x as q,y as G,D as H,I as J}from"./element-plus.9c2fdfa8.js";import{d as E,e as W,o as f,c as F,U as e,u as n,k as w,L as t,R as V,$ as X,af as Y,M as Z,K as U,a as l,T as ee,a7 as te,_ as oe,S as le,O as ae,Q as se,t as ne,bf as ue,be as re}from"./@vue.53f8d7c3.js";import{_ as ie}from"./index.a870c3ad.js";import{_ as de}from"./picker.2bea1a3e.js";import{_ as me}from"./picker.150ddd55.js";import{f as S,b as pe,d as ce}from"./index.5be037e5.js";import{b as _e,c as fe}from"./decoration.c6bc7795.js";import{D as be}from"./vuedraggable.56692cd2.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.da6dd366.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";import"./index.2baf2542.js";import"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import"./index.77cf5d3d.js";import"./index.vue_vue_type_script_setup_true_lang.aa03e8e3.js";import"./usePaging.c22e2b6f.js";import"./vue3-video-play.65ddc377.js";import"./lodash.47b8af7d.js";import"./axios.96be3cef.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./vue.5c6e0f1f.js";import"./sortablejs.4c4a59a1.js";const xe={class:"color-picker flex flex-1"},Fe=E({__name:"index",props:{modelValue:{type:String},defaultColor:{type:String}},emits:["update:modelValue"],setup(m,{emit:h}){const g=m,o=h,r=W({get(){return g.modelValue},set(b){o("update:modelValue",b)}}),y=["#409EFF","#28C76F","#EA5455","#FF9F43","#01CFE8","#4A5DFF"],v=()=>{r.value=g.defaultColor};return(b,p)=>{const a=O,u=$,x=I;return f(),F("div",xe,[e(a,{modelValue:n(r),"onUpdate:modelValue":p[0]||(p[0]=c=>w(r)?r.value=c:null),predefine:y},null,8,["modelValue"]),e(u,{modelValue:n(r),"onUpdate:modelValue":p[1]||(p[1]=c=>w(r)?r.value=c:null),class:"mx-[10px] flex-1",type:"text",readonly:""},null,8,["modelValue"]),e(x,{type:"text",onClick:v},{default:t(()=>[V("\u91CD\u7F6E")]),_:1})])}}}),C=m=>(ue("data-v-11220d71"),m=m(),re(),m),Ve={class:"decoration-tabbar min-w-[800px]"},ge={class:"flex h-full items-start"},ye={class:"pages-preview mx-[30px]"},ve={class:"tabbar flex"},Ee=["src"],Ce={class:"leading-3 text-[12px] mt-[4px]"},he={class:"flex-1"},De=C(()=>l("div",{class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2"},[V(" \u5E95\u90E8\u5BFC\u822A\u8BBE\u7F6E "),l("span",{class:"form-tips ml-[10px] !mt-0"}," \u81F3\u5C11\u6DFB\u52A02\u4E2A\u5BFC\u822A\uFF0C\u6700\u591A\u6DFB\u52A05\u4E2A\u5BFC\u822A ")],-1)),Be={class:"mb-[18px]"},ke={class:"bg-fill-light w-full p-4 mt-4"},Ae={class:"upload-btn w-[60px] h-[60px]"},we=C(()=>l("span",{class:"text-xs leading-5"}," \u672A\u9009\u4E2D ",-1)),Ue={class:"upload-btn w-[60px] h-[60px]"},Se=C(()=>l("span",{class:"text-xs leading-5"}," \u9009\u4E2D ",-1)),$e=E({name:"decorationTabbar"}),Ie=E({...$e,setup(m){const o=X({style:{default_color:"",selected_color:""},list:[{name:"",selected:"",unselected:"",link:{}},{name:"",selected:"",unselected:"",link:{}}]}),r=()=>{var a;((a=o.list)==null?void 0:a.length)<5?o.list.push({name:"",selected:"",unselected:"",link:{}}):S.msgError(`\u6700\u591A\u6DFB\u52A0${5}\u4E2A`)},y=a=>{var u;if(((u=o.list)==null?void 0:u.length)<=2)return S.msgError(`\u6700\u5C11\u4FDD\u7559${2}\u4E2A`);o.list.splice(a,1)},v=a=>a.relatedContext.index!=0,b=async()=>{const a=await _e();o.list=a.list,o.style=a.style},p=async()=>{await fe(ne(o)),b()};return b(),(a,u)=>{const x=pe,c=me,_=Q,T=$,z=de,N=ie,D=I,B=q,k=Fe,P=G,R=H,L=J,M=K,j=Y("perms");return f(),F("div",Ve,[e(L,{shadow:"never",class:"!border-none flex-1","body-style":{height:"100%"}},{default:t(()=>[l("div",ge,[l("div",ye,[l("div",ve,[(f(!0),F(ee,null,te(n(o).list,(i,s)=>(f(),F("div",{class:"tabbar-item flex flex-col justify-center items-center flex-1",key:s,style:oe({color:n(o).style.default_color})},[l("img",{class:"w-[22px] h-[22px]",src:i.unselected,alt:""},null,8,Ee),l("div",Ce,le(i.name),1)],4))),128))])]),l("div",he,[De,e(R,{class:"mt-4","label-width":"70px"},{default:t(()=>[e(P,{"model-value":"content"},{default:t(()=>[e(B,{label:"\u5BFC\u822A\u56FE\u7247",name:"content"},{default:t(()=>{var i;return[l("div",Be,[e(n(be),{class:"draggable",modelValue:n(o).list,"onUpdate:modelValue":u[0]||(u[0]=s=>n(o).list=s),animation:"300",draggable:".draggable",move:v},{item:t(({element:s,index:A})=>[e(N,{onClose:d=>y(A),class:ae(["max-w-[400px]",{draggable:A!=0}])},{default:t(()=>[l("div",ke,[e(_,{label:"\u5BFC\u822A\u56FE\u6807"},{default:t(()=>[e(c,{modelValue:s.unselected,"onUpdate:modelValue":d=>s.unselected=d,"upload-class":"bg-body",size:"60px"},{upload:t(()=>[l("div",Ae,[e(x,{name:"el-icon-Plus",size:16}),we])]),_:2},1032,["modelValue","onUpdate:modelValue"]),e(c,{modelValue:s.selected,"onUpdate:modelValue":d=>s.selected=d,"upload-class":"bg-body",size:"60px"},{upload:t(()=>[l("div",Ue,[e(x,{name:"el-icon-Plus",size:16}),Se])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(_,{label:"\u5BFC\u822A\u540D\u79F0"},{default:t(()=>[e(T,{modelValue:s.name,"onUpdate:modelValue":d=>s.name=d,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(_,{label:"\u94FE\u63A5\u5730\u5740"},{default:t(()=>[e(z,{modelValue:s.link,"onUpdate:modelValue":d=>s.link=d},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1032,["onClose","class"])]),_:1},8,["modelValue"])]),((i=n(o).list)==null?void 0:i.length)<5?(f(),U(_,{key:0,"label-width":"0"},{default:t(()=>[e(D,{type:"primary",onClick:r},{default:t(()=>[V(" \u6DFB\u52A0\u5BFC\u822A ")]),_:1})]),_:1})):se("",!0)]}),_:1}),e(B,{label:"\u6837\u5F0F\u8BBE\u7F6E",name:"styles"},{default:t(()=>[e(_,{label:"\u9ED8\u8BA4\u989C\u8272"},{default:t(()=>[e(k,{class:"max-w-[400px]",modelValue:n(o).style.default_color,"onUpdate:modelValue":u[1]||(u[1]=i=>n(o).style.default_color=i),"default-color":"#999999"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u9009\u4E2D\u989C\u8272"},{default:t(()=>[e(k,{class:"max-w-[400px]",modelValue:n(o).style.selected_color,"onUpdate:modelValue":u[2]||(u[2]=i=>n(o).style.selected_color=i),"default-color":"#4173ff"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})])])]),_:1}),Z((f(),U(M,{class:"mt-4",fixed:!1},{default:t(()=>[e(D,{type:"primary",onClick:p},{default:t(()=>[V("\u4FDD\u5B58")]),_:1})]),_:1})),[[j,["decorate:tabbar:save"]]])])}}});const St=ce(Ie,[["__scopeId","data-v-11220d71"]]);export{St as default};