From 62890605b8f9010d9364e71acd8ef5a1100766fc Mon Sep 17 00:00:00 2001 From: yujinlong Date: Tue, 12 Nov 2024 11:29:33 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=B4=A2=E7=A8=8E=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=BC=98=E5=8C=96&less=E5=85=A8=E5=B1=80=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E6=A0=B7=E5=BC=8F=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/design/common.less | 31 ++++++++++++++++++ src/design/public.less | 32 ------------------- src/views/financialTax/bankJournal/index.vue | 6 ---- .../expenseAccount/detail/columns.tsx | 13 +++++++- .../detail/components/SearchTable.vue | 6 ---- .../expenseAccount/detail/index.vue | 11 +++---- .../financialTax/expenseAccount/index.vue | 6 ---- .../incomeInvoice/detail/columns.tsx | 4 +-- .../incomeInvoice/detail/index.vue | 12 ------- .../financialTax/incomeInvoice/index.vue | 6 ---- vite.config.ts | 2 +- 11 files changed, 51 insertions(+), 78 deletions(-) create mode 100644 src/design/common.less diff --git a/src/design/common.less b/src/design/common.less new file mode 100644 index 00000000..679f5de3 --- /dev/null +++ b/src/design/common.less @@ -0,0 +1,31 @@ +.flex_arrange(@direction: row, @justify: center, @align: center) { + display: flex; + flex-direction: @direction; + justify-content: @justify; + align-items: @align; +} + +.line-feed() { + word-break: break-all; + word-wrap: break-word; + white-space: break-spaces; + hyphens: auto; +} + +.ellipses() { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + -o-text-overflow: hidden; + -webkit-box-orient: vertical; +} + +.text_ellipsis_rowX(@lineNum: 2) { + text-overflow: -o-ellipsis-lastline; + overflow: hidden; //溢出内容隐藏 + text-overflow: ellipsis; //文本溢出部分用省略号表示 + display: -webkit-box; //特别显示模式 + -webkit-line-clamp: @lineNum; //行数 + line-clamp: @lineNum; + -webkit-box-orient: vertical; +} diff --git a/src/design/public.less b/src/design/public.less index 3eb5daad..c1f59946 100644 --- a/src/design/public.less +++ b/src/design/public.less @@ -294,35 +294,3 @@ h5 { .anticon-exclamation-circle { // display: none!important; } - -.flex_arrange(@direction: row, @justify: center, @align: center) { - display: flex; - flex-direction: @direction; - justify-content: @justify; - align-items: @align; -} - -.line-feed() { - word-break: break-all; - word-wrap: break-word; - white-space: break-spaces; - hyphens: auto; -} - -.ellipses() { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - -o-text-overflow: hidden; - -webkit-box-orient: vertical; -} - -.text_ellipsis_rowX(@lineNum: 2) { - text-overflow: -o-ellipsis-lastline; - overflow: hidden; //溢出内容隐藏 - text-overflow: ellipsis; //文本溢出部分用省略号表示 - display: -webkit-box; //特别显示模式 - -webkit-line-clamp: @lineNum; //行数 - line-clamp: @lineNum; - -webkit-box-orient: vertical; -} diff --git a/src/views/financialTax/bankJournal/index.vue b/src/views/financialTax/bankJournal/index.vue index 2d4db333..f1c1a3cb 100644 --- a/src/views/financialTax/bankJournal/index.vue +++ b/src/views/financialTax/bankJournal/index.vue @@ -152,12 +152,6 @@ })