Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2020-09-05 07:17:49 +08:00
82 changed files with 264 additions and 228 deletions
+15
View File
@@ -279,3 +279,18 @@ test('set rem item-height', async () => {
window.getComputedStyle = originGetComputedStyle;
});
test('readonly prop', () => {
const wrapper = mount(Picker, {
propsData: {
columns,
readonly: true,
},
});
triggerDrag(wrapper.find('.van-picker-column'), 0, -100);
wrapper.find('.van-picker-column ul').trigger('transitionend');
wrapper.findAll('.van-picker-column__item').at(3).trigger('click');
expect(wrapper.emitted('change')).toBeFalsy();
});