Repository Details
Shared by


HelloGitHub Rating
0 ratings
Claim
Discuss
Collect
Share
13.2k
Stars
Yes
Chinese
TypeScript
Language
Yes
Active
114
Contributors
68
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