js component:用于TypeScript的基于实验的基于类的Web组件库 源码

上传:attract7539 浏览: 4 推荐: 0 文件:ZIP 大小:196.25KB 上传时间:2021-04-04 05:20:39 版权申诉
js组件 一个研发项目,用于评估基于类的解决方案以开发自定义元素。 免责声明: 项目处于早期状态,目前尚无在生产中使用它的计划。 例子 例子1 import { bind , element , html , state , Component } from 'js-component' import counterStyles from './styles/counter.scss' @ element ( { tag : 'my-counter' , styles : counterStyles } ) class Counter extends Component { @ prop label = 'Counter' @ state private count = 0 @ bind private onClick ( ) { this .
上传资源
用户评论