dynamic-components-test
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -248,6 +248,6 @@ /*! | ||
var index = Object.assign({ | ||
var index = { | ||
install: function install(Vue, opts) { | ||
var hasComponentNames = opts && opts.componentNames && opts.componentNames.length; | ||
Object.values(hasComponentNames ? opts.componentNames : components).forEach(function (name) { | ||
Object.keys(hasComponentNames ? opts.componentNames : components).forEach(function (name) { | ||
if (typeof Vue.component === 'function') { | ||
@@ -257,6 +257,10 @@ Vue.component(name, components[name]); | ||
}); | ||
} | ||
} // ...components | ||
}, components); | ||
}; | ||
// export { default as ATitle } from './components/ATitle' | ||
exports.default = index; | ||
exports.ACard = ACard; | ||
exports.ATitle = ATItle; |
@@ -244,6 +244,6 @@ /*! | ||
var index = Object.assign({ | ||
var index = { | ||
install: function install(Vue, opts) { | ||
var hasComponentNames = opts && opts.componentNames && opts.componentNames.length; | ||
Object.values(hasComponentNames ? opts.componentNames : components).forEach(function (name) { | ||
Object.keys(hasComponentNames ? opts.componentNames : components).forEach(function (name) { | ||
if (typeof Vue.component === 'function') { | ||
@@ -253,6 +253,9 @@ Vue.component(name, components[name]); | ||
}); | ||
} | ||
} // ...components | ||
}, components); | ||
}; | ||
// export { default as ATitle } from './components/ATitle' | ||
export default index; | ||
export { ACard, ATItle as ATitle }; |
@@ -250,6 +250,6 @@ /*! | ||
var index = Object.assign({ | ||
var index = { | ||
install: function install(Vue, opts) { | ||
var hasComponentNames = opts && opts.componentNames && opts.componentNames.length; | ||
Object.values(hasComponentNames ? opts.componentNames : components).forEach(function (name) { | ||
Object.keys(hasComponentNames ? opts.componentNames : components).forEach(function (name) { | ||
if (typeof Vue.component === 'function') { | ||
@@ -259,7 +259,11 @@ Vue.component(name, components[name]); | ||
}); | ||
} | ||
} // ...components | ||
}, components); | ||
}; | ||
// export { default as ATitle } from './components/ATitle' | ||
exports.default = index; | ||
exports.ACard = ACard; | ||
exports.ATitle = ATItle; | ||
@@ -266,0 +270,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -6,3 +6,3 @@ /*! | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.dynamicComponentsTest={})}(this,function(e){"use strict";var t=function(e,t,n,o,i,a,r,s,d,c){"boolean"!=typeof r&&(d=s,s=r,r=!1);var l,f="function"==typeof n?n.options:n;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,i&&(f.functional=!0)),o&&(f._scopeId=o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=l):t&&(l=r?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),l)if(f.functional){var m=f.render;f.render=function(e,t){return l.call(t),m(e,t)}}else{var u=f.beforeCreate;f.beforeCreate=u?[].concat(u,l):[l]}return n},n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var o=document.head||document.getElementsByTagName("head")[0],i={};var a=function(e){return function(e,t){return function(e,t){var a=n?t.media||"default":e,r=i[a]||(i[a]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),o.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(s),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var d=r.ids.size-1,c=document.createTextNode(s),l=r.element.childNodes;l[d]&&r.element.removeChild(l[d]),l.length?r.element.insertBefore(c,l[d]):r.element.appendChild(c)}}}(e,t)}},r=t({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("card boladao")])},staticRenderFns:[]},function(e){e&&e("data-v-fd6c75d4_0",{source:".a-card{border-radius:3px;background-color:#fff;box-shadow:1px 1px 4px 0 gray}",map:void 0,media:void 0})},{name:"ACard"},void 0,!1,void 0,a,void 0),s=t({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("title boladao")])},staticRenderFns:[]},function(e){e&&e("data-v-45b5a6c4_0",{source:".a-title{display:flex;margin:0}.a-title>.icon{margin-right:10px;vertical-align:bottom;fill:#000}",map:void 0,media:void 0})},{name:"ATitle"},void 0,!1,void 0,a,void 0),d=Object.freeze({ACard:r,ATitle:s}),c=Object.assign({install:function(e,t){var n=t&&t.componentNames&&t.componentNames.length;Object.values(n?t.componentNames:d).forEach(function(t){"function"==typeof e.component&&e.component(t,d[t])})}},d);e.default=c,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.dynamicComponentsTest={})}(this,function(e){"use strict";var t=function(e,t,n,o,i,a,r,s,d,c){"boolean"!=typeof r&&(d=s,s=r,r=!1);var l,f="function"==typeof n?n.options:n;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,i&&(f.functional=!0)),o&&(f._scopeId=o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=l):t&&(l=r?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),l)if(f.functional){var m=f.render;f.render=function(e,t){return l.call(t),m(e,t)}}else{var u=f.beforeCreate;f.beforeCreate=u?[].concat(u,l):[l]}return n},n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var o=document.head||document.getElementsByTagName("head")[0],i={};var a=function(e){return function(e,t){return function(e,t){var a=n?t.media||"default":e,r=i[a]||(i[a]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),o.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(s),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var d=r.ids.size-1,c=document.createTextNode(s),l=r.element.childNodes;l[d]&&r.element.removeChild(l[d]),l.length?r.element.insertBefore(c,l[d]):r.element.appendChild(c)}}}(e,t)}},r=t({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("card boladao")])},staticRenderFns:[]},function(e){e&&e("data-v-fd6c75d4_0",{source:".a-card{border-radius:3px;background-color:#fff;box-shadow:1px 1px 4px 0 gray}",map:void 0,media:void 0})},{name:"ACard"},void 0,!1,void 0,a,void 0),s=t({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("title boladao")])},staticRenderFns:[]},function(e){e&&e("data-v-45b5a6c4_0",{source:".a-title{display:flex;margin:0}.a-title>.icon{margin-right:10px;vertical-align:bottom;fill:#000}",map:void 0,media:void 0})},{name:"ATitle"},void 0,!1,void 0,a,void 0),d=Object.freeze({ACard:r,ATitle:s}),c={install:function(e,t){var n=t&&t.componentNames&&t.componentNames.length;Object.keys(n?t.componentNames:d).forEach(function(t){"function"==typeof e.component&&e.component(t,d[t])})}};e.default=c,e.ACard=r,e.ATitle=s,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=dynamic-components-test.min.js.map |
{ | ||
"name": "dynamic-components-test", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "test dynamic component", | ||
@@ -5,0 +5,0 @@ "readmeFilename": "README.md", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36012
653