From 66760a2a574e3eb3c0a15d7cd6d5784e726a3b55 Mon Sep 17 00:00:00 2001 From: hyx Date: Fri, 28 Apr 2023 14:49:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:CN-971=201.=E5=8D=A1=E7=89=87=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E9=99=90=E5=AE=9A=E4=B8=80=E8=A1=8C=EF=BC=8C=E8=B6=85?= =?UTF-8?q?=E9=95=BF=E5=81=9A=E5=A4=84=E7=90=86=EF=BC=9B=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E9=95=BF=E5=BA=A6=E9=99=90=E5=AE=9A=E5=88=B0?= =?UTF-8?q?=E4=B8=8D=E9=81=AE=E4=BD=8Ftype=E5=92=8Cenabled=E6=8C=89?= =?UTF-8?q?=E9=92=AE=EF=BC=8C=E7=95=9910px=E4=BB=A5=E4=B8=8A=E9=97=B4?= =?UTF-8?q?=E9=9A=99=EF=BC=9B=202.=E5=8F=96=E6=B6=88select=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=97=B6=EF=BC=8C=E5=BA=94=E6=B8=85=E7=A9=BA=E5=B7=B2?= =?UTF-8?q?=E9=80=89=E6=95=B0=E7=BB=84=EF=BC=9B=203.=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=9B=BE=E4=B8=8A=EF=BC=8C=E9=BC=A0=E6=A0=87=E6=BB=91=E8=BF=87?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E6=97=B6=EF=BC=8C=E5=8D=A1=E7=89=87=E8=BE=B9?= =?UTF-8?q?=E6=A1=86=E5=BA=94=E6=9C=89=E9=98=B4=E5=BD=B1=EF=BC=9B=204.sele?= =?UTF-8?q?ct=E7=8A=B6=E6=80=81=E4=B8=8B=EF=BC=8C=E6=95=B4=E4=B8=AA?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E4=BB=BB=E6=84=8F=E5=8C=BA=E5=9F=9F=E7=82=B9?= =?UTF-8?q?=E5=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= =?UTF-8?q?=E5=8F=96=E6=B6=88=EF=BC=8C=E4=BD=86=E7=82=B9=E5=87=BB=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=8C=89=E9=92=AE=E4=BE=9D=E6=97=A7=E5=9C=A8=E5=BE=85?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=88=97=E8=A1=A8=E9=87=8C=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/setting/knowledgeBase.scss | 40 +++++++++---------- .../table/setting/KnowledgeBaseTable.vue | 39 ++++++++++++++---- src/views/setting/KnowledgeBase.vue | 13 ++++++ src/views/setting/KnowledgeFilter.vue | 2 +- 4 files changed, 65 insertions(+), 29 deletions(-) diff --git a/src/assets/css/components/views/setting/knowledgeBase.scss b/src/assets/css/components/views/setting/knowledgeBase.scss index 073e53f5..bc17bff1 100644 --- a/src/assets/css/components/views/setting/knowledgeBase.scss +++ b/src/assets/css/components/views/setting/knowledgeBase.scss @@ -171,7 +171,6 @@ align-items : center; flex-direction:row; height:28px; - //border:solid 1px red; width:100%; .top-tool-btn { cursor: pointer; @@ -281,6 +280,9 @@ width:100%; height:calc(100% - 152px); overflow-y:auto; + .card-selected{ + box-shadow: 3px 3px 11px 0px rgba(0,0,0,0.1); + } .card-item { background: #FFFFFF; border: 1px solid rgba(226,229,236,1); @@ -307,7 +309,11 @@ flex-direction: row; justify-content: space-between; .card-title-name { - + width:210px; + overflow: hidden; //超出的文本隐藏 + text-overflow: ellipsis; //溢出用省略号显示 + white-space:nowrap; + word-break: break-all; } .card-title-more { position: relative; @@ -331,23 +337,6 @@ left: 5px; top: 2px; transform: rotate(45deg) scaleY(1); - - /* - - box-sizing: content-box; - content: ""; - border: 10px solid red; - border-left: 0; - border-top: 0; - height: 0.5rem; - - - width: 0.21429rem; - transform: rotate( - 45deg - ) scaleY(0); - transition: transform .15s ease-in .05s; - transform-origin: center;*/ } .card-operate { background: #FFFFFF; @@ -409,7 +398,6 @@ } } } - } .card-id { //font-family: NotoSansSChineseRegular; @@ -424,7 +412,14 @@ color: #717171; line-height: 18px; font-weight: 400; - margin-bottom:12px; + margin-bottom:0px; + max-height:88px; + + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 5; + line-clamp: 5; + -webkit-box-orient: vertical; } } .card-operate__footer { @@ -455,6 +450,9 @@ } } } + .card-item:hover{ + box-shadow: 3px 3px 11px 0px rgba(0,0,0,0.1); + } .card-item__enable { background: #FFFFFF; border: 1px solid rgba(226,229,236,1); diff --git a/src/components/table/setting/KnowledgeBaseTable.vue b/src/components/table/setting/KnowledgeBaseTable.vue index d1410d5a..d67d72f4 100644 --- a/src/components/table/setting/KnowledgeBaseTable.vue +++ b/src/components/table/setting/KnowledgeBaseTable.vue @@ -1,23 +1,21 @@