[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
@@ -11,3 +11,9 @@ exports[`render slot 1`] = `
</div>Custom Extra
</div>
`;
exports[`title-style prop 1`] = `
<div class="van-cell">
<div class="van-cell__title" style="color: red;"><span>title</span></div>
</div>
`;
+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();
});