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