You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
1 year ago
|
import{M as y,N as n,ax as h,aj as m,d as u,al as l,ay as f,az as o,aA as p}from"./index-93dfb385.js";function T(){const{$storage:t,$config:e}=y(),r=()=>{h().multiTagsCache&&(!t.tags||t.tags.length===0)&&(t.tags=m),t.layout||(t.layout={layout:(e==null?void 0:e.Layout)??"vertical",theme:(e==null?void 0:e.Theme)??"default",darkMode:(e==null?void 0:e.DarkMode)??!1,sidebarStatus:(e==null?void 0:e.SidebarStatus)??!0,epThemeColor:(e==null?void 0:e.EpThemeColor)??"#409EFF"}),t.configure||(t.configure={grey:(e==null?void 0:e.Grey)??!1,weak:(e==null?void 0:e.Weak)??!1,hideTabs:(e==null?void 0:e.HideTabs)??!1,showLogo:(e==null?void 0:e.ShowLogo)??!0,showModel:(e==null?void 0:e.ShowModel)??"smart",multiTagsCache:(e==null?void 0:e.MultiTagsCache)??!1})},a=n(()=>t==null?void 0:t.layout.layout),s=n(()=>t.layout);return{layout:a,layoutTheme:s,initStorage:r}}function i(t,e){const r=/^IF-/;if(r.test(t)){const a=t.split(r)[1],s=a.slice(0,a.indexOf(" ")==-1?a.length:a.indexOf(" ")),d=a.slice(a.indexOf(" ")+1,a.length);return u({name:"FontIcon",render(){return l(f,{icon:s,iconType:d,...e})}})}else return typeof t=="function"||typeof(t==null?void 0:t.render)=="function"?t:typeof t=="object"?u({name:"OfflineIcon",render(){return l(o,{icon:t,...e})}}):u({name:"Icon",render(){const a=t&&t.includes(":")?p:o;return l(a,{icon:t,...e})}})}export{i as a,T as u};
|