stera:用于在javascript中编写影子dom组件的微型库

时间:2021-02-06 09:46:54
【文件属性】:
文件名称:stera:用于在javascript中编写影子dom组件的微型库
文件大小:327KB
文件格式:ZIP
更新时间:2021-02-06 09:46:54
components webcomponents html-components web-components custom-elements 斯特拉 用于本地Web组件的最小javascript库,开销最小 入门 您可以通过构建工具从npm导入stera或使用esmodules导入。 // Intall with 'npm i stera@1.0.0' import { Component } from 'stera' // or import as an esmodule import { Component } from 'https://unpkg.com/stera/dist/index.js' 然后,您以类似于编写有状态的React组件的方式编写组件。 import { Component , html } fro
【文件预览】:
stera-master
----.eslintrc.json(771B)
----.gitignore(945B)
----package.json(1KB)
----CHANGELOG(334B)
----src()
--------component.ts(1KB)
--------html.ts(1KB)
--------mutationComponent.ts(1KB)
--------index.ts(919B)
----gulpfile.js(513B)
----LICENSE(34KB)
----tsconfig.json(151B)
----.gitmodules(103B)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----examples()
--------counter()
--------jsx()
--------nav()
--------examples.js(381B)
--------card()
--------progressBar()
--------home()
----scripts()
--------docsBuilder.js(2KB)
----README.md(2KB)
----.eslintignore(26B)
----.npmignore(992B)
----docs()
--------guide()
--------index.md(171B)
--------.vuepress()
----.editorconfig(104B)
----yarn.lock(405KB)

网友评论