index-6e9b5fbc.js 3.4 KB

12
  1. import{aj as h,o as u,b as d,d as i,G as k,O as S,D as p,u as s,e as C,a2 as c,P as w,bZ as z,i as I,f as r,ck as $,cc as Z,a as m}from"./index-312d0758.js";import{E as B}from"./el-button-5fd5d56e.js";import{u as l,a}from"./ui-395e0251.js";import{b as f}from"./route-block-83d24a4e.js";import{E}from"./index-8db4c46a.js";import"./index-7588b595.js";import"./plugin-vue_export-helper-1cff8a04.js";import"./index-a787320c.js";import"./use-form-item-01b63eaa.js";import"./constants-8ece7a3d.js";import"./index-1da7ed1a.js";import"./use-form-common-props-714f341f.js";import"./typescript-c7dac87b.js";const N={class:"uiModify"},V=i("div",{style:{"padding-bottom":"10px"}}," 更换主图颜色: ",-1),j={style:{display:"flex","justify-content":"flex-start","flex-wrap":"wrap",width:"400px"}},M=["onClick"],D=i("div",{style:{height:"17px",width:"17px","background-color":"black",float:"right",color:"white","line-height":"17px","text-align":"center","font-size":"12px","font-weight":"bold"}}," √ ",-1),F=[D],T={style:{"padding-top":"10px"}},U=i("br",null,null,-1),A={style:{"padding-top":"20px"}},G={__name:"index",setup(L){const g=["#ffb900","#ff8c00","#f7630c","#ca5010","#da3b01","#ef6950","#d13438","#ff4343","#e74856","#e81123","#ea005e","#c30052","#e3008c","#bf0077","#c239b3","#9a0089","#2563eb","#0063b1","#8e8cd8","#6b69d6","#8764b8","#744da9","#b146c2","#881798","#0099bc","#2d7d9a","#00b7c3","#038387","#00b294","#018574","#00cc6a","#10893e","#7a7574","#5d5a58","#68768a","#515c6b","#567c73","#486860","#498205","#107c10","#767676","#4c4a48","#69797e","#4a5459","#647c64","#525e54","#847545","#7e735f"];h(()=>{l.value=localStorage.getItem("uiColor")==null?"#2563eb":localStorage.getItem("uiColor"),a.value=localStorage.getItem("uiZoomScale")==null?"1":localStorage.getItem("uiZoomScale")});function b(){l.value=localStorage.getItem("uiColor")==null?"#2563eb":localStorage.getItem("uiColor"),a.value=localStorage.getItem("uiZoomScale")==null?"1":localStorage.getItem("uiZoomScale")}function y(){localStorage.setItem("uiColor",l.value),localStorage.setItem("uiZoomScale",a.value),E({message:"修改成功",type:"success"})}let o=Number.parseFloat(document.body.style.zoom)||1;function x(){o=o-.1,a.value=o,document.body.style.zoom=o}function v(){o=o+.1,a.value=o,document.body.style.zoom=o}function _(){o=1,a.value=o,document.body.style.zoom=o}return(O,e)=>{const n=B;return u(),d("div",N,[V,i("div",j,[(u(),d(k,null,S(g,t=>i("div",{class:"item",style:p([{height:"40px",width:"40px",display:"flex","justify-content":"center","align-items":"center",cursor:"pointer"},`background-color:${t==s(l)?"black":t}`]),onClick:P=>l.value=t},[t==s(l)?(u(),d("div",{key:0,style:p([{height:"34px",width:"34px"},`background-color:${t}`])},F,4)):C("",!0)],12,M)),64))]),i("div",T,[c(" 自定义颜色:"),w(i("input",{"onUpdate:modelValue":e[0]||(e[0]=t=>I(l)?l.value=t:null),type:"color"},null,512),[[z,s(l)]])]),U,i("div",null,[c(" 字体大小: "),r(n,{size:"small",icon:s($),style:{height:"35px",width:"35px"},onClick:e[1]||(e[1]=t=>x())},null,8,["icon"]),r(n,{size:"small",icon:s(Z),style:{height:"35px",width:"35px"},onClick:e[2]||(e[2]=t=>v())},null,8,["icon"]),r(n,{size:"small",style:{height:"35px",width:"35px"},onClick:e[3]||(e[3]=t=>_())},{default:m(()=>[c(" 重置 ")]),_:1})]),i("div",A,[r(n,{onClick:e[4]||(e[4]=t=>b())},{default:m(()=>[c(" 取消 ")]),_:1}),r(n,{type:"primary",onClick:e[5]||(e[5]=t=>y())},{default:m(()=>[c(" 确定 ")]),_:1})])])}}};typeof f=="function"&&f(G);export{G as default};