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

21 lines
355 B
Vue
Raw Normal View History

2018-04-04 18:39:21 +08:00
<template>
2018-04-07 17:38:39 +08:00
<div class='markdown api-container'>
2018-04-04 18:39:21 +08:00
<slot v-if="isZhCN" name="cn"></slot>
<slot v-else></slot>
</div>
</template>
<script>
import { isZhCN } from '../util'
export default {
name: 'api',
2018-07-13 21:55:29 +08:00
inject: {
demoContext: { default: {}},
},
2018-04-04 18:39:21 +08:00
data () {
return {
2018-07-13 21:55:29 +08:00
isZhCN: isZhCN(this.demoContext.name),
2018-04-04 18:39:21 +08:00
}
},
}
</script>