[breaking change] Popup: add lockScroll instead of lockOnScroll & preventScroll (#688)

This commit is contained in:
neverland
2018-03-14 11:07:48 +08:00
committed by GitHub
parent 7d3768591f
commit d36dd61bc9
12 changed files with 33 additions and 61 deletions

View File

@@ -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 => {