|
|
@ -37,20 +37,6 @@ $ vue init webpack antd-demo |
|
|
|
$ npm i --save vue-antd-ui |
|
|
|
$ npm i --save vue-antd-ui |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
**Fully import** |
|
|
|
|
|
|
|
```jsx |
|
|
|
|
|
|
|
import Vue from 'vue' |
|
|
|
|
|
|
|
import antd from 'vue-antd-ui' |
|
|
|
|
|
|
|
import App from './App' |
|
|
|
|
|
|
|
Vue.config.productionTip = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* eslint-disable no-new */ |
|
|
|
|
|
|
|
new Vue({ |
|
|
|
|
|
|
|
el: '#app', |
|
|
|
|
|
|
|
components: { App }, |
|
|
|
|
|
|
|
template: '<App/>' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Only import the components you need** |
|
|
|
**Only import the components you need** |
|
|
|
```jsx |
|
|
|
```jsx |
|
|
|