feat(Steps): add inactive-color prop

This commit is contained in:
chenjiahan
2020-07-12 14:48:44 +08:00
parent f7c6de7a28
commit 296315c48f
5 changed files with 36 additions and 15 deletions
+12
View File
@@ -47,3 +47,15 @@ test('click-step event', () => {
expect(onClickStep).toHaveBeenCalledTimes(2);
expect(onClickStep).toHaveBeenLastCalledWith(2);
});
test('inactive-color prop', () => {
const wrapper = mount({
template: `
<van-steps :active="0" inactive-color="red">
<van-step>A</van-step>
<van-step>B</van-step>
</van-steps>
`,
});
expect(wrapper).toMatchSnapshot();
});