diff --git a/docs/vue/getting-started.en-US.md b/docs/vue/getting-started.en-US.md index 67ced444a..a9a435cdc 100644 --- a/docs/vue/getting-started.en-US.md +++ b/docs/vue/getting-started.en-US.md @@ -37,6 +37,22 @@ $ vue init webpack antd-demo $ 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: '' +}) +``` + +**Only import the components you need** ```jsx import Vue from 'vue' import { Button, message } from 'vue-antd-ui' diff --git a/docs/vue/getting-started.zh-CN.md b/docs/vue/getting-started.zh-CN.md index 9463c9667..c5b3c15fa 100644 --- a/docs/vue/getting-started.zh-CN.md +++ b/docs/vue/getting-started.zh-CN.md @@ -38,6 +38,22 @@ $ vue init webpack antd-demo $ npm i --save vue-antd-ui ``` +**完整导入** +```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: '' +}) +``` + +**局部导入组件** ```jsx import Vue from 'vue' import { Button, message } from 'vue-antd-ui'