Skip to content

Commit 3be4ed6

Browse files
committed
doc: update related doc
1 parent 90814a2 commit 3be4ed6

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/vue/getting-started.en-US.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ $ vue init webpack antd-demo
3737
$ npm i --save vue-antd-ui
3838
```
3939

40+
**Fully import**
41+
```jsx
42+
import Vue from 'vue'
43+
import antd from 'vue-antd-ui'
44+
import App from './App'
45+
Vue.config.productionTip = false
46+
47+
/* eslint-disable no-new */
48+
new Vue({
49+
el: '#app',
50+
components: { App },
51+
template: '<App/>'
52+
})
53+
```
54+
55+
**Only import the components you need**
4056
```jsx
4157
import Vue from 'vue'
4258
import { Button, message } from 'vue-antd-ui'

docs/vue/getting-started.zh-CN.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ $ vue init webpack antd-demo
3838
$ npm i --save vue-antd-ui
3939
```
4040

41+
**完整导入**
42+
```jsx
43+
import Vue from 'vue'
44+
import antd from 'vue-antd-ui'
45+
import App from './App'
46+
Vue.config.productionTip = false
47+
48+
/* eslint-disable no-new */
49+
new Vue({
50+
el: '#app',
51+
components: { App },
52+
template: '<App/>'
53+
})
54+
```
55+
56+
**局部导入组件**
4157
```jsx
4258
import Vue from 'vue'
4359
import { Button, message } from 'vue-antd-ui'

0 commit comments

Comments
 (0)