ant-design-vue/site/components/api.vue
2019-10-31 19:42:49 +08:00

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>