【文件属性】:
文件名称:lit-toast:使用LitElement实现的敬酒Web组件
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-23 08:30:53
toast notification webcomponent litelement JavaScript
烤面包
使用LitElement实现的敬酒Web组件。
安装
npm install lit-toast --save
然后,将lit-toast导入到您的元素中:
import 'lit-toast/lit-toast.js' ;
或在html文件中:
< script type =" module " src =" /path/to/lit-toast.js " > </ script >
用法
在您的LitElement类中:
static get styles ( ) {
return css `
: host {
display : block;
}
` ;
}
static get properties ( ) {
return { } ;
}
constructor ( ) {
super ( ) ;
}
rend
【文件预览】:
lit-toast-master
----.gitignore(12B)
----my-app.js(18KB)
----package.json(747B)
----package-lock.json(675B)
----LICENSE(1KB)
----CHANGELOG.md(812B)
----README.md(2KB)
----index.html(1KB)
----lit-toast.js(3KB)
----.npmignore(49B)
----yarn.lock(646B)