vxe-table-select-area
Version:
一个基于 vxe-table 的可区域选中复制、粘贴的组件
291 lines (278 loc) • 5.33 kB
CSS
/*font*/
/*size*/
/*icon*/
/*color*/
/*input/radio/checkbox*/
/*popup*/
/*table*/
/*filter*/
/*menu*/
/*loading*/
/*validate*/
/*grid*/
/*toolbar*/
/*tooltip*/
/*pager*/
/*modal*/
/*checkbox*/
/*radio*/
/*button*/
/*input*/
/*textarea*/
/*form*/
/*select*/
/*switch*/
/*pulldown*/
[class*=vxe-]:after, [class*=vxe-]:before,
[class*=vxe-] *:after, [class*=vxe-] *:before, [class*=vxe-] {
box-sizing: border-box;
}
.vxe-checkbox .vxe-checkbox--label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
[class*=vxe-] {
font-variant: tabular-nums;
font-feature-settings: "tnum";
}
.vxe-primary-color {
color: #409eff;
}
.vxe-success-color {
color: #67c23a;
}
.vxe-info-color {
color: #909399;
}
.vxe-warning-color {
color: #e6a23c;
}
.vxe-danger-color {
color: #f56c6c;
}
.vxe-perfect-color {
color: #f8f8f9;
}
.vxe-row:after {
content: "";
display: block;
clear: both;
height: 0;
overflow: hidden;
visibility: hidden;
}
.vxe-row > .vxe-col--1 {
float: left;
width: 4.16667%;
}
.vxe-row > .vxe-col--2 {
float: left;
width: 8.33333%;
}
.vxe-row > .vxe-col--3 {
float: left;
width: 12.5%;
}
.vxe-row > .vxe-col--4 {
float: left;
width: 16.66667%;
}
.vxe-row > .vxe-col--5 {
float: left;
width: 20.83333%;
}
.vxe-row > .vxe-col--6 {
float: left;
width: 25%;
}
.vxe-row > .vxe-col--7 {
float: left;
width: 29.16667%;
}
.vxe-row > .vxe-col--8 {
float: left;
width: 33.33333%;
}
.vxe-row > .vxe-col--9 {
float: left;
width: 37.5%;
}
.vxe-row > .vxe-col--10 {
float: left;
width: 41.66667%;
}
.vxe-row > .vxe-col--11 {
float: left;
width: 45.83333%;
}
.vxe-row > .vxe-col--12 {
float: left;
width: 50%;
}
.vxe-row > .vxe-col--13 {
float: left;
width: 54.16667%;
}
.vxe-row > .vxe-col--14 {
float: left;
width: 58.33333%;
}
.vxe-row > .vxe-col--15 {
float: left;
width: 62.5%;
}
.vxe-row > .vxe-col--16 {
float: left;
width: 66.66667%;
}
.vxe-row > .vxe-col--17 {
float: left;
width: 70.83333%;
}
.vxe-row > .vxe-col--18 {
float: left;
width: 75%;
}
.vxe-row > .vxe-col--19 {
float: left;
width: 79.16667%;
}
.vxe-row > .vxe-col--20 {
float: left;
width: 83.33333%;
}
.vxe-row > .vxe-col--21 {
float: left;
width: 87.5%;
}
.vxe-row > .vxe-col--22 {
float: left;
width: 91.66667%;
}
.vxe-row > .vxe-col--23 {
float: left;
width: 95.83333%;
}
.vxe-row > .vxe-col--24 {
float: left;
width: 100%;
}
/*animat*/
.is--animat .vxe-sort--asc-btn:before, .is--animat .vxe-sort--asc-btn:after,
.is--animat .vxe-sort--desc-btn:before,
.is--animat .vxe-sort--desc-btn:after,
.is--animat .vxe-filter--btn:before,
.is--animat .vxe-filter--btn:after {
transition: border 0.1s ease-in-out;
}
.is--animat .vxe-input--wrapper .vxe-input {
transition: border 0.1s ease-in-out;
}
.is--animat .vxe-table--expand-btn,
.is--animat .vxe-tree--node-btn {
transition: transform 0.1s ease-in-out;
}
.is--animat .vxe-checkbox > input:checked + span,
.is--animat .vxe-radio > input:checked + span {
transition: background-color 0.1s ease-in-out;
}
.vxe-checkbox .vxe-checkbox--icon {
font-size: 1.34em;
}
.vxe-checkbox .vxe-checkbox--icon {
color: #dcdfe6;
vertical-align: middle;
font-weight: 700;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.is--checked.vxe-checkbox, .is--indeterminate.vxe-checkbox {
color: #409eff;
}
.is--checked.vxe-checkbox .vxe-checkbox--icon, .is--indeterminate.vxe-checkbox .vxe-checkbox--icon {
color: #409eff;
}
.vxe-checkbox:not(.is--disabled) {
cursor: pointer;
}
.vxe-checkbox:not(.is--disabled):hover .vxe-checkbox--icon {
color: #409eff;
}
.is--disabled.vxe-checkbox {
color: #BFBFBF;
cursor: not-allowed;
}
.is--disabled.vxe-checkbox .vxe-checkbox--icon {
color: #dcdfe6;
}
.vxe-checkbox .vxe-checkbox--label {
padding-left: 0.5em;
vertical-align: middle;
}
/*checkbox-group*/
.vxe-checkbox-group {
display: inline-block;
vertical-align: middle;
line-height: 1;
}
/*checkbox*/
.vxe-checkbox {
display: inline-block;
vertical-align: middle;
white-space: nowrap;
line-height: 1;
}
.vxe-checkbox + .vxe-checkbox {
margin-left: 10px;
}
.vxe-checkbox > input[type=checkbox] {
position: absolute;
width: 0;
height: 0;
border: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.vxe-checkbox.is--indeterminate > input:not(:checked) + .vxe-checkbox--icon {
color: #409eff;
}
.vxe-checkbox:not(.is--disabled) > input:focus + .vxe-checkbox--icon {
color: #409eff;
box-shadow: 0 0 0.2em 0 #409eff;
}
.vxe-checkbox:not(.is--disabled):hover > input + .vxe-checkbox--icon {
border-color: #409eff;
}
.vxe-checkbox.is--disabled {
cursor: not-allowed;
}
.vxe-checkbox.is--disabled > input + .vxe-checkbox--icon {
color: #dcdfe6;
}
.vxe-checkbox.is--disabled > input + .vxe-checkbox--icon + .vxe-checkbox--label {
color: #BFBFBF;
}
.vxe-checkbox.is--disabled > input:checked + .vxe-checkbox--icon {
color: #dcdfe6;
}
.vxe-checkbox .vxe-checkbox--label {
padding-left: 0.5em;
vertical-align: middle;
display: inline-block;
max-width: 50em;
}
.vxe-checkbox {
font-size: 14px;
}
.vxe-checkbox.size--medium {
font-size: 14px;
}
.vxe-checkbox.size--small {
font-size: 13px;
}
.vxe-checkbox.size--mini {
font-size: 12px;
}