ant-design-vue/site/components/api.vue

19 lines
347 B
Vue
Raw Normal View History

2018-04-04 10:39:21 +00:00
<template>
2018-04-04 16:07:04 +00:00
<div class='markdown api-container' id="component-api">
2018-04-04 10:39:21 +00:00
<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>