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.
24 lines
364 B
24 lines
364 B
<template>
|
|
<div class="markdown api-container">
|
|
<slot
|
|
v-if="isZhCN"
|
|
name="cn"
|
|
/>
|
|
<slot v-else />
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import { isZhCN } from '../util';
|
|
export default {
|
|
name: 'Api',
|
|
inject: {
|
|
demoContext: { default: {}},
|
|
},
|
|
data () {
|
|
return {
|
|
isZhCN: isZhCN(this.demoContext.name),
|
|
};
|
|
},
|
|
};
|
|
</script>
|