diff --git a/README.md b/README.md index fc0c3baf..2d2f04c4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,14 @@

-# iView [![](https://img.shields.io/travis/iview/iview.svg?style=flat-square)](https://travis-ci.org/iview/iview) [![iView](https://img.shields.io/npm/v/iview.svg?style=flat-square)](https://www.npmjs.org/package/iview) [![NPM downloads](http://img.shields.io/npm/dm/iview.svg?style=flat-square)](https://npmjs.org/package/iview) [![Join the chat at https://gitter.im/iview/iview](https://img.shields.io/badge/chat-on_gitter-30b392.svg?style=flat-square)](https://gitter.im/iview/iview?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +# iView +[![](https://img.shields.io/travis/iview/iview.svg?style=flat-square)](https://travis-ci.org/iview/iview) +[![iView](https://img.shields.io/npm/v/iview.svg?style=flat-square)](https://www.npmjs.org/package/iview) +[![NPM downloads](http://img.shields.io/npm/dm/iview.svg?style=flat-square)](https://npmjs.org/package/iview) +[![NPM downloads](https://img.shields.io/npm/dt/iview.svg?style=flat-square)](https://npmjs.org/package/iview) +![JS gzip size](http://img.badgesize.io/https://unpkg.com/iview/dist/iview.min.js?compression=gzip&label=gzip%20size:%20JS&style=flat-square) +![CSS gzip size](http://img.badgesize.io/https://unpkg.com/iview/dist/styles/iview.css?compression=gzip&label=gzip%20size:%20CSS&style=flat-square) +[![Join the chat at https://gitter.im/iview/iview](https://img.shields.io/badge/chat-on_gitter-30b392.svg?style=flat-square)](https://gitter.im/iview/iview?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ### A high quality UI Toolkit built on Vue.js. diff --git a/build/webpack.dev.config.js b/build/webpack.dev.config.js index 5803c51e..8c07d166 100644 --- a/build/webpack.dev.config.js +++ b/build/webpack.dev.config.js @@ -27,7 +27,8 @@ module.exports = merge(webpackBaseConfig, { resolve: { alias: { iview: '../../src/index', - vue: 'vue/dist/vue.js' + // vue: 'vue/dist/vue.js' + vue: 'vue/dist/vue.runtime.js' } }, plugins: [ diff --git a/examples/routers/badge.vue b/examples/routers/badge.vue index 241e2677..7074ba1b 100644 --- a/examples/routers/badge.vue +++ b/examples/routers/badge.vue @@ -14,37 +14,24 @@ \ No newline at end of file diff --git a/examples/routers/form.vue b/examples/routers/form.vue index d494cf3e..b4b3a82e 100644 --- a/examples/routers/form.vue +++ b/examples/routers/form.vue @@ -2,12 +2,7 @@
- - - - - - + 提交 @@ -21,12 +16,15 @@ data () { return { formValidate: { - interest: ['吃饭', '跑步'] + interest: '' }, ruleValidate: { interest: [ - { required: true, type: 'array', min: 1, message: '至少选择一个爱好', trigger: 'change' }, - { type: 'array', max: 2, message: '最多选择两个爱好', trigger: 'change' } + { + required: true, + type: 'number', + trigger: 'change' + } ] } } diff --git a/examples/routers/menu.vue b/examples/routers/menu.vue index 3d2f8251..8190a9e6 100644 --- a/examples/routers/menu.vue +++ b/examples/routers/menu.vue @@ -1,44 +1,48 @@ @@ -46,149 +50,8 @@ export default { data () { return { - theme1: 'light' - } - }, - methods: { - s (s) { - console.log(s) + theme2: 'light' } } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/routers/message.vue b/examples/routers/message.vue index 4ff90ec4..19644db9 100644 --- a/examples/routers/message.vue +++ b/examples/routers/message.vue @@ -1,5 +1,6 @@