{"version":3,"file":"snowy.mjs","sources":["../../../src/utils/snowy.js"],"sourcesContent":["/**\r\n *  Copyright [2022] [https://www.xiaonuo.vip]\r\n *\tSnowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：\r\n *\t1.请不要删除和修改根目录下的LICENSE文档。\r\n *\t2.请不要删除和修改Snowy源码头部的版权声明。\r\n *\t3.本项目代码可免费商业使用，商业使用请保留源码和相关描述文档的项目出处，作者声明等。\r\n *\t4.分发源码时候，请注明软件出处 https://xiaonuo.vip\r\n *\t5.不可二次分发开源参与同类竞品，如有想法可联系团队xiaonuobase@qq.com商议合作。\r\n *\t6.若您的项目无法满足以上几点，需要更多功能代码，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip\r\n */\r\nimport * as antdvIcons from '@ant-design/icons-vue'\r\nimport {config} from 'elead-ui-tool-v3'\r\nimport * as permission from '@/utils/permission'\r\nimport * as errorHandler from '@/utils/errorHandler'\r\nimport iconsJs from '@/utils/icons'\r\nimport {tool} from 'elead-ui-tool-v3'\r\nimport SnowyFormDesign from 'snowy-form-design'\r\nimport hljsVuePlugin from '@highlightjs/vue-plugin'\r\nexport default {\r\n\tinstall(app) {\r\n\t\t// 挂载全局对象\r\n\t\tapp.config.globalProperties.$CONFIG = config\r\n\t\tapp.config.globalProperties.$TOOL = tool\r\n\t\tapp.config.globalProperties.hasPerm = permission.hasPerm\r\n\t\t// 注册常用组件\r\n\t\t//app.component('STable', STable)\r\n\t\t//app.component('Ellipsis', Ellipsis)\r\n\t\t// 统一注册antdv图标\r\n\t\tfor (const icon in antdvIcons) {\r\n\t\t\tapp.component(icon, antdvIcons[icon])\r\n\t\t}\r\n\t\t// 统一注册自定义全局图标\r\n\t\tapp.use(iconsJs)\r\n\t\t// 注册表单设计器，如果您不需要流程设计相关功能，可以移除以减少体积\r\n\t\tapp.use(SnowyFormDesign)\r\n\t\t// 注册代码高亮组件 （博客：https://blog.csdn.net/weixin_41897680/article/details/124925222）\r\n\t\tapp.use(hljsVuePlugin)\r\n\t\t// 全局代码错误捕捉\r\n\t\tapp.config.errorHandler = errorHandler.errorHandler\r\n\t}\r\n}\r\n"],"names":["permission.hasPerm","iconsJs","errorHandler.errorHandler"],"mappings":";;;;;;;;AAkBA,MAAe,QAAA;AAAA,EACd,QAAQ,KAAK;AAEZ,QAAI,OAAO,iBAAiB,UAAU;AACtC,QAAI,OAAO,iBAAiB,QAAQ;AACpC,QAAI,OAAO,iBAAiB,UAAUA;AAKtC,eAAW,QAAQ,YAAY;AAC9B,UAAI,UAAU,MAAM,WAAW,KAAK;AAAA,IACpC;AAED,QAAI,IAAIC,OAAO;AAEf,QAAI,IAAI,eAAe;AAEvB,QAAI,IAAI,aAAa;AAErB,QAAI,OAAO,eAAeC;AAAAA,EAC1B;AACF;"}