From 643552ccbd4f05a88d3d5745efa0dd03e90eea70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Wed, 8 Nov 2023 17:23:35 +0800 Subject: [PATCH] bug 78348 --- .../modules/CommentList.vue | 218 +++++++----------- 1 file changed, 84 insertions(+), 134 deletions(-) diff --git a/src/views/documentTool/documentComparison/modules/CommentList.vue b/src/views/documentTool/documentComparison/modules/CommentList.vue index f6bcc82a..2ddc26db 100644 --- a/src/views/documentTool/documentComparison/modules/CommentList.vue +++ b/src/views/documentTool/documentComparison/modules/CommentList.vue @@ -21,36 +21,37 @@
- -
-
+
+
-
- {{ item.name }} - {{ item.createTime }} -
-
- {{ item.content }} -
-
- +
+
+ + +
{{ item.name }}
+
+
{{ item.createTime }}
+
+
+
{{ item.content }}
-
-
+
+
-
- {{ val.name }} - {{ val.createTime }} -
-
- {{ val.content }} -
-
- +
+
+ + +
{{ val.name }}
+
+
{{ val.createTime }}
+
+
+
{{ val.content }}
@@ -156,57 +157,7 @@ export default { } } -.box-text { - display: inline-block; - position: absolute; - margin-left: 40px; - .box-text-name { - font-size: 14px; - font-weight: bold; - color: #040B29; - margin-right: 8px; - } - - .box-text-time { - font-size: 14px; - font-weight: 400; - color: #6F7385; - } -} - -.box-text-text { - font-size: 14px; - font-weight: 400; - color: #040B29; - display: inline-block; - margin-top: 22px; - margin-left: 40px; - word-break: break-word; -} - -.title-text { - font-size: 16px; - font-weight: 400; - color: #040B29; - margin-bottom: 18px; -} - -.box-content { - position: relative; -} - -.box-content-inside { - position: relative; - margin-bottom: 15px; -} - -.box-icon { - position: absolute; - right: 0; - top: 0; - cursor: pointer; -} .inside-box { background: #F6F7FA; @@ -223,53 +174,7 @@ export default { margin-bottom: 24px; } -.drawer-bootom-button { - position: absolute; - bottom: 0; - width: 100%; - z-index: 100; - border-top: 1px solid #e8e8e8; - padding: 10px 16px; - text-align: right; - left: 0; - background: #fff; - border-radius: 0 0 2px 2px; -} -.box-title-text { - line-height: 1.4; - display: flex; - /*align-items: center;*/ -} - -.title-text { - width: 74px; - text-align: right; - display: inline-block; - font-weight: 500; - font-size: 14px; - margin-right: 16px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - height: 42px; - line-height: 48px; -} - -.item-model { - width: calc(100% - 64px); - display: inline-block; - margin-top: 2px; -} - -.required { - color: red; - margin-right: 4px; -} - -.title-text-text { - margin-top: 9px; -} .comment-box-text { text-align: center; @@ -281,24 +186,69 @@ export default { margin-right: 8px; } -.button-text { - width: 88px; - overflow: hidden; - padding: 0 8px; - float: right; -} - -/deep/ .button-text span { - width: 64px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - margin-top: 4px; -} - .box-input-search { /deep/ .ant-input-search-icon { display: none; } } + +.comment-item { + display: flex; + + &-img { + width: 32px; + height: 32px; + border-radius: 50%; + margin-right: 8px; + + .img { + width: 100%; + height: 100%; + } + } + + &-content { + flex: 1; + width: 0; + + &-text { + font-size: 14px; + font-weight: 400; + color: #040B29; + word-break: break-word; + } + } + + &-title { + width: 100%; + display: flex; + + &-name { + font-size: 14px; + font-weight: bold; + color: #040B29; + margin-right: 8px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + + &-time { + flex-shrink: 0; + font-size: 14px; + font-weight: 400; + color: #6F7385; + margin-right: 8px; + } + + &-icon { + flex-shrink: 0; + margin-left: auto; + } + } +} + +.inside-comment-item { + margin-bottom: 15px; +}