getStyleSheets.6df20afd.js 1.4 KB

12
  1. import{n as r}from"./vue.e1d8f8c6.js";import{A as i}from"./index.5ec7a9d7.js";const f=()=>new Promise((l,c)=>{r(()=>{const n=document.styleSheets;let s=[],o=[];for(let e=0;e<n.length;e++)n[e].href&&n[e].href.indexOf("at.alicdn.com")>-1&&s.push(n[e]);for(let e=0;e<s.length;e++)for(let t=0;t<s[e].cssRules.length;t++)s[e].cssRules[t].selectorText&&s[e].cssRules[t].selectorText.indexOf(".icon-")>-1&&o.push(`${s[e].cssRules[t].selectorText.substring(1,s[e].cssRules[t].selectorText.length).replace(/\:\:before/gi,"")}`);o.length>0?l(o):c("未获取到值,请刷新重试")})}),u=()=>new Promise((l,c)=>{r(()=>{const n=i,s=[];for(const o in n)s.push(`ele-${n[o].name}`);s.length>0?l(s):c("未获取到值,请刷新重试")})}),h=()=>new Promise((l,c)=>{r(()=>{const n=document.styleSheets;let s=[],o=[];for(let e=0;e<n.length;e++)n[e].href&&n[e].href.indexOf("netdna.bootstrapcdn.com")>-1&&s.push(n[e]);for(let e=0;e<s.length;e++)for(let t=0;t<s[e].cssRules.length;t++)s[e].cssRules[t].selectorText&&s[e].cssRules[t].selectorText.indexOf(".fa-")===0&&s[e].cssRules[t].selectorText.indexOf(",")===-1&&/::before/.test(s[e].cssRules[t].selectorText)&&o.push(`${s[e].cssRules[t].selectorText.substring(1,s[e].cssRules[t].selectorText.length).replace(/\:\:before/gi,"")}`);o.length>0?l(o.reverse()):c("未获取到值,请刷新重试")})}),g={ali:()=>f(),ele:()=>u(),awe:()=>h()},a=g;export{a as i};