mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 20:47:56 +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>
|