注意:使用node v8.1.4运行打包
因为项目之前引入了iview 2.0.0版本有很多bug,但由于直接替换会有一些之前为了解决BUG的hack方法导致次生BUG,因此进行一些修改,以同时引入版本4和版本2,后期全面使用版本4后再移除版本2
- 将打包出来的包名由
iview改为iview4 - 全局组件名前缀全部改为
I4ComponentName,如I4Button - 全局API由
$APIName改名为$I4APIName,如$I4Message - 全局iview由
$IVIEW改为$IVIEW4 - 将类名前缀由
ivu4-改为ivu4-、由ivu4-icon改为ivu4-icon,要使用icon的使用注意使用ivu4-icon,覆盖iview样式的时候也要注意类名(与原版的类名不一样了) - Select组件中判断是否Option的正则改为
optionRegexp = /^i-option$|^Option$|^i4-option$|^I4Option$/i
- Select: showNotFoundLabel ignore remote prop
- Switch&Circle: fix no import when install
以下是原文档
该项目即为原先的 iView。iView 作者将在此仓库继续开发 iView 4.0 和后续版本,以及维护工作。新的组件库命名为 ViewUI,原仓库 iView 作者不再提交内容。
This project is the original iView. The iView author will continue to develop iView 4.0 and subsequent releases, as well as maintenance work, in this repository. The new component library is named ViewUI, and the iView author will no longer continue to submit content in the original repository.
- Dozens of useful and beautiful components.
- Friendly API. It's made for people with any skill level.
- Extensive documentation and demos.
- It is quite beautiful.
- Supports both Vue.js 2 and Vue.js 1.
We provide an View UI plugin for Vue CLI 3, which you can use to quickly build an ViewUI-based project.
We also provide a starter kit view-ui-project for you.
Using npm:
npm install view-design --save
Using a script tag for global use:
<script type="text/javascript" src="iview.min.js"></script>
<link rel="stylesheet" href="dist/styles/iview.css">You can find more info on the website.
<template>
<Slider v-model="value" range />
</template>
<script>
export default {
data () {
return {
value: [20, 50]
}
}
}
</script>Using css via import:
import 'view-design/dist/styles/iview.css';- Supports Vue.js 2.x
- Supports Vue.js 1.x - visit 1.0 docs
- Supports SSR
- Supports Nuxt.js
- Supports TypeScript
- Supports Electron
- Most components and features support IE9 and above browsers, some components and features do not support IE
If you want to contribute or have questions or bugs to report:
Questions: Find other users at the Gitter chat or post on StackOverflow using [iview-ui] tag
Bugs: File a issue here - please provide a example so we can help you better
Contribute: Contact us in Gitter chat, WeChat or via mail to admin@aresn.com. PRs welcome!
| Name | Avatar | Name | Avatar | Name | Avatar |
|---|---|---|---|---|---|
| Aresn | jingsam | rijn | |||
| lcx960324 | GITleonine1989 | huixisheng | |||
| Sergio Crisostomo | lison16 | Xotic750 | |||
| huanghong1125 | yangdan8 |
Copyright (c) 2016-present, ViewDesign