[new feature] Step: add inactive-icon slot

This commit is contained in:
陈嘉涵
2019-05-02 10:28:30 +08:00
parent 4d4ad7960b
commit e9e6e238db
6 changed files with 65 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
import { mount } from '../../../test/utils';
import Steps from '..';
import Step from '../../step';
test('icon slot', () => {
const wrapper = mount({
template: `
<steps :active="1">
<step>
<template v-slot:inactive-icon>Custim Inactive Icon</template>
A
</step>
<step>
<template v-slot:active-icon>Custim Active Icon</template>
B
</step>
<step>
<template v-slot:inactive-icon>Custim Inactive Icon</template>
C
</step>
</steps>
`,
components: {
Steps,
Step
}
});
expect(wrapper).toMatchSnapshot();
});