docs: update demo
parent
fb3df9e9d0
commit
e1cd139e8b
|
@ -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>
|
|
||||||
```
|
|
|
@ -1,7 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import Basic from './basic.md'
|
import Basic from './basic.md'
|
||||||
import BorderLess from './border-less.md'
|
import BorderLess from './border-less.md'
|
||||||
import Concise from './concise.md'
|
|
||||||
import FlexibleContent from './flexible-content.md'
|
import FlexibleContent from './flexible-content.md'
|
||||||
import GridCard from './grid-card.md'
|
import GridCard from './grid-card.md'
|
||||||
import InColumn from './in-column.md'
|
import InColumn from './in-column.md'
|
||||||
|
@ -43,7 +42,6 @@ export default {
|
||||||
<md cn={md.cn} us={md.us} />
|
<md cn={md.cn} us={md.us} />
|
||||||
<Basic/>
|
<Basic/>
|
||||||
<BorderLess/>
|
<BorderLess/>
|
||||||
<Concise/>
|
|
||||||
<FlexibleContent/>
|
<FlexibleContent/>
|
||||||
<GridCard/>
|
<GridCard/>
|
||||||
<InColumn/>
|
<InColumn/>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
|
||||||
<cn>
|
<cn>
|
||||||
#### 确认对话框
|
#### 确认对话框(promise)
|
||||||
使用 `confirm()` 可以快捷地弹出确认框。onCancel/onOk 返回 promise 可以延迟关闭
|
使用 `confirm()` 可以快捷地弹出确认框。onCancel/onOk 返回 promise 可以延迟关闭
|
||||||
</cn>
|
</cn>
|
||||||
|
|
||||||
<us>
|
<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
|
To use `confirm()` to popup confirmation modal dialog. Let onCancel/onOk function return a promise object to
|
||||||
delay closing the dialog.
|
delay closing the dialog.
|
||||||
</us>
|
</us>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<slot v-if="isZhCN" name="description"></slot>
|
<slot v-if="isZhCN" name="description"></slot>
|
||||||
<slot v-else name="us-description"></slot>
|
<slot v-else name="us-description"></slot>
|
||||||
<span class="btn-toggle" :class="{open: isOpen}" @click="toggle">
|
<span class="btn-toggle" :class="{open: isOpen}" @click="toggle">
|
||||||
<a-icon type="down" />
|
<a-icon type="up" />
|
||||||
</span>
|
</span>
|
||||||
</section>
|
</section>
|
||||||
<transition appear :css="false" @enter="enter" @leave="leave">
|
<transition appear :css="false" @enter="enter" @leave="leave">
|
||||||
|
|
Loading…
Reference in New Issue