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