[bugfix] Area: should support set columns-num dynamically

This commit is contained in:
陈嘉涵
2019-06-03 11:06:27 +08:00
parent 27b784d2ec
commit cf3b797b20
3 changed files with 48 additions and 0 deletions
+16
View File
@@ -106,3 +106,19 @@ test('reset method', async () => {
wrapper.vm.reset();
expect(wrapper).toMatchSnapshot();
});
test('columns-num prop', async () => {
const wrapper = mount(Area, {
propsData: {
areaList,
columnsNum: 3
}
});
wrapper.setProps({
columnsNum: 2
});
await later();
expect(wrapper).toMatchSnapshot();
});