mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-31 05:44:07 +03:00
ngx, react & vue wrapper final touch
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
.App {
|
||||
min-width: 600px;
|
||||
}
|
||||
.header {
|
||||
background: #36befd;
|
||||
background: -moz-linear-gradient(-45deg, #36befd 1%, #6461f6 100%);
|
||||
|
||||
@@ -72,21 +72,21 @@ export default class App extends React.Component<any, AppState> {
|
||||
let loremIpsums = [this.loremIpsumLong, this.loremIpsumMedium, this.loremIpsumShort];
|
||||
let random = Math.floor(Math.random() * loremIpsums.length);
|
||||
this.setState({
|
||||
componentContent: this.state.componentContent + "\r\n" + loremIpsums[random]
|
||||
componentContent: this.state.componentContent + '\r\n' + loremIpsums[random]
|
||||
});
|
||||
}
|
||||
|
||||
onBtnLog() {
|
||||
console.log(`== ${this.componentClass} (1) ==`);
|
||||
console.log("Instance:");
|
||||
console.log('Instance:');
|
||||
console.log(this.osComponentRef1.current!.osInstance());
|
||||
console.log("Target:");
|
||||
console.log('Target:');
|
||||
console.log(this.osComponentRef1.current!.osTarget());
|
||||
console.log("");
|
||||
console.log('');
|
||||
console.log(`== ${this.componentClass} (2) ==`);
|
||||
console.log("Instance:");
|
||||
console.log('Instance:');
|
||||
console.log(this.osComponentRef2.current!.osInstance());
|
||||
console.log("Target:");
|
||||
console.log('Target:');
|
||||
console.log(this.osComponentRef2.current!.osTarget());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'overlayscrollbars/css/OverlayScrollbars.css'
|
||||
import 'overlayscrollbars/css/OverlayScrollbars.css';
|
||||
import './index.css';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
|
||||
Reference in New Issue
Block a user