fix compile config
parent
f7e163f7bc
commit
e7ecf56ff9
9
.babelrc
9
.babelrc
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"presets": ["env"],
|
|
||||||
"plugins": [
|
|
||||||
"transform-vue-jsx",
|
|
||||||
"transform-object-rest-spread",
|
|
||||||
"syntax-dynamic-import",
|
|
||||||
"transform-decorators-legacy"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -7,9 +7,9 @@
|
||||||
# [Ant Design Vue](https://vuecomponent.github.io/ant-design/)
|
# [Ant Design Vue](https://vuecomponent.github.io/ant-design/)
|
||||||
[](https://travis-ci.org/vueComponent/ant-design)
|
[](https://travis-ci.org/vueComponent/ant-design)
|
||||||
[](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design)
|
[](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design)
|
||||||
[](https://www.npmjs.org/package/vue-antd3)
|
[](https://www.npmjs.org/package/vue-antd-ui)
|
||||||
[](https://npmjs.org/package/vue-antd3)
|
[](https://npmjs.org/package/vue-antd-ui)
|
||||||
[](https://www.npmjs.com/package/vue-antd3)
|
[](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)。
|
||||||
|
|
10
README.md
10
README.md
|
@ -7,9 +7,9 @@
|
||||||
# [Ant Design Vue](https://vuecomponent.github.io/ant-design/)
|
# [Ant Design Vue](https://vuecomponent.github.io/ant-design/)
|
||||||
[](https://travis-ci.org/vueComponent/ant-design)
|
[](https://travis-ci.org/vueComponent/ant-design)
|
||||||
[](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design)
|
[](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design)
|
||||||
[](https://www.npmjs.org/package/vue-antd3)
|
[](https://www.npmjs.org/package/vue-antd-ui)
|
||||||
[](https://npmjs.org/package/vue-antd3)
|
[](https://npmjs.org/package/vue-antd-ui)
|
||||||
[](https://www.npmjs.com/package/vue-antd3)
|
[](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)。
|
||||||
|
|
|
@ -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$/,
|
||||||
|
|
|
@ -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
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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",
|
||||||
|
|
|
@ -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',
|
||||||
|
],
|
||||||
|
}},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue