Dev: Elements tool

This commit is contained in:
surunzi
2016-03-15 21:58:29 +08:00
parent 6987451ba0
commit a3d8d6ef32
27 changed files with 2236 additions and 370 deletions

View File

@@ -23,7 +23,7 @@ export default class Network extends Tool
setTimeout(() =>
{
this._getPerformanceTimingData()
}, 3000);
}, 1000);
}, false);
}
_getPerformanceTimingData()

View File

@@ -1,7 +1,7 @@
<div class="eruda-performance-timing">
<div class="eruda-inner-wrapper">
{{#each data}}
<div class="eruda-bar {{#if @last}}eruda-last{{/if}}">
<div class="eruda-bar">
<span style="position:relative;left:{{start}}%;width:{{len}}%">{{name}}({{duration}}ms)</span>
</div>
{{/each}}

View File

@@ -3,6 +3,7 @@
.dev-tools { .tools {
.network {
overflow-y: auto;
-webkit-overflow-scrolling: touch;
.performance-timing {
padding: 10px;
.inner-wrapper {
@@ -10,6 +11,7 @@
.bar {
border-bottom: 1px solid #fff;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
span {
font-size: 14px;
white-space: nowrap;
@@ -18,7 +20,7 @@
background: $red-dark;
display: inline-block;
}
&.last {
&:last-child {
border-bottom: none;
}
}