init component
This commit is contained in:
5
node_modules/buetify/lib/components/scroll/BScroll.d.ts
generated
vendored
Executable file
5
node_modules/buetify/lib/components/scroll/BScroll.d.ts
generated
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
import './scroll.sass';
|
||||
declare const _default: import("vue").FunctionalComponent<{
|
||||
tag?: string | undefined;
|
||||
}, {}>;
|
||||
export default _default;
|
||||
25
node_modules/buetify/lib/components/scroll/BScroll.js
generated
vendored
Executable file
25
node_modules/buetify/lib/components/scroll/BScroll.js
generated
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
import "../../../src/components/scroll/scroll.sass";
|
||||
import { getSimpleFunctionalComponent } from '../../utils/getSimpleFunctionalComponent';
|
||||
|
||||
function testWindowScrollbar() {
|
||||
const parent = document.createElement('div');
|
||||
parent.setAttribute('style', 'width:30px;height:30px;');
|
||||
parent.classList.add('scrollbar-test');
|
||||
const child = document.createElement('div');
|
||||
child.setAttribute('style', 'width:100%;height:40px');
|
||||
parent.appendChild(child);
|
||||
document.body.appendChild(parent); // eslint-disable-next-line
|
||||
// @ts-ignore
|
||||
|
||||
const scrollbarWidth = 30 - parent.firstChild.clientWidth;
|
||||
|
||||
if (scrollbarWidth) {
|
||||
document.body.classList.add('layout-scrollbar-obtrusive');
|
||||
}
|
||||
|
||||
document.body.removeChild(parent);
|
||||
}
|
||||
|
||||
requestAnimationFrame(testWindowScrollbar);
|
||||
export default getSimpleFunctionalComponent('b-scroll', 'div');
|
||||
//# sourceMappingURL=BScroll.js.map
|
||||
1
node_modules/buetify/lib/components/scroll/BScroll.js.map
generated
vendored
Executable file
1
node_modules/buetify/lib/components/scroll/BScroll.js.map
generated
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/components/scroll/BScroll.ts"],"names":[],"mappings":"AAAA,OAAO,4CAAP;AACA,SAAS,4BAAT,QAA6C,0CAA7C;;AAEA,SAAS,mBAAT,GAA4B;AAC1B,QAAM,MAAM,GAAG,QAAQ,CAAC,aAAT,CAAuB,KAAvB,CAAf;AACA,EAAA,MAAM,CAAC,YAAP,CAAoB,OAApB,EAA6B,yBAA7B;AACA,EAAA,MAAM,CAAC,SAAP,CAAiB,GAAjB,CAAqB,gBAArB;AAEA,QAAM,KAAK,GAAG,QAAQ,CAAC,aAAT,CAAuB,KAAvB,CAAd;AACA,EAAA,KAAK,CAAC,YAAN,CAAmB,OAAnB,EAA4B,wBAA5B;AACA,EAAA,MAAM,CAAC,WAAP,CAAmB,KAAnB;AACA,EAAA,QAAQ,CAAC,IAAT,CAAc,WAAd,CAA0B,MAA1B,EAR0B,CAU1B;AACA;;AACA,QAAM,cAAc,GAAG,KAAK,MAAM,CAAC,UAAP,CAAkB,WAA9C;;AACA,MAAI,cAAJ,EAAoB;AAClB,IAAA,QAAQ,CAAC,IAAT,CAAc,SAAd,CAAwB,GAAxB,CAA4B,4BAA5B;AACD;;AACD,EAAA,QAAQ,CAAC,IAAT,CAAc,WAAd,CAA0B,MAA1B;AACD;;AAED,qBAAqB,CAAC,mBAAD,CAArB;AAEA,eAAe,4BAA4B,CAAC,UAAD,EAAa,KAAb,CAA3C","sourcesContent":["import './scroll.sass';\nimport { getSimpleFunctionalComponent } from '../../utils/getSimpleFunctionalComponent';\n\nfunction testWindowScrollbar() {\n const parent = document.createElement('div');\n parent.setAttribute('style', 'width:30px;height:30px;');\n parent.classList.add('scrollbar-test');\n\n const child = document.createElement('div');\n child.setAttribute('style', 'width:100%;height:40px');\n parent.appendChild(child);\n document.body.appendChild(parent);\n\n // eslint-disable-next-line\n // @ts-ignore\n const scrollbarWidth = 30 - parent.firstChild.clientWidth;\n if (scrollbarWidth) {\n document.body.classList.add('layout-scrollbar-obtrusive');\n }\n document.body.removeChild(parent);\n}\n\nrequestAnimationFrame(testWindowScrollbar);\n\nexport default getSimpleFunctionalComponent('b-scroll', 'div');\n"],"sourceRoot":"","file":"BScroll.js"}
|
||||
3
node_modules/buetify/lib/components/scroll/index.d.ts
generated
vendored
Executable file
3
node_modules/buetify/lib/components/scroll/index.d.ts
generated
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
import BScroll from './BScroll';
|
||||
export { BScroll };
|
||||
export default BScroll;
|
||||
4
node_modules/buetify/lib/components/scroll/index.js
generated
vendored
Executable file
4
node_modules/buetify/lib/components/scroll/index.js
generated
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
import BScroll from './BScroll';
|
||||
export { BScroll };
|
||||
export default BScroll;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/buetify/lib/components/scroll/index.js.map
generated
vendored
Executable file
1
node_modules/buetify/lib/components/scroll/index.js.map
generated
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/components/scroll/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAP,MAAoB,WAApB;AAEA,SAAS,OAAT;AAEA,eAAe,OAAf","sourcesContent":["import BScroll from './BScroll';\n\nexport { BScroll };\n\nexport default BScroll;\n"],"sourceRoot":"","file":"index.js"}
|
||||
Reference in New Issue
Block a user