mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 09:21:25 +08:00
19 lines
328 B
Vue
19 lines
328 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',
|
||
|
data () {
|
||
|
const { name } = this.$route.params
|
||
|
return {
|
||
|
isZhCN: isZhCN(name),
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
</script>
|