docs: update demo

This commit is contained in:
tangjinzhou 2018-12-15 21:50:43 +08:00
parent fb3df9e9d0
commit e1cd139e8b
4 changed files with 3 additions and 24 deletions

View File

@ -1,19 +0,0 @@
<cn>
#### 简洁卡片
只包含内容区域
</cn>
<us>
#### Simple card
A simple card only containing a content area.
</us>
```html
<template>
<a-card style="width:300px">
<p>Card content</p>
<p>Card content</p>
<p>Card content</p>
</a-card>
</template>
```

View File

@ -1,7 +1,6 @@
<script>
import Basic from './basic.md'
import BorderLess from './border-less.md'
import Concise from './concise.md'
import FlexibleContent from './flexible-content.md'
import GridCard from './grid-card.md'
import InColumn from './in-column.md'
@ -43,7 +42,6 @@ export default {
<md cn={md.cn} us={md.us} />
<Basic/>
<BorderLess/>
<Concise/>
<FlexibleContent/>
<GridCard/>
<InColumn/>

View File

@ -1,11 +1,11 @@
<cn>
#### 确认对话框
#### 确认对话框(promise)
使用 `confirm()` 可以快捷地弹出确认框。onCancel/onOk 返回 promise 可以延迟关闭
</cn>
<us>
#### Confirmation modal dialog
#### Confirmation modal dialog use promise
To use `confirm()` to popup confirmation modal dialog. Let onCancel/onOk function return a promise object to
delay closing the dialog.
</us>

View File

@ -14,7 +14,7 @@
<slot v-if="isZhCN" name="description"></slot>
<slot v-else name="us-description"></slot>
<span class="btn-toggle" :class="{open: isOpen}" @click="toggle">
<a-icon type="down" />
<a-icon type="up" />
</span>
</section>
<transition appear :css="false" @enter="enter" @leave="leave">