Skip to content

Enhanced CSS, rpx unit support base on 750 screen width

Compare
Choose a tag to compare
@dntzhang dntzhang released this 11 Nov 12:09
· 438 commits to master since this release
import { WeElement, define, rpx } from 'omi'

define('my-ele', class extends WeElement {

  static css = rpx(`div { font-size: 375rpx }`)

  render() {
    return (
      <div>my ele</div>
    )
  }
})