[new feature] ActionSheet: add color option (#4073)

This commit is contained in:
neverland
2019-08-08 20:48:24 +08:00
committed by GitHub
parent c012b29a20
commit a75e4cfb18
7 changed files with 29 additions and 6 deletions

View File

@@ -151,3 +151,14 @@ test('round prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('color option', () => {
const wrapper = mount(ActionSheet, {
propsData: {
value: true,
actions: [{ name: 'Option', color: 'red' }]
}
});
expect(wrapper).toMatchSnapshot();
});