omi-weui

weui for Omi

这里是 weui 开发版本,会整体重构

src 为组件源码 site 为线上demo

开发

  1. yarn dev

后编译配置通过 babel-loader 的 include 选项

  1. {
  2. test: /\.js$/,
  3. loader: 'babel-loader',
  4. include: [
  5. resolve('node_modules/omi-weui'),
  6. ]
  7. },

按需引入需要安装 babel-plugin-transform-modules, 并配置如下:

  1. "plugins": [
  2. ["transform-modules", {
  3. "omi-weui": {
  4. "transform": "omi-weui/src/components/${member}",
  5. "preventFullImport": true,
  6. "kebabCase": true
  7. }
  8. }]
  9. ]

P.S.

由于 web-components 机制的原因,导致 css 丧失了复用的能力,覆盖样式建议直接修改源码