mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
[breaking change] Popup: add lockScroll instead of lockOnScroll & preventScroll (#688)
This commit is contained in:
@@ -24,8 +24,7 @@ describe('Popup', () => {
|
||||
propsData: {
|
||||
value: false,
|
||||
zIndex: 100,
|
||||
overlay: false,
|
||||
lockOnScroll: true
|
||||
overlay: false
|
||||
}
|
||||
});
|
||||
|
||||
@@ -64,7 +63,6 @@ describe('Popup', () => {
|
||||
it('popup prevent scroll', (done) => {
|
||||
wrapper = mount(Popup, {
|
||||
propsData: {
|
||||
preventScroll: true,
|
||||
value: true
|
||||
}
|
||||
});
|
||||
@@ -89,7 +87,6 @@ describe('Popup', () => {
|
||||
it('popup modal', (done) => {
|
||||
wrapper = mount(Popup, {
|
||||
propsData: {
|
||||
preventScroll: true,
|
||||
value: true
|
||||
}
|
||||
});
|
||||
@@ -120,12 +117,12 @@ describe('Popup', () => {
|
||||
wrapper = mount(Popup, {
|
||||
propsData: {
|
||||
overlay: '',
|
||||
lockOnScroll: '',
|
||||
lockScroll: '',
|
||||
closeOnClickOverlay: ''
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.vm.lockOnScroll).to.be.true;
|
||||
expect(wrapper.vm.lockScroll).to.be.true;
|
||||
});
|
||||
|
||||
it('get container prop', done => {
|
||||
|
Reference in New Issue
Block a user