docs: update local-provider doc

pull/165/head
tangjinzhou 2018-05-08 11:33:58 +08:00
parent 5688bc2103
commit b9867a1c87
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
<template>
<a-locale-provider :locale="fr_FR">
<App />
<a-locale-provider>
</a-locale-provider>
</template>
<script>
import fr_FR from 'antd/lib/locale-provider/fr_FR';
@ -34,7 +34,7 @@ Note: if you need to use antd's UMD dist file, please use `antd/dist/antd-with-l
<template>
<a-locale-provider :locale="locales.fr_FR">
<App />
<a-locale-provider>
</a-locale-provider>
</template>
<script>
const { LocaleProvider, locales } = window.antd;

View File

@ -10,7 +10,7 @@ LocaleProvider 使用 Vue 的 [provide/inject](https://cn.vuejs.org/v2/api/#prov
<template>
<a-locale-provider :locale="zh_CN">
<App />
<a-locale-provider>
</a-locale-provider>
</template>
<script>
import zh_CN from 'antd/lib/locale-provider/zh_CN';
@ -33,7 +33,7 @@ export default {
<template>
<a-locale-provider :locale="locales.en_US">
<App />
<a-locale-provider>
</a-locale-provider>
</template>
<script>
const { LocaleProvider, locales } = window.antd;