2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{_ as J}from"./index.724d68bf.js";import{s as K,C as S,w as T,x as M,y as Q,D as W,F as G,J as H}from"./element-plus.ff90c99c.js";import{d as v,b as O,o as _,c as b,W as e,u as n,j as w,Q as o,U as x,$ as X,aq as Y,a as l,F as Z,a9 as ee,L as te,V as oe,K as le,P as U,T as ae,R as se,t as ne,bg as ue,bf as re}from"./@vue.f8dfc830.js";import{_ as ie}from"./index.d008063a.js";import{_ as de}from"./picker.03ba4df7.js";import{_ as me}from"./picker.d67b6c0e.js";import{f as $,b as pe,d as ce}from"./index.69a22209.js";import{b as _e,c as fe}from"./decoration.3cc782f5.js";import{D as be}from"./vuedraggable.99ce9db3.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./index.928157d8.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./index.4968b493.js";import"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import"./index.6016615b.js";import"./index.vue_vue_type_script_setup_true_lang.ec118b31.js";import"./usePaging.bd7a7dec.js";import"./vue3-video-play.5592bdaa.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./vue.80fb6650.js";import"./sortablejs.76b408b5.js";const xe={class:"color-picker flex flex-1"},Fe=v({__name:"index",props:{modelValue:{type:String},defaultColor:{type:String}},emits:["update:modelValue"],setup(m,{emit:C}){const F=m,t=O({get(){return F.modelValue},set(f){C("update:modelValue",f)}}),V=["#409EFF","#28C76F","#EA5455","#FF9F43","#01CFE8","#4A5DFF"],g=()=>{t.value=F.defaultColor};return(f,d)=>{const y=K,a=S,u=T;return _(),b("div",xe,[e(y,{modelValue:n(t),"onUpdate:modelValue":d[0]||(d[0]=p=>w(t)?t.value=p:null),predefine:V},null,8,["modelValue"]),e(a,{modelValue:n(t),"onUpdate:modelValue":d[1]||(d[1]=p=>w(t)?t.value=p:null),class:"mx-[10px] flex-1",type:"text",readonly:""},null,8,["modelValue"]),e(u,{type:"text",onClick:g},{default:o(()=>[x("\u91CD\u7F6E")]),_:1})])}}}),E=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=E(()=>l("div",{class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2"},[x(" \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)),Ae={class:"mb-[18px]"},Be={class:"bg-fill-light w-full p-4 mt-4"},ke={class:"upload-btn w-[60px] h-[60px]"},we=E(()=>l("span",{class:"text-xs leading-5"}," \u672A\u9009\u4E2D ",-1)),Ue={class:"upload-btn w-[60px] h-[60px]"},$e=E(()=>l("span",{class:"text-xs leading-5"}," \u9009\u4E2D ",-1)),Se=v({name:"decorationTabbar"}),Te=v({...Se,setup(m){const t=X({style:{default_color:"",selected_color:""},list:[{name:"",selected:"",unselected:"",link:{}},{name:"",selected:"",unselected:"",link:{}}]}),V=()=>{var a;((a=t.list)==null?void 0:a.length)<5?t.list.push({name:"",selected:"",unselected:"",link:{}}):$.msgError(`\u6700\u591A\u6DFB\u52A0${5}\u4E2A`)},g=a=>{var u;if(((u=t.list)==null?void 0:u.length)<=2)return $.msgError(`\u6700\u5C11\u4FDD\u7559${2}\u4E2A`);t.list.splice(a,1)},f=a=>a.relatedContext.index!=0,d=async()=>{const a=await _e();t.list=a.list,t.style=a.style},y=async()=>{await fe(ne(t)),d()};return d(),(a,u)=>{const p=pe,h=me,c=W,z=S,I=de,P=ie,D=T,A=M,B=Fe,N=Q,R=G,j=H,L=J,q=Y("perms");return _(),b("div",Ve,[e(j,{shadow:"never",class:"!border-none flex-1","body-style":{height:"100%"}},{default:o(()=>[l("div",ge,[l("div",ye,[l("div",ve,[(_(!0),b(Z,null,ee(n(t).list,(r,s)=>(_(),b("div",{class:"tabbar-item flex flex-col justify-center items-center flex-1",key:s,style:te({color:n(t).style.default_color})},[l("img",{class:"w-[22px] h-[22px]",src:r.unselected,alt:""},null,8,Ee),l("div",Ce,oe(r.name),1)],4))),128))])]),l("div",he,[De,e(R,{class:"mt-4","label-width":"70px"},{default:o(()=>[e(N,{"model-value":"content"},{default:o(()=>[e(A,{label:"\u5BFC\u822A\u56FE\u7247",name:"content"},{default:o(()=>{var r;return[l("div",Ae,[e(n(be),{class:"draggable",modelValue:n(t).list,"onUpdate:modelValue":u[0]||(u[0]=s=>n(t).list=s),animation:"300",draggable:".draggable",move:f},{item:o(({element:s,index:k})=>[e(P,{onClose:i=>g(k),class:le(["max-w-[400px]",{draggable:k!=0}])},{default:o(()=>[l("div",Be,[e(c,{label:"\u5BFC\u822A\u56FE\u6807"},{default:o(()=>[e(h,{modelValue:s.unselected,"onUpdate:modelValue":i=>s.unselected=i,"upload-class":"bg-body",size:"60px"},{upload:o(()=>[l("div",ke,[e(p,{name:"el-icon-Plus",size:16}),we])]),_:2},1032,["modelValue","onUpdate:modelValue"]),e(h,{modelValue:s.selected,"onUpdate:modelValue":i=>s.selected=i,"upload-class":"bg-body",size:"60px"},{upload:o(()=>[l("div",Ue,[e(p,{name:"el-icon-Plus",size:16}),$e])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(c,{label:"\u5BFC\u822A\u540D\u79F0"},{default:o(()=>[e(z,{modelValue:s.name,"onUpdate:modelValue":i=>s.name=i,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(c,{label:"\u94FE\u63A5\u5730\u5740"},{default:o(()=>[e(I,{modelValue:s.link,"onUpdate:modelValue":i=>s.link=i},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1032,["onClose","class"])]),_:1},8,["modelValue"])]),((r=n(t).list)==null?void 0:r.length)<5?(_(),U(c,{key:0,"label-width":"0"},{default:o(()=>[e(D,{type:"primary",onClick:V},{default:o(()=>[x(" \u6DFB\u52A0\u5BFC\u822A ")]),_:1})]),_:1})):ae("",!0)]}),_:1}),e(A,{label:"\u6837\u5F0F\u8BBE\u7F6E",name:"styles"},{default:o(()=>[e(c,{label:"\u9ED8\u8BA4\u989C\u8272"},{default:o(()=>[e(B,{class:"max-w-[400px]",modelValue:n(t).style.default_color,"onUpdate:modelValue":u[1]||(u[1]=r=>n(t).style.default_color=r),"default-color":"#999999"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u9009\u4E2D\u989C\u8272"},{default:o(()=>[e(B,{class:"max-w-[400px]",modelValue:n(t).style.selected_color,"onUpdate:modelValue":u[2]||(u[2]=r=>n(t).style.selected_color=r),"default-color":"#4173ff"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})])])]),_:1}),se((_(),U(L,{class:"mt-4",fixed:!1},{default:o(()=>[e(D,{type:"primary",onClick:y},{default:o(()=>[x("\u4FDD\u5B58")]),_:1})]),_:1})),[[q,["decorate:tabbar:save"]]])])}}});const Tt=ce(Te,[["__scopeId","data-v-11220d71"]]);export{Tt as default};
|