ant-design-vue/components/vc-steps/demo/simple.vue

40 lines
1.3 KiB
Vue
Raw Normal View History

2018-03-09 18:52:31 +08:00
<script>
2019-01-12 11:33:27 +08:00
import Steps, { Step } from '../index';
import '../assets/index.less';
import '../assets/iconfont.less';
2018-03-09 18:52:31 +08:00
export default {
2019-09-28 20:45:07 +08:00
data() {
2018-03-09 18:52:31 +08:00
return {
2019-09-28 20:45:07 +08:00
description:
'这里是多信息的描述啊这里是多信息的描述啊这里是多信息的描述啊这里是多信息的描述啊这里是多信息的描述啊',
2019-01-12 11:33:27 +08:00
};
2018-03-09 18:52:31 +08:00
},
2019-09-28 20:45:07 +08:00
render() {
2019-01-12 11:33:27 +08:00
const { description } = this;
2018-03-09 18:52:31 +08:00
return (
<div>
<Steps current={1}>
2019-09-28 20:45:07 +08:00
<Step title="已完成" />
<Step title="进行中" />
<Step title="待运行" />
<Step title="待运行" />
2018-03-09 18:52:31 +08:00
</Steps>
<Steps current={1} style={{ marginTop: 40 }}>
2019-09-28 20:45:07 +08:00
<Step title="已完成" description={description} />
<Step title="进行中" description={description} />
<Step title="待运行" description={description} />
<Step title="待运行" description={description} />
2018-03-09 18:52:31 +08:00
</Steps>
2019-09-28 20:45:07 +08:00
<Steps current={1} style={{ marginTop: 40 }} status="error">
<Step title="已完成" description={description} />
<Step title="进行中" description={description} />
<Step title="待运行" description={description} />
<Step title="待运行" description={description} />
2018-03-09 18:52:31 +08:00
</Steps>
</div>
2019-01-12 11:33:27 +08:00
);
2018-03-09 18:52:31 +08:00
},
2019-01-12 11:33:27 +08:00
};
2018-03-09 18:52:31 +08:00
</script>