1import{e,h as t,l as r,A as n,bd as c,be as a,bf as o,$ as s}from"./BH9vJ0M6.js";var l="undefined"==typeof window;var u={name:{type:String,default:""},size:{type:String,default:void 0},url:{type:[String,Array],default:void 0},loadDefaultIcons:{type:Boolean,default:!0},onClick:Function};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var{classPrefix:p}=c,v=s(e({name:"Icon",props:u,setup(e,c){var{attrs:o}=c,s=n(()=>e.size),u=n(()=>e.name||""),{className:i,style:v}=a(s),y=n(()=>{var t=[];return t=e.url instanceof Array?e.url.concat():[e.url],e.loadDefaultIcons&&t.push("https://tdesign.gtimg.com/icon/0.4.2/fonts/index.js"),t}),d=n(()=>["".concat(p,"-icon"),"".concat(p,"-icon-").concat(u.value),i.value]),b=n(()=>f(f({},v.value),o.style));t(()=>{Array.from(new Set(y.value)).forEach(e=>{!function(e,t){if(!l&&document&&e&&"string"==typeof e&&!(document.querySelectorAll(".".concat(t,'[src="').concat(e,'"]')).length>0)){var r=document.createElement("script");r.setAttribute("class",t),r.setAttribute("src",e),document.body.appendChild(r)}}(e,"".concat(p,"-svg-js-stylesheet--unique-class"))})});var g=n(()=>({class:d.value,style:b.value,onClick:t=>{var r;return null===(r=e.onClick)||void 0===r?void 0:r.call(e,{e:t})}}));return()=>r("svg",g.value,r("use",{href:e.url?"#".concat(u.value):"#t-icon-".concat(u.value)}))}}),"TIcon");export{v as I};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.