A Component Library for Vue.js.
npm install q-element-ui[组件名]: 描述信息 的形式填写,例如 Button: fix xxx bug。
lib 里面打包的文件。
npm run dist 后可以正确打包文件。
preset-2015,所以不建议使用 ES2015 的 API,例如 Array.prototype.find、Object.assign等。如果有需要,请引入第三方的 polyfill。
master 分支。
npm install 安装依赖。
shell
git clone git@github.com:ElemeFE/element.git
npm run dev
open http://localhost:8085
`
> 提示:可以运行 npm run dev:play,修改 examples/play/index.vue 文件,调用你修改后的组件,仍然访问 http://localhost:8085,查看修改效果,更快更方便。
打包代码:
`shell
npm run dist
`
组件开发规范
- 基于element-ui 2.13.0 版本进行开发
- 通过 make new 创建组件目录结构,包含测试代码、入口文件、文档
- 如果包含父子组件,需要更改目录结构,参考 Button
- 组件内如果依赖了其他组件,需要在当前组件内引入,参考 Select`