UNPKG

hel-tpl-remote-vue-comps

Version:

可供`hel-micro`消费的远程vue组件示例

2 lines 2.21 kB
(window["helJsonp_hel-tpl-remote-vue-comps_1743384506857"]=window["helJsonp_hel-tpl-remote-vue-comps_1743384506857"]||[]).push([["chunk-4926f535"],{"0cf7":function(t,e,n){},"13cd":function(t,e,n){},"6c72":function(t,e,n){"use strict";n.r(e);var o={name:"HelloWorld",components:{},props:{msg:String}};n("f152");function s(t,e,n,o,s,r,i,c){var l,p="function"==typeof t?t.options:t;if(e&&(p.render=e,p.staticRenderFns=n,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),i?(l=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__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},p._ssrRegister=l):s&&(l=c?function(){s.call(this,(p.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(p.functional){p._injectStyles=l;var a=p.render;p.render=function(t,e){return l.call(e),a(t,e)}}else{var u=p.beforeCreate;p.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:p}}var r=s(o,(function(){var t=this._self._c;return t("div",{staticClass:"hello"},[t("hr"),t("h1",[this._v(this._s(this.msg))]),t("h2",[this._v("I am a remote vue compoent")])])}),[],!1,null,"11b3116c",null).exports,i={name:"App",components:{HelloWorld:r},props:{name:String}},c=(n("d3fd"),{App:s(i,(function(){var t=this._self._c;return t("div",{attrs:{id:"app"}},[t("img",{attrs:{alt:"Vue logo",src:n("cf05")}}),t("h2",[this._v("name: "+this._s(this.name))]),t("HelloWorld",{attrs:{msg:"Welcome to view project hel-tpl-remote-vue-comp ( from unpkg deploy )"}})],1)}),[],!1,null,null,null).exports,HelloWorld:r});e.default=c},a581:function(t,e,n){"use strict";n.r(e);var o=n("8bbf"),s=n.n(o),r=n("6c72");const i=Object({NODE_ENV:"production",BASE_URL:"https://unpkg.com/hel-tpl-remote-vue-comps@1.5.3/hel_dist/"}).VUE_APP_COMP||"App";s.a.version.startsWith("3.")?s.a.createApp(r.default[i]).mount("#app"):new s.a({render:t=>t(r.default[i])}).$mount("#app")},cf05:function(t,e,n){t.exports=n.p+"img/logo.82b9c7a5.png"},d3fd:function(t,e,n){"use strict";n("13cd")},f152:function(t,e,n){"use strict";n("0cf7")}}]); //# sourceMappingURL=chunk-4926f535.114150aa.js.map