multiStoreAdmin/build/store/assets/style.6a680479.js

2 lines
2.6 KiB
JavaScript
Raw Normal View History

2024-09-19 11:09:33 +08:00
import{_ as w}from"./index.d5f74f82.js";import{x as B,y as D,J as T,w as h}from"./element-plus.6b125791.js";import{a as E,s as k}from"./decoration.ee707679.js";import{_ as F}from"./mobile-style.vue_vue_type_script_setup_true_lang.aa91a93d.js";import{d as N,r as p,b as P,i as U,o as n,c as d,W as m,Q as e,a as J,u,j as S,F as c,a9 as A,P as _,S as I,U as L}from"./@vue.340249d8.js";import"./index.8eb121a3.js";import"./@vueuse.e3650918.js";import"./lodash.ab1d8f92.js";import"./axios.ebd1d4d0.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.7a4c1284.js";import"./color.10b8b3bd.js";import"./clone.623e4e2d.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.558a564d.js";import"./nprogress.518a19eb.js";import"./vue-clipboard3.c098b37d.js";import"./clipboard.a67a48a7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./lodash-es.edba6135.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.6b964ca4.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.vue_vue_type_script_setup_true_lang.490629d7.js";import"./theme-picker.0a84ab75.js";const O={class:"mt-[-10px]"},Dt=N({__name:"style",setup(j){const a=p(0),s=p([{name:"\u79FB\u52A8\u7AEF",id:5,component:F,data:{themeColorId:1,topTextColor:"white",navigationBarColor:"",themeColor1:"",themeColor2:"",buttonColor:"white"}}]),o=P(()=>s.value[a.value]||{}),i=async()=>{const l=await E({id:o.value.id});o.value.data=JSON.parse(l.data)},f=async()=>{await k({id:o.value.id,type:o.value.id,data:JSON.stringify(o.value.data)}),i()};return U(async()=>{await i()}),(l,r)=>{const b=B,v=D,C=T,y=h,V=w;return n(),d(c,null,[m(C,{shadow:"never",class:"!border-none"},{default:e(()=>[J("div",O,[m(v,{modelValue:u(a),"onUpdate:modelValue":r[0]||(r[0]=t=>S(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(),_(I(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{Dt as default};