下拉刷新
Repository Details
Shared bynavbar_avatar
repo_avatar
HelloGitHub Rating
0 ratings
腾讯开源的通用 Web 组件化框架
Claim
Collect
Share
13.3k
Stars
Yes
Chinese
TypeScript
Language
Yes
Active
1
Contributors
70
Issues
Yes
Organization
7.7.0
Latest
1k
Forks
None
License
More
腾讯开源的通用 Web 组件化框架。特点: - 拥有官方 UI 组件库 - 使用 omio 可以兼容到 IE8 - 设计精巧、兼容性好 - 基于 Web Components 标准 - 等等 ```javascript import { render, WeElement, define } from 'omi' define('my-counter', class extends WeElement { static observe = true data = { count: 1 } sub = () => { this.data.count-- } add = () => { this.data.count++ } render() { return ( <div> <button onClick={this.sub}>-</button> <span>{this.data.count}</span> <button onClick={this.add}>+</button> </div> ) } }) render(<my-counter />, 'body') ```
Included in:
Vol.34

Comments

Rating:
No comments yet