2018-03-09 10:52:31 +00:00
|
|
|
|
<script>
|
2018-03-10 12:46:57 +00:00
|
|
|
|
import CustomizedProgressDot from './customized-progress-dot'
|
|
|
|
|
import Error from './error'
|
|
|
|
|
import Icon from './icon'
|
|
|
|
|
import ProgressDot from './progress-dot'
|
|
|
|
|
import Simple from './simple'
|
|
|
|
|
import SmallSize from './small-size'
|
|
|
|
|
import StepNext from './step-next'
|
|
|
|
|
import VerticalSmall from './vertical-small'
|
|
|
|
|
import Vertical from './vertical'
|
|
|
|
|
import CN from '../index.zh-CN.md'
|
|
|
|
|
import US from '../index.en-US.md'
|
|
|
|
|
|
|
|
|
|
const md = {
|
|
|
|
|
cn: `# Steps
|
|
|
|
|
|
|
|
|
|
引导用户按照流程完成任务的导航条。
|
|
|
|
|
|
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
|
|
当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。
|
|
|
|
|
## 代码演示`,
|
|
|
|
|
us: `# Steps
|
|
|
|
|
|
|
|
|
|
'Steps' is a navigation bar that guides users through the steps of a task.
|
|
|
|
|
|
|
|
|
|
# When To Use
|
|
|
|
|
|
2018-03-20 13:48:01 +00:00
|
|
|
|
When the task is complicated or has a certain sequence in the series of subtasks, we can decompose it into several steps to make things easier.
|
|
|
|
|
## Examples
|
|
|
|
|
`,
|
2018-03-10 12:46:57 +00:00
|
|
|
|
}
|
2018-03-09 10:52:31 +00:00
|
|
|
|
export default {
|
2018-03-11 04:48:04 +00:00
|
|
|
|
category: 'Components',
|
|
|
|
|
subtitle: '步骤条',
|
|
|
|
|
type: 'Navigation',
|
|
|
|
|
cols: 1,
|
|
|
|
|
title: 'Steps',
|
2018-03-10 12:46:57 +00:00
|
|
|
|
render () {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<md cn={md.cn} us={md.us}/>
|
|
|
|
|
<Simple />
|
|
|
|
|
<br/>
|
|
|
|
|
<SmallSize />
|
|
|
|
|
<br/>
|
|
|
|
|
<Icon />
|
|
|
|
|
<br/>
|
|
|
|
|
<StepNext />
|
|
|
|
|
<br/>
|
|
|
|
|
<Vertical />
|
|
|
|
|
<br/>
|
|
|
|
|
<VerticalSmall />
|
|
|
|
|
<br/>
|
|
|
|
|
<Error />
|
|
|
|
|
<br/>
|
|
|
|
|
<ProgressDot />
|
|
|
|
|
<br/>
|
|
|
|
|
<CustomizedProgressDot />
|
|
|
|
|
<br/>
|
|
|
|
|
<api>
|
|
|
|
|
<template slot='cn'>
|
|
|
|
|
<CN/>
|
|
|
|
|
</template>
|
|
|
|
|
<US/>
|
|
|
|
|
</api>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2018-03-09 10:52:31 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|