pull/165/head
wangxueliang 2018-01-26 14:29:32 +08:00
commit 24a9b6b65f
3 changed files with 3 additions and 5 deletions

View File

@ -36,9 +36,7 @@ export default {
<Multiple /> <Multiple />
<Size /> <Size />
<api> <api>
<template slot='cn'> <CN slot='cn' />
<CN/>
</template>
<US/> <US/>
</api> </api>
</div> </div>

View File

@ -19,5 +19,5 @@
| --- | --- | --- | | --- | --- | --- |
| click | `click` 事件的 handler | function(e) | | click | `click` 事件的 handler | function(e) |
`<Button>Hello world!</Button>` 最终会被渲染为 `<button><span>Hello world!</span></button>`,并且除了上表中的属性,其它属性都会直接传到 `<button></button>` `<a-button>Hello world!</a-button>` 最终会被渲染为 `<button><span>Hello world!</span></button>`,并且除了上表中的属性,其它属性都会直接传到 `<button></button>`

View File

@ -1,6 +1,6 @@
<template> <template>
<div class='markdown api-container'> <div class='markdown api-container'>
<slot v-if="lang === 'cn'" name="cn" class='markdown api-container'></slot> <slot v-if="lang === 'cn'" name="cn"></slot>
<slot v-else></slot> <slot v-else></slot>
</div> </div>
</template> </template>