Skip to content

Releases: Tencent/omi

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

unsafeHTML supported

16 Jul 13:36
Compare
Choose a tag to compare
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

11 Jul 15:09
Compare
Choose a tag to compare
v6.25.1

feat(admin): rebuild

Lock version of construct-style-sheets-polyfill

10 Jul 14:01
Compare
Choose a tag to compare
v6.25.0

fix(@omiu/popover): e.path is undefined

Cache css style sheet

13 Aug 03:21
Compare
Choose a tag to compare

Fix type declaration

05 Aug 13:22
Compare
Choose a tag to compare
v6.21.3

fix(omi-cli): fix files missing

Support provide / inject

05 Aug 01:55
Compare
Choose a tag to compare
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

03 Aug 15:04
Compare
Choose a tag to compare
v6.20.1

chore(omi): build & publish

Remove Dead Code

03 Aug 01:27
Compare
Choose a tag to compare
v6.20.0

chore(admin): use latest version of omi