1
0
mirror of https://github.com/coreui/coreui-icons.git synced 2025-08-23 08:42:52 +02:00

feat: add vue build files

This commit is contained in:
woothu
2019-06-17 11:54:29 +02:00
parent 33f7282fbb
commit 62bad94d25
9 changed files with 13190 additions and 0 deletions

2
vue/dist/coreui-icons-vue.umd.min.js vendored Normal file
View File

@@ -0,0 +1,2 @@
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["coreui-icons-vue"]=t():e["coreui-icons-vue"]=t()})("undefined"!==typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},fae3:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{style:e.style,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:e.viewBox},domProps:{innerHTML:e._s(e.icon.svgContent)}})},i=[],s={name:"CIcon",icons:{},props:{name:String,content:[String,Array],fill:String,background:String},data(){return{lineHeight:null}},mounted(){this.$nextTick(()=>{if(this.$el&&this.code){const e=window.getComputedStyle(this.$el,null);this.lineHeight=e.getPropertyValue("line-height")}})},computed:{iconName(){const e=this.name&&this.name.includes("-");return e?this.toCamelCase(this.name):this.name},code(){return this.content||this.$options.icons[this.iconName]},icon(){if(Array.isArray(this.code)){const e=this.code.length>1?this.code[0]:"64 64",t=this.code.length>1?this.code[1]:this.code[0];return{coordinates:e,svgContent:t}}return{coordinates:"64 64",svgContent:this.code}},viewBox(){return this.$attrs.viewBox||`0 0 ${this.icon.coordinates}`},autoDimensions(){const e=!this.$attrs.height&&!this.$attrs.width;return e?{height:this.lineHeight}:{}},style(){return Object.assign({},this.autoDimensions,{fill:this.fill||"currentColor",background:this.background})}},methods:{toCamelCase(e){return e.replace(/([-_][a-z])/gi,e=>{return e.toUpperCase().replace("-","")})}}},c=s;function u(e,t,n,r,o,i,s,c){var u,a="function"===typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=u):o&&(u=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(a.functional){a._injectStyles=u;var l=a.render;a.render=function(e,t){return u.call(t),l(e,t)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:a}}var a=u(c,o,i,!1,null,null,null),l=a.exports;const d={install(e,t){l.icons=t,e.component("CIcon",l)}};n.d(t,"CIcon",function(){return l}),n.d(t,"CIconPlugin",function(){return d})}})});
//# sourceMappingURL=coreui-icons-vue.umd.min.js.map