multiStoreAdmin/build/store/assets/style.90e3433b.js

2 lines
2.5 KiB
JavaScript

import{_ as w}from"./index.dbd0126e.js";import{x as B,y as T,I as D,w as h}from"./element-plus.9175fe58.js";import{a as E,s as k}from"./decoration.27da8197.js";import{_ as N}from"./mobile-style.vue_vue_type_script_setup_true_lang.7a850020.js";import{d as F,r as p,b as I,i as O,o as n,c as d,W as m,O as e,a as P,u,j as U,V as c,a7 as A,M as _,R as J,T as L}from"./@vue.c3e77981.js";import"./index.026c5631.js";import"./@vueuse.a48d0173.js";import"./lodash.6c5d06b3.js";import"./axios.13991fdc.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"./@element-plus.12c58ce2.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"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.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"./index.vue_vue_type_script_setup_true_lang.a4bd6b7c.js";import"./theme-picker.db2e489e.js";const M={class:"mt-[-10px]"},Bt=F({__name:"style",setup(R){const a=p(0),s=p([{name:"\u79FB\u52A8\u7AEF",id:5,component:N,data:{themeColorId:1,topTextColor:"white",navigationBarColor:"",themeColor1:"",themeColor2:"",buttonColor:"white"}}]),o=I(()=>s.value[a.value]||{}),l=async()=>{const i=await E({id:o.value.id});o.value.data=JSON.parse(i.data)},f=async()=>{await k({id:o.value.id,type:o.value.id,data:JSON.stringify(o.value.data)}),l()};return O(async()=>{await l()}),(i,r)=>{const b=B,v=T,C=D,y=h,V=w;return n(),d(c,null,[m(C,{shadow:"never",class:"!border-none"},{default:e(()=>[P("div",M,[m(v,{modelValue:u(a),"onUpdate:modelValue":r[0]||(r[0]=t=>U(a)?a.value=t:null),onTabChange:r[1]||(r[1]=()=>{})},{default:e(()=>[(n(!0),d(c,null,A(u(s),(t,g)=>(n(),_(b,{key:t.id,label:t.name,name:g},{default:e(()=>[(n(),_(J(t.component),{modelValue:t.data,"onUpdate:modelValue":x=>t.data=x},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])]),_:1}),m(V,{class:"mt-4",fixed:!0},{default:e(()=>[m(y,{type:"primary",onClick:f},{default:e(()=>[L("\u4FDD\u5B58")]),_:1})]),_:1})],64)}}});export{Bt as default};