Skip to content

Releases: Tencent/omi

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 渲染异常

The update method no longer accepts ignoreAttrs

21 Aug 15:19
Compare
Choose a tag to compare
v6.25.19

feat(omi): update方法不再接受ignoreAttrs参数

Auto ignoreAttrs when using h function

21 Aug 13:11
Compare
Choose a tag to compare
import { define, WeElement, h } from 'omi'

define('my-counter', class extends WeElement {
  render() {
    return (
      <h.f>
        <span>{this.count}</span>
        {/* auto ignoreAttrs obj*/}
        <my-child obj={{ name: 'omi' }}></my-child>
      </h.f>
    )
  }
})


define('my-child', class extends WeElement {
  static propTypes = {
    obj: Object
  }

  render(props) {
    return (
      <h.f>
        <span>name:{this.props.obj.name}</span>
      </h.f>
    )
  }
})

Multiple types of propTypes

19 Aug 10:41
Compare
Choose a tag to compare
import { tag, WeElement, h, render } from 'omi'

@tag('hello-omi')
class HelloOmi extends WeElement {
  propTypes: [String, Array],

  render(props) {
    return (
       ...
       ...
    )
  }
}

Not handling non-standard JSON string prop

18 May 00:52
Compare
Choose a tag to compare

Revert function vnode feature of omi

27 Sep 02:20
Compare
Choose a tag to compare
v6.25.10

chore: rebuild admin & revert function vnode feature of omi

v6.25.9

14 Sep 09:13
Compare
Choose a tag to compare
feat(omi): support function node name

Make tag extensible

03 Sep 01:51
Compare
Choose a tag to compare
v6.25.8

feat(omi): rebuild & publish to npm v6.25.8

VNode of function type is already supported

01 Sep 09:30
Compare
Choose a tag to compare
let count = 0
render(({ update }) => {
  return (
    <>
      {count}
      <button onClick={(evt) => {
        count++
        update()
      }}
      >+</button>
    </>
  )
})