UNPKG

hel-tpl-remote-vue3-comps-ts

Version:

A simple remote vue3 comp template(typescript、dev with vite or webpack, build with webpack ), see [online usage](https://codesandbox.io/s/demo-load-remote-vue3-comp-2fd34s?file=/src/main.js)

41 lines (37 loc) 768 B
<template> <div class="hello"> <img alt="Vue logo" src="../assets/logo.png"> <h1>{{ msg }}</h1> <h3>hel-micro</h3> <p> A module federation SDK which is unrelated to tool chain for module consumer. checkout the <a href="https://tnfe.github.io/hel/" target="_blank" rel="noopener">hel-micro documentation</a>. </p> </div> </template> <script lang="ts"> import { defineComponent } from 'vue' export default defineComponent({ name: 'HelloWorld', props: { msg: String } }) </script> <!-- Add "scoped" attribute to limit CSS to this component only --> <style scoped> h3 { margin: 40px 0 0; } ul { list-style-type: none; padding: 0; } li { display: inline-block; margin: 0 10px; } a { color: #42b983; } </style>