ant-design-vue/components/spin/demo/index.vue

57 lines
1.3 KiB
Vue
Raw Normal View History

2018-02-09 09:09:50 +00:00
<script>
import CustomIndicator from './custom-indicator'
import Basic from './basic'
import DelayAndDebounce from './delayAndDebounce'
import Inside from './inside'
import Nested from './nested'
import Size from './size'
import Tip from './tip'
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# Spin 加载中
用于页面和区块的加载中状态
## 何时使用
页面局部处于等待异步数据或正在渲染过程时合适的加载动效会有效缓解用户的焦虑
## 代码演示`,
us: `# Spin
A spinner for displaying loading state of a page or a section.
# When To Use
2018-03-20 13:48:01 +00:00
When part of the page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude.
## Examples `,
2018-02-09 09:09:50 +00:00
}
export default {
2018-03-20 13:48:01 +00:00
category: 'Components',
type: 'Feedback',
title: 'Spin',
subtitle: '加载中',
2018-02-09 09:09:50 +00:00
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Basic />
<Size />
<Inside />
<Nested />
<Tip />
<DelayAndDebounce />
<CustomIndicator />
<api>
<template slot='cn'>
<CN/>
</template>
<US/>
</api>
</div>
)
},
}
</script>