[new feature] Cell: add title-style prop (#3233)

This commit is contained in:
neverland
2019-04-28 20:41:47 +08:00
committed by GitHub
parent 9aca0d0867
commit 0b774ed7c0
6 changed files with 25 additions and 7 deletions
+13
View File
@@ -42,3 +42,16 @@ test('render slot', () => {
expect(wrapper).toMatchSnapshot();
});
test('title-style prop', () => {
const wrapper = mount(Cell, {
propsData: {
title: 'title',
titleStyle: {
color: 'red'
}
}
});
expect(wrapper).toMatchSnapshot();
});