UNPKG

h_ui

Version:

A Vue.js 2.0 UI Components Framework

1 lines 5.4 kB
!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(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},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=858)}({32:function(e,n){e.exports=t},4:function(t,e,n){"use strict";function r(t,e,n,r,o,u,i,a){var s,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),u&&(l._scopeId="data-v-"+u),i?(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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):o&&(s=a?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(l.functional){l._injectStyles=s;var c=l.render;l.render=function(t,e){return s.call(e),c(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},425:function(t,e,n){"use strict";n.r(e);var r=n(426),o=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(u);e.default=o.a},426:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"Breadcrumb",props:{separator:{type:String,default:"/"}},computed:{classes:function(){return"".concat("h-breadcrumb")}},mounted:function(){this.updateChildren()},updated:function(){var t=this;this.$nextTick((function(){t.updateChildren()}))},methods:{updateChildren:function(){var t=this;this.$children.forEach((function(e){e.separator=t.separator}))}},watch:{separator:function(){this.updateChildren()}}};e.default=r},427:function(t,e,n){"use strict";n.r(e);var r=n(428),o=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(u);e.default=o.a},428:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="h-breadcrumb-item",o={name:"BreadcrumbItem",props:{href:{type:String},replace:{type:Boolean,default:!1}},data:function(){return{separator:"",showSeparator:!1}},computed:{linkClasses:function(){return"".concat(r,"-link")},separatorClasses:function(){return"".concat(r,"-separator")}},mounted:function(){this.showSeparator=void 0!==this.$slots.separator},methods:{handleClick:function(){this.$router?this.replace?this.$router.replace(this.href):this.$router.push(this.href):window.location.href=this.href}}};e.default=o},710:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.classes},[t._t("default")],2)},o=[];r._withStripped=!0},711:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[t.href?n("a",{class:t.linkClasses,on:{click:t.handleClick}},[t._t("default")],2):n("span",{class:t.linkClasses},[t._t("default")],2),t._v(" "),t.showSeparator?n("span",{class:t.separatorClasses},[t._t("separator")],2):n("span",{class:t.separatorClasses,domProps:{innerHTML:t._s(t.separator)}})])},o=[];r._withStripped=!0},8:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},858:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(859)),u=r(n(860)),i=n(32);o.default.install=function(t,e){(0,i.setGlobal)(t,e),t.component("HBreadcrumb",o.default),t.component("Breadcrumb",o.default),t.component("HBreadcrumbItem",u.default),t.component("BreadcrumbItem",u.default)},o.default.Item=u.default;var a=o.default;e.default=a},859:function(t,e,n){"use strict";n.r(e);var r=n(710),o=n(425);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);var i=n(4),a=Object(i.a)(o.default,r.a,r.b,!1,null,null,null);e.default=a.exports},860:function(t,e,n){"use strict";n.r(e);var r=n(711),o=n(427);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);var i=n(4),a=Object(i.a)(o.default,r.a,r.b,!1,null,null,null);e.default=a.exports}})}));