【文件属性】:
文件名称:vue-uhtml:由@vuereactivity和uhtml驱动的自定义元素(受vue-lit启发)
文件大小:123KB
文件格式:ZIP
更新时间:2021-05-16 00:06:05
JavaScript
vue-uhtml(“ vue micro”)
可恢复的React式自定义元素框架。 借用并从中获取灵感。 由和
例子
< my> my>
< script type =" module " >
import {
defineComponent ,
reactive ,
html ,
onMounted ,
onUpdated ,
onUnmounted
} from "https://unpkg.com/vue-uhtml?module" ;
defineComponent ( {
name : "my-component" ,
setup : ( ) => {
const state = reactive ( {
text : "hello" ,
show : fals
【文件预览】:
vue-uhtml-main
----rollup.config.js(2KB)
----package.json(2KB)
----.github()
--------workflows()
----test()
--------my-component.test.js(2KB)
--------my-component.js(2KB)
----src()
--------ui-components.js(5KB)
--------utils.js(3KB)
--------index.js(5KB)
--------index.html(6KB)
--------main.css(59B)
----.eslintrc.js(535B)
----.gitignore(242B)
----tailwind.config.js(212B)
----README.md(2KB)
----yarn.lock(282KB)
----postcss.config.js(83B)
----babel.config.js(211B)