omi/packages/omi-weui
dntzhang 94a491a41f sync weui 2018-12-14 16:01:44 +08:00
..
config 日常提交 2018-12-02 20:17:29 +08:00
docs rework omi-weui 2018-11-12 20:55:49 +08:00
site 提交更多组件 2018-12-03 13:28:42 +08:00
src sync weui 2018-12-14 16:01:44 +08:00
.babelrc 日常提交 2018-12-02 20:17:29 +08:00
.gitignore rework omi-weui 2018-11-12 20:55:49 +08:00
README.md 修改readme 2018-12-03 13:32:34 +08:00
package.json Merge pull request #203 from 132yse/master 2018-12-02 20:24:04 +08:00
yarn.lock 日常提交 2018-12-02 20:17:29 +08:00

README.md

omi-weui

weui for Omi

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

src 为组件源码 site 为线上demo

开发

yarn dev

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

{
    test: /\.js$/,
    loader: 'babel-loader',
    include: [
		resolve('node_modules/omi-weui'),
	]
},

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

"plugins": [
  ["transform-modules", {
	 "omi-weui": {
	   "transform": "omi-weui/src/components/${member}",
	   "preventFullImport": true,
	   "kebabCase": true
	 }
  }]
]

P.S.

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