Skip to content

Releases: Tencent/omi

CSS Prop Supported 🎉 !

19 Oct 04:38
Compare
Choose a tag to compare

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}'} />
    )
  }
}

企业微信截图_3f6d7888-2bac-4371-abe1-8552a1838538

OMI 7.1.2 🎉

18 Oct 01:40
Compare
Choose a tag to compare
v7.1.2

chore: rebuild & publish

OMI 7.1 🎉

16 Oct 01:06
Compare
Choose a tag to compare
  • Support bind decorator to automatically bind this
  • Support CSS tag function to generate shared styles

v7.0.0

12 Oct 01:26
Compare
Choose a tag to compare
OMI 7.0 🎉

v7.0.0-rc4

11 Oct 05:20
Compare
Choose a tag to compare
chore: publish omi v7.0.0-rc4

v7.0.0-rc3

10 Oct 22:06
Compare
Choose a tag to compare
docs: readme

v7.0.0-rc2

10 Oct 14:01
Compare
Choose a tag to compare
chore: using v7.0.0-rc2 version of omi

v7.0.0-rc1

10 Oct 12:49
Compare
Choose a tag to compare
fix: fix unnecessary updates and infinite loops of value types

Fix the issue of some built-in dom events not being able to bind

09 Sep 23:52
Compare
Choose a tag to compare
v6.25.21

fix: 修复部分 dom 内置事件无法绑定的问题

Fix foreignObject rendering errors

03 Sep 01:30
Compare
Choose a tag to compare
v6.25.20

fix(omi): 修复 svg 内 foreignObject 渲染异常