Releases: Tencent/omi
Releases · Tencent/omi
v7.1.10
v7.1.5
CSS Prop Supported 🎉 !
Usage
@tag('counter-demo')
class CounterDemo extends Component {
static css = 'span { color: red; }'
render() {
return (
<>
<button onClick={sub}>-</button>
<span>{count.value}</span>
<button onClick={add}>+</button>
</>
)
}
}
@tag('my-app')
class MyApp extends Component {
cssProp: string = ''
installed(): void {
setInterval(() => {
this.cssProp = `span{ font-size: ${Math.floor(Math.random() * 120)}px }`
this.update()
}, 500)
}
render() {
return (
<counter-demo css={this.cssProp || 'span{ color: green !important}'} />
)
}
}
OMI 7.1.2 🎉
v7.1.2 chore: rebuild & publish
OMI 7.1 🎉
v7.0.0
v7.0.0-rc4
chore: publish omi v7.0.0-rc4
v7.0.0-rc3
docs: readme
v7.0.0-rc2
chore: using v7.0.0-rc2 version of omi
v7.0.0-rc1
fix: fix unnecessary updates and infinite loops of value types