Releases: Tencent/omi
Releases · Tencent/omi
Fix the issue of some built-in dom events not being able to bind
v6.25.21 fix: 修复部分 dom 内置事件无法绑定的问题
Fix foreignObject rendering errors
v6.25.20 fix(omi): 修复 svg 内 foreignObject 渲染异常
The update method no longer accepts ignoreAttrs
v6.25.19 feat(omi): update方法不再接受ignoreAttrs参数
Auto ignoreAttrs when using h function
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
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
v6.25.11 lint: lint fix
Revert function vnode feature of omi
v6.25.10 chore: rebuild admin & revert function vnode feature of omi
v6.25.9
Make tag extensible
v6.25.8 feat(omi): rebuild & publish to npm v6.25.8
VNode of function type is already supported
let count = 0
render(({ update }) => {
return (
<>
{count}
<button onClick={(evt) => {
count++
update()
}}
>+</button>
</>
)
})