fix compile config

pull/165/head
tjz 2018-03-19 21:23:38 +08:00
parent 23a90001a2
commit 3622a207eb
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/)
[![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)
[![npm package](https://img.shields.io/npm/v/vue-antd3/next.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd3)
[![NPM downloads](http://img.shields.io/npm/dm/vue-antd3.svg?style=flat-square)](https://npmjs.org/package/vue-antd3)
[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://www.npmjs.com/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-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-antd-ui)
Ant Design 3.X 的 Vue 实现,开发和服务于企业级后台产品。
@ -28,11 +28,11 @@ Ant Design 3.X 的 Vue 实现,开发和服务于企业级后台产品。
### 使用 npm 或 yarn 安装
```bash
$ npm install vue-antd3 --save
$ npm install vue-antd-ui --save
```
```bash
$ yarn add vue-antd3
$ yarn add vue-antd-ui
```
如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。

View File

@ -7,9 +7,9 @@
# [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)
[![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 downloads](http://img.shields.io/npm/dm/vue-antd3.svg?style=flat-square)](https://npmjs.org/package/vue-antd3)
[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://www.npmjs.com/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-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-antd-ui)
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 安装
```bash
$ npm install vue-antd3 --save
$ npm install vue-antd-ui --save
```
```bash
$ yarn add vue-antd3
$ yarn add vue-antd-ui
```
如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。

View File

@ -41,7 +41,7 @@ module.exports = function (modules) {
resolve: {
modules: ['node_modules', path.join(__dirname, '../node_modules')],
extensions: ['.js', '.vue', '.md', '.json'],
extensions: ['.js', '.jsx', '.vue', '.md', '.json'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': process.cwd(),
@ -68,18 +68,29 @@ module.exports = function (modules) {
test: /\.vue$/,
exclude: /node_modules/,
use: [
{
loader: 'babel-loader',
options: babelConfig,
},
{
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/,
options: babelConfig,
},
{
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,
message,
}
export { api }
export { api, notification, message }
import Steps from './steps'
const { Step } = Steps

View File

@ -1,11 +1,12 @@
import Input, { InputProps } from './Input'
import Input from './Input'
import Icon from '../icon'
import inputProps from './inputProps'
export default {
name: 'InputSearch',
props: {
...InputProps,
...inputProps,
prefixCls: {
default: 'ant-input-search',
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",
"title": "Ant Design Vue",
"description": "An enterprise-class UI design language and Vue-based implementation",
@ -18,7 +18,8 @@
"main": "dist/antd.min.js",
"files": [
"dist",
"components"
"lib",
"es"
],
"scripts": {
"start": "NODE_ENV=development ./node_modules/.bin/webpack-dev-server --open --hot",
@ -114,7 +115,7 @@
"stylelint": "^8.1.1",
"stylelint-config-standard": "^17.0.0",
"through2": "^2.0.3",
"vue-antd-md-loader": "^1.0.2",
"vue-antd-md-loader": "^1.0.3",
"vue-loader": "^13.0.5",
"vue-router": "^3.0.1",
"vue-template-compiler": "^2.5.15",

View File

@ -121,7 +121,22 @@ module.exports = {
use: [
{
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',
],
}},
],
},
},
}),
},
],
},