h_ui
Version:
A Vue.js 2.0 UI Components Framework
1 lines • 3.95 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("h_ui/dist/lib/util/global.js")):"function"==typeof define&&define.amd?define("h_ui/lib",["h_ui/dist/lib/util/global.js"],e):"object"==typeof exports?exports["h_ui/lib"]=e(require("h_ui/dist/lib/util/global.js")):t["h_ui/lib"]=e(t["h_ui/dist/lib/util/global.js"])}(window,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/lib/",n(n.s=927)}({302:function(t,e,n){"use strict";n.r(e);var o=n(303),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},303:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o="h-icon",i={name:"Icon",props:{name:String,color:{type:String,default:""},size:[Number,String],fontClass:{type:String,default:"iconfont"}},computed:{iconCls:function(){return["".concat(o),"".concat(this.fontClass),"".concat("iconfont"===this.fontClass?"icon":this.fontClass,"-").concat(this.name),"".concat(o,"-").concat(this.name)]},styleCls:function(){var t={};return this.color&&(t.color=this.color),this.size&&(t["font-size"]="".concat(this.size,"px")),t}},methods:{iconClick:function(t){this.$emit("on-click",t)},iconMousedown:function(t){this.$emit("on-mouse-down",t)}}};e.default=i},32:function(e,n){e.exports=t},342:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{class:t.iconCls,style:t.styleCls,on:{click:t.iconClick,mousedown:t.iconMousedown}})},i=[];o._withStripped=!0},4:function(t,e,n){"use strict";function o(t,e,n,o,i,r,u,c){var s,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),u?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},l._ssrRegister=s):i&&(s=c?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var f=l.render;l.render=function(t,e){return s.call(e),f(t,e)}}else{var a=l.beforeCreate;l.beforeCreate=a?[].concat(a,s):[s]}return{exports:t,options:l}}n.d(e,"a",(function(){return o}))},688:function(t,e,n){"use strict";n.r(e);var o=n(342),i=n(302);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var u=n(4),c=Object(u.a)(i.default,o.a,o.b,!1,null,null,null);e.default=c.exports},8:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},927:function(t,e,n){"use strict";var o=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(688)),r=n(32);i.default.install=function(t,e){(0,r.setGlobal)(t,e),t.component("HIcon",i.default),t.component("Icon",i.default)};var u=i.default;e.default=u}})}));