/** * * Icon Library for usage * * Auto generated by /tools/generate-svg-icon.js * * !!! DO NOT MODIFY MANUALLY !!! * * @datetime 2024/7/23 15:42:43 * */ // == collection start const collections = { default: { "icons": { "back": [ "", 0 ] }, "currentColor": "", "$_colorPalette": [ "#323232" ] }, } // == collection end const svglib = {} svglib.registerCollection = (key, lib) => { if (collections[key]) { return } if (typeof lib.registerCollection === 'function') { collections[key] = lib.getCollection('default') } else { collections[key] = lib } } svglib.getCollection = (key = 'default') => { if (!collections[key]) throw new Error(`没有找到名为 ${key} 的图标库。`) return collections[key] } export const SvgIconLib = svglib export default SvgIconLib