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

72 lines
1.6 KiB
Vue
Raw Normal View History

2018-03-09 10:52:31 +00:00
<script>
2019-01-12 03:33:27 +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';
2018-03-10 12:46:57 +00:00
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
`,
2019-01-12 03:33:27 +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',
2019-09-28 12:45:07 +00:00
render() {
2018-03-10 12:46:57 +00:00
return (
<div>
2019-09-28 12:45:07 +00:00
<md cn={md.cn} us={md.us} />
2018-03-10 12:46:57 +00:00
<Simple />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<SmallSize />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<Icon />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<StepNext />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<Vertical />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<VerticalSmall />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<Error />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<ProgressDot />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<CustomizedProgressDot />
2019-09-28 12:45:07 +00:00
<br />
2018-03-10 12:46:57 +00:00
<api>
2019-09-28 12:45:07 +00:00
<template slot="cn">
<CN />
2018-03-10 12:46:57 +00:00
</template>
2019-09-28 12:45:07 +00:00
<US />
2018-03-10 12:46:57 +00:00
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2018-03-09 10:52:31 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-03-09 10:52:31 +00:00
</script>