vhb-table
Version:
一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、贼灵活的配置项、扩展接口等...
114 lines (110 loc) • 3.74 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*/
/*tppltip*/
.vhb-table--tooltip-wrapper {
display: none;
position: absolute;
top: -100%;
left: -100%;
font-size: 12px;
max-width: 600px;
border-radius: 4px;
padding: 8px 12px;
white-space: normal;
word-break: break-word;
-webkit-box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.2);
box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.2);
color: #606266;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; }
.vhb-table--tooltip-wrapper:not(.is--enterable) {
pointer-events: none; }
.vhb-table--tooltip-wrapper.is--visible {
display: block; }
.vhb-table--tooltip-wrapper.is--arrow .vhb-table--tooltip-arrow {
display: block; }
.vhb-table--tooltip-wrapper.is--enterable:after {
content: "";
position: absolute;
left: 0;
width: 100%;
height: 6px;
background-color: transparent; }
.vhb-table--tooltip-wrapper .vhb-table--tooltip-content {
white-space: pre-line; }
.vhb-table--tooltip-wrapper .vhb-table--tooltip-arrow {
display: none;
position: absolute;
border-color: transparent;
border-width: 6px;
border-style: solid;
left: 50%;
-webkit-transform: translateX(-6px);
transform: translateX(-6px); }
.vhb-table--tooltip-wrapper .vhb-table--tooltip-arrow:before {
content: "";
position: absolute;
border-color: transparent;
border-width: 5px;
border-style: solid;
left: -5px; }
.vhb-table--tooltip-wrapper.placement--top.is--enterable:after {
bottom: -6px; }
.vhb-table--tooltip-wrapper.placement--top .vhb-table--tooltip-arrow {
bottom: -12px; }
.vhb-table--tooltip-wrapper.placement--top .vhb-table--tooltip-arrow:before {
top: -7px; }
.vhb-table--tooltip-wrapper.placement--bottom.is--enterable:after {
top: -6px; }
.vhb-table--tooltip-wrapper.placement--bottom .vhb-table--tooltip-arrow {
top: -12px; }
.vhb-table--tooltip-wrapper.placement--bottom .vhb-table--tooltip-arrow:before {
top: -4px; }
.vhb-table--tooltip-wrapper.theme--light {
background-color: #fff;
border: 1px solid #dcdfe6; }
.vhb-table--tooltip-wrapper.theme--light.placement--top .vhb-table--tooltip-arrow {
border-top-color: #dcdfe6; }
.vhb-table--tooltip-wrapper.theme--light.placement--top .vhb-table--tooltip-arrow:before {
border-top-color: #fff; }
.vhb-table--tooltip-wrapper.theme--light.placement--bottom .vhb-table--tooltip-arrow {
border-bottom-color: #dcdfe6; }
.vhb-table--tooltip-wrapper.theme--light.placement--bottom .vhb-table--tooltip-arrow:before {
border-bottom-color: #fff; }
.vhb-table--tooltip-wrapper.theme--dark {
background: #303133;
color: #fff; }
.vhb-table--tooltip-wrapper.theme--dark.placement--top .vhb-table--tooltip-arrow {
border-top-color: #303133; }
.vhb-table--tooltip-wrapper.theme--dark.placement--top .vhb-table--tooltip-arrow:before {
border-top-color: #303133; }
.vhb-table--tooltip-wrapper.theme--dark.placement--bottom .vhb-table--tooltip-arrow {
border-bottom-color: #303133; }
.vhb-table--tooltip-wrapper.theme--dark.placement--bottom .vhb-table--tooltip-arrow:before {
border-bottom-color: #303133; }
/*valid error*/
.vhb-table--tooltip-wrapper.vhb-table--valid-error {
background-color: #f56c6c;
color: #fff; }