mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
feat(Dialog): add width prop (#4687)
This commit is contained in:
@@ -134,3 +134,14 @@ test('open & close event', () => {
|
||||
wrapper.vm.value = false;
|
||||
expect(wrapper.emitted('close')).toBeTruthy();
|
||||
});
|
||||
|
||||
test('width prop', () => {
|
||||
const wrapper = mount(DialogComponent, {
|
||||
propsData: {
|
||||
value: true,
|
||||
width: 200
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.element.style.width).toEqual('200px');
|
||||
});
|
||||
|
Reference in New Issue
Block a user