You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/site/components/api.vue

21 lines
355 B

7 years ago
<template>
7 years ago
<div class='markdown api-container'>
7 years ago
<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: {}},
},
7 years ago
data () {
return {
isZhCN: isZhCN(this.demoContext.name),
7 years ago
}
},
}
</script>