feat(Steps): add inactive-color prop (#6758)

This commit is contained in:
neverland
2020-07-11 10:24:03 +08:00
committed by GitHub
parent f1e9ca182e
commit 709b822c06
6 changed files with 54 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();
});