wangxueliang 7 years ago
parent
commit
4042b51761
  1. 4
      components/button/demo/index.vue
  2. 2
      components/button/index.zh-CN.md
  3. 2
      examples/components/api.vue

4
components/button/demo/index.vue

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

2
components/button/index.zh-CN.md

@ -19,5 +19,5 @@
| --- | --- | --- |
| 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>`

2
examples/components/api.vue

@ -1,6 +1,6 @@
<template>
<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>
</div>
</template>

Loading…
Cancel
Save