Releases: Tencent/omi
Releases · Tencent/omi
OmiProps<P> to OmiProps<P> | P
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
v6.25.5 feat(tutorial): responsive design
unsafeHTML supported
const markup = '<h3>Some HTML to render.</h3>'
@tag('my-element')
class extends WeElement {
render() {
return <div unsafeHTML={markup}></div>
}
}
render(<my-element />, 'body')
Fix Omi.version
v6.25.1 feat(admin): rebuild
Lock version of construct-style-sheets-polyfill
v6.25.0 fix(@omiu/popover): e.path is undefined
Cache css style sheet
Fix type declaration
v6.21.3 fix(omi-cli): fix files missing
Support provide / inject
define('parent-el', class extends WeElement {
provide = {
name: 'omi'
}
render() {
return <child-el></child-el>
}
})
//Not just children, can be injected into all descendant elements
define('child-el', class extends WeElement {
inject = ['name']
render() {
//output: <div>omi</div>
return <div>{this.injection.name}</div>
}
})
Add missing function type declaration
v6.20.1 chore(omi): build & publish
Remove Dead Code
v6.20.0 chore(admin): use latest version of omi