Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
9efde032
Unverified
Commit
9efde032
authored
Jan 24, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
b34c54fd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
1 deletion
+25
-1
controlnav.component.css
...p/ControlPage/control/controlnav/controlnav.component.css
+9
-0
controlnav.component.html
.../ControlPage/control/controlnav/controlnav.component.html
+6
-0
controlnav.component.ts
...pp/ControlPage/control/controlnav/controlnav.component.ts
+7
-1
app.module.ts
src/app/app.module.ts
+3
-0
No files found.
src/app/ControlPage/control/controlnav/controlnav.component.css
View file @
9efde032
...
...
@@ -97,3 +97,12 @@
.tabs
::-webkit-scrollbar-thumb
{
background-color
:
#19aa8d
;
}
.scroll-botton
{
font-size
:
20px
;
float
:
left
;
height
:
30px
;
overflow
:
hidden
;
background-color
:
#3a3333
;
color
:
white
}
src/app/ControlPage/control/controlnav/controlnav.component.html
View file @
9efde032
<div
class=
"scroll-botton"
>
<a
class=
"left"
(
click
)="
scrollleft
()"
><i
class=
"fa fa-caret-left"
></i></a>
<a
class=
"right"
(
click
)="
scrollright
()"
><i
class=
"fa fa-caret-right"
></i></a>
</div>
<div
class=
"tabs"
>
<ul
[
ngStyle
]="{'
width
'
:150
*
NavList
.
List
.
length
+'
px
'}"
>
<li
*
ngFor=
"let m of NavList.List;let i = index"
...
...
src/app/ControlPage/control/controlnav/controlnav.component.ts
View file @
9efde032
...
...
@@ -11,7 +11,6 @@ import {Component, OnInit} from '@angular/core';
import
{
ControlComponent
,
NavList
}
from
'../control.component'
;
import
*
as
jQuery
from
'jquery/dist/jquery.min.js'
;
@
Component
({
selector
:
'app-controlnav'
,
templateUrl
:
'./controlnav.component.html'
,
...
...
@@ -64,5 +63,12 @@ export class ControlnavComponent implements OnInit {
ControlnavComponent
.
checkActive
(
index
);
}
scrollleft
()
{
jQuery
(
'.tabs'
).
scrollLeft
(
jQuery
(
'.tabs'
).
scrollLeft
()
-
100
);
}
scrollright
()
{
jQuery
(
'.tabs'
).
scrollLeft
(
jQuery
(
'.tabs'
).
scrollLeft
()
+
100
);
}
}
src/app/app.module.ts
View file @
9efde032
...
...
@@ -53,6 +53,7 @@ import {WindowsComponent} from './monitor-page/windows/windows.component';
import
{
BrowserXhr
}
from
'@angular/http'
;
import
{
NgProgressModule
,
NgProgressBrowserXhr
}
from
'ngx-progressbar'
;
import
{
TestPageComponent
}
from
'./test-page/test-page.component'
;
import
{
HttpClient
,
HttpHandler
}
from
'@angular/common/http'
;
// import {NgxLayerModule} from 'ngx-layer';
@
NgModule
({
...
...
@@ -103,6 +104,8 @@ import {TestPageComponent} from './test-page/test-page.component';
HttpService
,
LayerService
,
NGXLogger
,
HttpClient
,
HttpHandler
]
})
export
class
AppModule
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment