wui-print
Version:
前端打印插件,包含打印设计器、打印表单、打印API
123 lines (122 loc) • 2.52 kB
text/less
.print-page-top {
margin: 0 ;
padding: 0;
height: 0 ;
width: 100%;
background: none;
padding-top: var(--wui-printing-page-padding-top);
}
.print-page-bottom {
margin: 0 ;
padding: 0;
height: 0 ;
width: 100%;
background: none;
padding-bottom: var(--wui-printing-page-padding-bottom);
}
.print-page-break {
margin: 0 ;
padding: 0 ;
height: 0 ;
width: 0 ;
background: none;
page-break-after: always;
background: #cdcdcd;
padding-bottom: 30px;
}
.print-container--preview {
.print-page-break {
width: 100% ;
height: 10px ;
background: #cdcdcd;
}
}
.print-text {
position: relative;
width: 100%;
height: auto;
}
.print-dynamic-text {
position: relative;
width: 100%;
height: auto;
display: flex;
flex-flow: row;
.print-dynamic-text_content {
width: 0;
flex: 1;
overflow-wrap: break-word;
}
}
.print-grid {
position: relative;
width: 100%;
display: flex;
flex-flow: row wrap;
}
.print-table-layout {
position: relative;
width: 100%;
td {
position: relative;
& > .print-table-layout_td-slash {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
._p-t-l_td-slash_slash {
position: absolute;
display: block;
height: 1px;
background-color: #000;
}
&.print-table-layout_td-slash--top-left {
._p-t-l_td-slash_slash {
top: 0;
left: 0;
}
._p-t-l_td-slash_left {
position: absolute;
left: 10px;
bottom: 5px;
}
._p-t-l_td-slash_right {
position: absolute;
right: 10px;
top: 5px;
}
}
&.print-table-layout_td-slash--bottom-left {
._p-t-l_td-slash_slash {
bottom: 0;
left: 0;
}
._p-t-l_td-slash_left {
position: absolute;
left: 10px;
top: 5px;
}
._p-t-l_td-slash_right {
position: absolute;
right: 10px;
bottom: 5px;
}
}
}
& > .print-table-layout_td-container {
width: 100%;
height: 100%;
}
}
}
.print-barcode {
position: relative;
}
.print-image {
img {
width: 100%;
height: 100%;
}
}