mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-14 08:51:28 +08:00
26 lines
439 B
Vue
26 lines
439 B
Vue
<template>
|
|
<div class="markdown api-container">
|
|
<GoogleAds />
|
|
<slot v-if="isZhCN" name="cn" />
|
|
<slot v-else />
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import { isZhCN } from '../util';
|
|
import GoogleAds from './GoogleAds';
|
|
export default {
|
|
components: {
|
|
GoogleAds,
|
|
},
|
|
name: 'Api',
|
|
inject: {
|
|
demoContext: { default: {} },
|
|
},
|
|
data() {
|
|
return {
|
|
isZhCN: isZhCN(this.demoContext.name),
|
|
};
|
|
},
|
|
};
|
|
</script>
|