From 350b941e836dba4b8064ee6763841dc9e3038a5a Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 2 Feb 2019 17:38:59 +0800 Subject: [PATCH] update site --- docs/vue/introduce.en-US.md | 4 ++-- docs/vue/introduce.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/vue/introduce.en-US.md b/docs/vue/introduce.en-US.md index 1871ab03e..f26e90491 100644 --- a/docs/vue/introduce.en-US.md +++ b/docs/vue/introduce.en-US.md @@ -71,9 +71,9 @@ We provide `antd.js` `antd.css` and `antd.min.js` `antd.min.css` under `ant-desi ## Usage ```jsx -import Vue from 'vue' +import Vue from 'vue'; import { DatePicker } from 'ant-design-vue'; -Vue.component(DatePicker.name, DatePicker) +Vue.use(DatePicker); ``` And import stylesheets manually: diff --git a/docs/vue/introduce.zh-CN.md b/docs/vue/introduce.zh-CN.md index 06a9a0a8e..6cd1dee66 100644 --- a/docs/vue/introduce.zh-CN.md +++ b/docs/vue/introduce.zh-CN.md @@ -71,9 +71,9 @@ $ yarn add ant-design-vue ## 示例 ```jsx -import Vue from 'vue' +import Vue from 'vue'; import { DatePicker } from 'ant-design-vue'; -Vue.component(DatePicker.name, DatePicker) +Vue.use(DatePicker); ``` 引入样式: