/
githubmirror
/
element
Обзор
Документация
Войти
/
githubmirror
/
element
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/steps/src/steps.vue
68 строк
1 KB
wayne
Carbon: add migration mixin for breaking changes
19 окт 2017, 09:01
19 окт 2017, 09:01
b678772
Код
Авторство
О чём код?
<template> <div class="el-steps" :class="[ !simple && 'el-steps--' + direction, simple && 'el-steps--simple' ]"> <slot></slot> </div> </template> <script> import Migrating from 'element-ui/src/mixins/migrating'; export default { name: 'ElSteps', mixins: [Migrating], props: { space: [Number, String], active: Number, direction: { type: String, default: 'horizontal' }, alignCenter: Boolean, simple: Boolean, finishStatus: { type: String, default: 'finish' }, processStatus: { type: String, default: 'process' } }, data() { return { steps: [], stepOffset: 0 }; }, methods: { getMigratingConfig() { return { props: { 'center': 'center is removed.' } }; } }, watch: { active(newVal, oldVal) { this.$emit('change', newVal, oldVal); }, steps(steps) { steps.forEach((child, index) => { child.index = index; }); } } }; </script>