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 @@ })