Skip to content

Commit fb0309d

Browse files
xintaoLiwencong1724427771jayjiahuajidanjuanpegasusljn
authored
fix: 增加pengding样式,优化渲染交互 (#4146)
Co-authored-by: wencong1724427771 <[email protected]> Co-authored-by: jayjiahua <[email protected]> Co-authored-by: jidanjuan <[email protected]> Co-authored-by: NeoLing <[email protected]> Co-authored-by: EmilyMei <[email protected]> Co-authored-by: 热心网友陈德华 <[email protected]> Co-authored-by: cjyscjys <[email protected]> Co-authored-by: chenmanting1 <[email protected]> Co-authored-by: lai <[email protected]> Co-authored-by: chenguo <[email protected]> Co-authored-by: ctenetlau <[email protected]> Co-authored-by: liuwenping <[email protected]> Co-authored-by: crayon <[email protected]> Co-authored-by: liang ling <[email protected]> Co-authored-by: tang202388 <[email protected]> Co-authored-by: 进击的弗兰克 <[email protected]> Co-authored-by: JayCC1 <[email protected]> Co-authored-by: xlc <[email protected]> Co-authored-by: ZC-A <[email protected]> Co-authored-by: HACK-WU <[email protected]> Co-authored-by: yzygyin <[email protected]> Co-authored-by: Shamcle Ren <[email protected]> Co-authored-by: 闪烁 <[email protected]> Co-authored-by: 17 <[email protected]> Co-authored-by: RyanYu <[email protected]> Co-authored-by: dengyh <[email protected]>
1 parent e3a279c commit fb0309d

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

bklog/web/src/common/util.js

-1
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,6 @@ export const setDefaultTableWidth = (visibleFields, tableData, catchFieldsWidthO
11001100
}
11011101
}
11021102

1103-
debugger;
11041103
return true;
11051104
} catch (error) {
11061105
return false;

bklog/web/src/views/retrieve-v2/search-result-panel/log-result/log-rows.scss

+11
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@
7070
min-height: 40px;
7171
transform: translateZ(0);
7272

73+
&.is-pending {
74+
width: 100%;
75+
background: repeating-linear-gradient(#f8f8f8, #f8f8f8 40px, #fff 40px, #fff 48px),
76+
linear-gradient(90deg, rgba(240, 240, 240, 0), rgba(224, 224, 224, 0.5), rgba(240, 240, 240, 0));
77+
background-repeat: no-repeat;
78+
background-size:
79+
100% 100%,
80+
50% 100%;
81+
animation: loading-animation 1.5s infinite;
82+
}
83+
7384
.bklog-list-row {
7485
position: relative;
7586
box-sizing: border-box;

bklog/web/src/views/retrieve-v2/search-result-panel/log-result/log-rows.tsx

+1-17
Original file line numberDiff line numberDiff line change
@@ -397,29 +397,12 @@ export default defineComponent({
397397
},
398398
};
399399

400-
// const resetRowHeight = () => {
401-
// scrollToTop(visibleIndexs.value.endIndex < 100);
402-
403-
// visibleIndexs.value.startIndex = 0;
404-
// visibleIndexs.value.endIndex = bufferCount;
405-
406-
// const { startIndex, endIndex } = visibleIndexs.value;
407-
// tableData.value.forEach(row => {
408-
// const index = row[ROW_INDEX];
409-
410-
// if (index < startIndex || index >= endIndex) {
411-
// row[ROW_CONFIG].value.minHeight = 40;
412-
// }
413-
// });
414-
// };
415-
416400
watch(
417401
() => [fieldRequestCounter.value, props.contentType],
418402
() => {
419403
columns.value = loadTableColumns();
420404
setTimeout(() => {
421405
computeRect();
422-
// resetRowHeight();
423406
});
424407
},
425408
);
@@ -695,6 +678,7 @@ export default defineComponent({
695678
style={rowStyle}
696679
class={[
697680
'bklog-row-container',
681+
'is-pending',
698682
{
699683
'has-overflow-x': hasScrollX.value,
700684
},

0 commit comments

Comments
 (0)