fix compile config

pull/9/head
tjz 2018-03-19 21:23:38 +08:00
parent f7e163f7bc
commit e7ecf56ff9
10 changed files with 350 additions and 2107 deletions

View File

@ -1,9 +0,0 @@
{
"presets": ["env"],
"plugins": [
"transform-vue-jsx",
"transform-object-rest-spread",
"syntax-dynamic-import",
"transform-decorators-legacy"
]
}

View File

@ -7,9 +7,9 @@
# [Ant Design Vue](https://vuecomponent.github.io/ant-design/) # [Ant Design Vue](https://vuecomponent.github.io/ant-design/)
[![Travis branch](https://img.shields.io/travis/vueComponent/ant-design/master.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design) [![Travis branch](https://img.shields.io/travis/vueComponent/ant-design/master.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design)
[![Dependency Status](https://beta.gemnasium.com/badges/github.com/vueComponent/ant-design.svg)](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design) [![Dependency Status](https://beta.gemnasium.com/badges/github.com/vueComponent/ant-design.svg)](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design)
[![npm package](https://img.shields.io/npm/v/vue-antd3/next.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd3) [![npm package](https://img.shields.io/npm/v/vue-antd-ui/next.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd-ui)
[![NPM downloads](http://img.shields.io/npm/dm/vue-antd3.svg?style=flat-square)](https://npmjs.org/package/vue-antd3) [![NPM downloads](http://img.shields.io/npm/dm/vue-antd-ui.svg?style=flat-square)](https://npmjs.org/package/vue-antd-ui)
[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://www.npmjs.com/package/vue-antd3) [![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://www.npmjs.com/package/vue-antd-ui)
Ant Design 3.X 的 Vue 实现,开发和服务于企业级后台产品。 Ant Design 3.X 的 Vue 实现,开发和服务于企业级后台产品。
@ -28,11 +28,11 @@ Ant Design 3.X 的 Vue 实现,开发和服务于企业级后台产品。
### 使用 npm 或 yarn 安装 ### 使用 npm 或 yarn 安装
```bash ```bash
$ npm install vue-antd3 --save $ npm install vue-antd-ui --save
``` ```
```bash ```bash
$ yarn add vue-antd3 $ yarn add vue-antd-ui
``` ```
如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。 如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。

View File

@ -7,9 +7,9 @@
# [Ant Design Vue](https://vuecomponent.github.io/ant-design/) # [Ant Design Vue](https://vuecomponent.github.io/ant-design/)
[![Travis branch](https://img.shields.io/travis/vueComponent/ant-design/master.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design) [![Travis branch](https://img.shields.io/travis/vueComponent/ant-design/master.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design)
[![Dependency Status](https://beta.gemnasium.com/badges/github.com/vueComponent/ant-design.svg)](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design) [![Dependency Status](https://beta.gemnasium.com/badges/github.com/vueComponent/ant-design.svg)](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design)
[![npm package](https://img.shields.io/npm/v/vue-antd3/next.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd3) [![npm package](https://img.shields.io/npm/v/vue-antd-ui/next.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd-ui)
[![NPM downloads](http://img.shields.io/npm/dm/vue-antd3.svg?style=flat-square)](https://npmjs.org/package/vue-antd3) [![NPM downloads](http://img.shields.io/npm/dm/vue-antd-ui.svg?style=flat-square)](https://npmjs.org/package/vue-antd-ui)
[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://www.npmjs.com/package/vue-antd3) [![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://www.npmjs.com/package/vue-antd-ui)
An enterprise-class UI components based on Ant Design 3.X and Vue. An enterprise-class UI components based on Ant Design 3.X and Vue.
@ -28,11 +28,11 @@ An enterprise-class UI components based on Ant Design 3.X and Vue.
### 使用 npm 或 yarn 安装 ### 使用 npm 或 yarn 安装
```bash ```bash
$ npm install vue-antd3 --save $ npm install vue-antd-ui --save
``` ```
```bash ```bash
$ yarn add vue-antd3 $ yarn add vue-antd-ui
``` ```
如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。 如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。

View File

@ -41,7 +41,7 @@ module.exports = function (modules) {
resolve: { resolve: {
modules: ['node_modules', path.join(__dirname, '../node_modules')], modules: ['node_modules', path.join(__dirname, '../node_modules')],
extensions: ['.js', '.vue', '.md', '.json'], extensions: ['.js', '.jsx', '.vue', '.md', '.json'],
alias: { alias: {
'vue$': 'vue/dist/vue.esm.js', 'vue$': 'vue/dist/vue.esm.js',
'@': process.cwd(), '@': process.cwd(),
@ -68,18 +68,29 @@ module.exports = function (modules) {
test: /\.vue$/, test: /\.vue$/,
exclude: /node_modules/, exclude: /node_modules/,
use: [ use: [
{
loader: 'babel-loader',
options: babelConfig,
},
{ {
loader: 'vue-loader', loader: 'vue-loader',
options: {
loaders: {
js: [
{ loader: 'babel-loader',
options: {
presets: ['env'],
plugins: [
'transform-vue-jsx',
'transform-object-rest-spread',
],
}},
],
},
},
}, },
], ],
}, },
{ {
test: /\.js$/, test: /\.(js|jsx)$/,
loader: 'babel-loader', exclude: /node_modules/, loader: 'babel-loader', exclude: /node_modules/,
options: babelConfig,
}, },
{ {
test: /\.css$/, test: /\.css$/,

View File

@ -1,19 +0,0 @@
import { cloneElement } from './vnode'
import PropTypes from './vue-types'
export default {
props: {
childProps: PropTypes.object.def({}),
},
render () {
const { $attrs, $listeners, childProps, $slots } = this
let children = $slots.default[0]
children = cloneElement(children, {
attr: $attrs,
on: $listeners,
props: childProps,
})
return children
},
}

View File

@ -98,7 +98,7 @@ const api = {
notification, notification,
message, message,
} }
export { api } export { api, notification, message }
import Steps from './steps' import Steps from './steps'
const { Step } = Steps const { Step } = Steps

View File

@ -1,11 +1,12 @@
import Input, { InputProps } from './Input' import Input from './Input'
import Icon from '../icon' import Icon from '../icon'
import inputProps from './inputProps'
export default { export default {
name: 'InputSearch', name: 'InputSearch',
props: { props: {
...InputProps, ...inputProps,
prefixCls: { prefixCls: {
default: 'ant-input-search', default: 'ant-input-search',
type: String, type: String,

2063
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{ {
"name": "vue-antd3", "name": "vue-antd-ui",
"version": "0.1.0", "version": "0.1.0",
"title": "Ant Design Vue", "title": "Ant Design Vue",
"description": "An enterprise-class UI design language and Vue-based implementation", "description": "An enterprise-class UI design language and Vue-based implementation",
@ -18,7 +18,8 @@
"main": "dist/antd.min.js", "main": "dist/antd.min.js",
"files": [ "files": [
"dist", "dist",
"components" "lib",
"es"
], ],
"scripts": { "scripts": {
"start": "NODE_ENV=development ./node_modules/.bin/webpack-dev-server --open --hot", "start": "NODE_ENV=development ./node_modules/.bin/webpack-dev-server --open --hot",
@ -114,7 +115,7 @@
"stylelint": "^8.1.1", "stylelint": "^8.1.1",
"stylelint-config-standard": "^17.0.0", "stylelint-config-standard": "^17.0.0",
"through2": "^2.0.3", "through2": "^2.0.3",
"vue-antd-md-loader": "^1.0.2", "vue-antd-md-loader": "^1.0.3",
"vue-loader": "^13.0.5", "vue-loader": "^13.0.5",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vue-template-compiler": "^2.5.15", "vue-template-compiler": "^2.5.15",

View File

@ -121,7 +121,22 @@ module.exports = {
use: [ use: [
{ {
loader: 'vue-antd-md-loader', loader: 'vue-antd-md-loader',
options: Object.assign(md, { wrapper: 'div' }), options: Object.assign(md, { wrapper: 'div',
vueLoaderOptions: {
loaders: {
js: [
{ loader: 'babel-loader',
options: {
presets: ['env'],
plugins: [
'transform-vue-jsx',
'transform-object-rest-spread',
],
}},
],
},
},
}),
}, },
], ],
}, },