未验证 提交 7bd1094c 编写于 作者: Q Qiuxia Fan 提交者: GitHub

feat: add status color (#320)

上级 06faa2d4
......@@ -15,8 +15,15 @@ limitations under the License. -->
<template>
<div>
<div @click="showSelectSpan" :class="['trace-item', 'level' + (data.level - 1)]" ref="traceItem">
<div :class="['method', 'level' + (data.level - 1)]" :style="{ 'text-indent': (data.level - 1) * 10 + 'px', width: `${method}px`}">
<div
@click="showSelectSpan"
:class="['trace-item', 'level' + (data.level - 1), ...{ 'trace-item-error': data.isError }]"
ref="traceItem"
>
<div
:class="['method', 'level' + (data.level - 1)]"
:style="{ 'text-indent': (data.level - 1) * 10 + 'px', width: `${method}px` }"
>
<svg
class="icon vm cp trans"
:style="!displayChildren ? 'transform: rotate(-90deg);' : ''"
......@@ -138,7 +145,9 @@ limitations under the License. -->
left: 0;
}
}
.trace-item-error {
color: #e54c17;
}
.trace-item {
// display: flex;
white-space: nowrap;
......
......@@ -103,8 +103,6 @@ limitations under the License. -->
<td
class="rk-trace-td"
:class="{
'rk-trace-success': !i.isError,
'rk-trace-error': i.isError,
selected: selectedKey == i.segmentId,
}"
>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册