Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
muChangApp
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
WitCloud
muChangApp
Commits
314ba28d
Commit
314ba28d
authored
Jun 12, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报警组件
parent
0c149dff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
18 deletions
+38
-18
alarm-bar.component.html
src/app/components/alarm-bar/alarm-bar.component.html
+3
-2
alarm-bar.component.scss
src/app/components/alarm-bar/alarm-bar.component.scss
+34
-15
alarm-bar.component.ts
src/app/components/alarm-bar/alarm-bar.component.ts
+1
-1
No files found.
src/app/components/alarm-bar/alarm-bar.component.html
View file @
314ba28d
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<Icon
[
type
]="'
voice
'"
class=
"alarmLeftIcon"
></Icon>
<Icon
[
type
]="'
voice
'"
class=
"alarmLeftIcon"
></Icon>
<div
class=
"alarmShows"
>
<div
class=
"alarmShows"
>
<div
class=
"alarmItem"
*
ngFor=
"let one of options;let i = index"
<div
class=
"alarmItem"
*
ngFor=
"let one of options;let i = index"
[
ngClass
]="{'
active
'
:
active =
==
i
,
'
unActive
'
:
active
!==
i
}"
>
{{one.a}}
</div>
[
ngClass
]="{'
active
'
:
active =
==
i
,
'
unActive
'
:
active
!==
i
}"
>
{{one.a}}
<div>
{{one.time | date: 'yyyy-MM-dd HH:mm:ss'}}
</div>
<div
class=
"alarmTime"
>
{{one.time | date: 'yyyy-MM-dd HH:mm:ss'}}
</div>
</div>
</div>
</div>
</div>
</div>
src/app/components/alarm-bar/alarm-bar.component.scss
View file @
314ba28d
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
}
}
.alarmLeftIcon
{
.alarmLeftIcon
{
color
:
#f
98e55
;
color
:
#f
f0000
;
height
:
20px
;
height
:
20px
;
width
:
20px
;
width
:
20px
;
display
:
inline-flex
;
display
:
inline-flex
;
text-align
:
center
;
text-align
:
center
;
padding
:
0
5px
0
15px
;
padding
:
7px
5px
0
15px
;
vertical-align
:
middle
;
vertical-align
:
top
;
}
}
.alarmShows
{
.alarmShows
{
...
@@ -25,64 +25,83 @@
...
@@ -25,64 +25,83 @@
.alarmItem
{
.alarmItem
{
width
:
100%
;
width
:
100%
;
color
:
#ff0000
;
font-size
:
12px
;
height
:
auto
;
}
}
.alarmItem.active
{
.alarmItem.active
{
display
:
block
;
display
:
block
;
-webkit-animation
:
slideIn
.2
s
forwards
;
-webkit-animation
:
slideIn
1
s
forwards
;
animation
:
slideIn
.2
s
forwards
;
animation
:
slideIn
1
s
forwards
;
}
}
.alarmItem.unActive
{
.alarmItem.unActive
{
display
:
none
;
display
:
none
;
-webkit-animation
:
slideOut
.2s
forwards
;
-webkit-animation
:
slideOut
1s
forwards
;
animation
:
slideOut
.2s
forwards
;
animation
:
slideOut
1s
forwards
;
}
.alarmTime
{
text-align
:
right
;
padding-right
:
10px
;
color
:
#ff0000
;
font-size
:
12px
;
padding-top
:
5px
;
}
}
@-webkit-keyframes
slideIn
{
@-webkit-keyframes
slideIn
{
from
{
from
{
-webkit-transform
:
translate3d
(
0
,
100%
,
0
);
-webkit-transform
:
translate3d
(
0
,
100%
,
0
);
transform
:
translate3d
(
0
,
100%
,
0
)
transform
:
translate3d
(
0
,
100%
,
0
);
opacity
:
0
;
}
}
to
{
to
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
)
transform
:
translate3d
(
0
,
0
,
0
);
opacity
:
1
;
}
}
}
}
@keyframes
slideIn
{
@keyframes
slideIn
{
from
{
from
{
-webkit-transform
:
translate3d
(
0
,
100%
,
0
);
-webkit-transform
:
translate3d
(
0
,
100%
,
0
);
transform
:
translate3d
(
0
,
100%
,
0
)
transform
:
translate3d
(
0
,
100%
,
0
);
opacity
:
0
;
}
}
to
{
to
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
)
transform
:
translate3d
(
0
,
0
,
0
);
opacity
:
1
;
}
}
}
}
@-webkit-keyframes
slideOut
{
@-webkit-keyframes
slideOut
{
from
{
from
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
)
transform
:
translate3d
(
0
,
0
,
0
);
opacity
:
1
;
}
}
to
{
to
{
-webkit-transform
:
translate3d
(
0
,
100%
,
0
);
-webkit-transform
:
translate3d
(
0
,
100%
,
0
);
transform
:
translate3d
(
0
,
100%
,
0
)
transform
:
translate3d
(
0
,
100%
,
0
);
opacity
:
0
;
}
}
}
}
@keyframes
slideOut
{
@keyframes
slideOut
{
from
{
from
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
)
transform
:
translate3d
(
0
,
0
,
0
);
opacity
:
1
;
}
}
to
{
to
{
-webkit-transform
:
translate3d
(
0
,
100%
,
0
);
-webkit-transform
:
translate3d
(
0
,
100%
,
0
);
transform
:
translate3d
(
0
,
100%
,
0
)
transform
:
translate3d
(
0
,
100%
,
0
);
opacity
:
0
;
}
}
}
}
src/app/components/alarm-bar/alarm-bar.component.ts
View file @
314ba28d
...
@@ -26,7 +26,7 @@ export class AlarmBarComponent implements OnInit {
...
@@ -26,7 +26,7 @@ export class AlarmBarComponent implements OnInit {
this
.
active
++
;
this
.
active
++
;
}
}
this
.
changeAlarm
();
this
.
changeAlarm
();
},
2
000
);
},
3
000
);
}
}
ngOnInit
()
{
ngOnInit
()
{
...
...
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