Skip to content

Releases: Tencent/omi

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

OmiProps<P> to OmiProps<P> | P

29 Jul 10:19
Compare
Choose a tag to compare

Fix type error when:

export interface YourProps {
}

@tag('your-component')
class YourComponent extends WeElement<YourProps> {
  render(props: YourProps) {
    
  }
}

Fix the error when CSS attribute is updated from null or empty

28 Jul 04:54
Compare
Choose a tag to compare
v6.25.5

feat(tutorial): responsive design