[new feature] TreeSelect: support string type of height prop (#4107)

This commit is contained in:
neverland
2019-08-13 12:00:50 +08:00
committed by GitHub
parent 7ad5323836
commit 2843352adb
5 changed files with 23 additions and 6 deletions
@@ -15,3 +15,10 @@ exports[`empty list 1`] = `
<div class="van-tree-select__content"></div>
</div>
`;
exports[`height prop 1`] = `
<div class="van-tree-select" style="height: 100vh;">
<div class="van-tree-select__nav"></div>
<div class="van-tree-select__content"></div>
</div>
`;
+10
View File
@@ -141,3 +141,13 @@ test('content slot', () => {
expect(wrapper).toMatchSnapshot();
});
test('height prop', () => {
const wrapper = mount(TreeSelect, {
propsData: {
height: '100vh'
}
});
expect(wrapper).toMatchSnapshot();
});