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

39 lines
1.3 KiB
Vue
Raw Normal View History

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