chore: update

refactor-drawer
ajuner 2021-09-28 14:23:15 +08:00 committed by tangjinzhou
parent 42fad57e49
commit 56a4d33ebf
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ exports[`renders ./components/drawer/demo/render-in-current.vue correctly 1`] =
`; `;
exports[`renders ./components/drawer/demo/size.vue correctly 1`] = ` exports[`renders ./components/drawer/demo/size.vue correctly 1`] = `
<button class="ant-btn ant-btn-primary" type="button"> <button style="margin-right: 8px;" class="ant-btn ant-btn-primary" type="button">
<!----><span>Open Default Size (378px)</span> <!----><span>Open Default Size (378px)</span>
</button><button class="ant-btn ant-btn-primary" type="button"> </button><button class="ant-btn ant-btn-primary" type="button">
<!----><span>Open Large Size (736px)</span> <!----><span>Open Large Size (736px)</span>

View File

@ -27,8 +27,8 @@ export interface scrollLockOptions {
} }
const createScrollLocker = (options: scrollLockOptions) => { const createScrollLocker = (options: scrollLockOptions) => {
let scrollBarSize = 0; const scrollBarSize = 0;
let cacheStyleMap = new Map(); const cacheStyleMap = new Map();
return { return {
getContainer: () => { getContainer: () => {
return options?.container; return options?.container;