Files
caszl_server/public/admin/assets/tabbar.6e339495.js

2 lines
6.9 KiB
JavaScript
Raw Permalink Normal View History

2023-11-01 22:35:52 +08:00
import{_ as O}from"./index.d4250685.js";import{s as Q,C as $,w as I,x as W,y as q,D as G,F as H,I as J}from"./element-plus.647a8209.js";import{d as v,e as K,o as p,c as f,V as e,u as h,k as U,M as o,T as b,a0 as X,ag as Y,a as l,W as Z,a8 as ee,$ as te,U as oe,Q as le,L as S,S as ae,O as se,t as ne,b9 as ue,b8 as re}from"./@vue.cab01781.js";import{_ as de}from"./index.84223170.js";import{_ as ie}from"./picker.1093dea9.js";import{_ as ce}from"./picker.6f5ae144.js";import{f as y,b as me,d as pe}from"./index.07ed71c2.js";import{b as _e,c as fe}from"./decoration.b1fda6c4.js";import{D as be}from"./vuedraggable.e40a4a0f.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.3e03c95a.js";import"./axios.8f2cebae.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.c7044f0a.js";import"./index.f256a2b3.js";import"./usePaging.36573893.js";import"./lodash.60922569.js";import"./index.1a0b88d7.js";import"./index.vue_vue_type_script_setup_true_lang.e080a515.js";import"./vue3-video-play.05975c53.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.506082b2.js";import"./color.ec87a2fc.js";import"./clone.517527ce.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.765d7087.js";import"./vue-clipboard3.50e4b963.js";import"./clipboard.0c5c6b0b.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";import"./vue.e927b22a.js";import"./sortablejs.b7960cb7.js";const xe={class:"color-picker flex flex-1"},Fe=b("\u91CD\u7F6E"),ge=v({__name:"index",props:{modelValue:{type:String},defaultColor:{type:String}},emits:["update:modelValue"],setup(i,{emit:D}){const x=i,t=K({get(){return x.modelValue},set(_){D("update:modelValue",_)}}),F=["#409EFF","#28C76F","#EA5455","#FF9F43","#01CFE8","#4A5DFF"],g=()=>{t.value=x.defaultColor};return(_,d)=>{const V=Q,a=$,n=I;return p(),f("div",xe,[e(V,{modelValue:h(t),"onUpdate:modelValue":d[0]||(d[0]=c=>U(t)?t.value=c:null),predefine:F},null,8,["modelValue"]),e(a,{modelValue:h(t),"onUpdate:modelValue":d[1]||(d[1]=c=>U(t)?t.value=c:null),class:"mx-[10px] flex-1",type:"text",readonly:""},null,8,["modelValue"]),e(n,{type:"text",onClick:g},{default:o(()=>[Fe]),_:1})])}}}),E=i=>(ue("data-v-d9bf29cd"),i=i(),re(),i),Ve={class:"decoration-tabbar min-w-[800px]"},Ce={class:"flex h-full items-start"},ye={class:"pages-preview mx-[30px]"},he={class:"tabbar flex"},ve=["src"],Ee={class:"leading-3 text-[12px] mt-[4px]"},De={class:"flex-1"},Be=E(()=>l("div",{class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2"},[b(" \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)),ke={class:"mb-[18px]"},Ae={class:"bg-fill-light w-full p-4 mt-4"},we={class:"upload-btn w-[60px] h-[60px]"},Ue=E(()=>l("span",{class:"text-xs leading-5"}," \u672A\u9009\u4E2D ",-1)),Se={class:"upload-btn w-[60px] h-[60px]"},$e=E(()=>l("span",{class:"text-xs leading-5"}," \u9009\u4E2D ",-1)),Ie=b(" \u6DFB\u52A0\u5BFC\u822A "),Te=b("\u4FDD\u5B58"),ze=v({name:"decorationTabbar"}),Ne=v({...ze,setup(i){const t=X({style:{defaultColor:"",selectedColor:""},list:[{name:"",selected:"",unselected:"",link:{}},{name:"",selected:"",unselected:"",link:{}}]}),F=()=>{var a;((a=t.list)==null?void 0:a.length)<5?t.list.push({name:"",selected:"",unselected:"",link:{}}):y.msgError(`\u6700\u591A\u6DFB\u52A0${5}\u4E2A`)},g=a=>{var n;if(((n=t.list)==null?void 0:n.length)<=2)return y.msgError(`\u6700\u5C11\u4FDD\u7559${2}\u4E2A`);t.list.splice(a,1)},_=a=>a.relatedContext.index!=0,d=async()=>{const a=await _e();t.list=a.list,t.style=a.style},V=async()=>{await fe(ne(t)),d(),y.msgSuccess("\u4FDD\u5B