UNPKG

vhb-table

Version:

一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、贼灵活的配置项、扩展接口等...

209 lines (190 loc) 6.1 kB
@charset "UTF-8"; /*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*/ .vhb-table--filter-option { position: relative; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer; } .vhb-table--filter-option .vhb-checkbox--icon { display: none; position: absolute; height: 1em; width: 1em; } .vhb-table--filter-option .vhb-checkbox--icon { font-size: 16px; } .vhb-table--filter-option .vhb-checkbox--icon:before { content: ""; position: absolute; height: 1em; width: 1em; top: 0; left: 0; background-color: #fff; border-radius: 2px; border: 2px solid #dcdfe6; } .vhb-table--filter-option .vhb-checkbox--unchecked-icon { display: inline-block; } .vhb-table--filter-option .vhb-checkbox--checked-icon:after { content: ""; position: absolute; height: 0.64em; width: 0.32em; top: 50%; left: 50%; border: 2px solid #fff; border-left: 0; border-top: 0; -webkit-transform: translate(-50%, -50%) rotate(45deg); transform: translate(-50%, -50%) rotate(45deg); } .vhb-table--filter-option .vhb-checkbox--indeterminate-icon:after { content: ""; position: absolute; top: 50%; left: 50%; height: 2px; width: 0.6em; background-color: #fff; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } .is--checked.vhb-table--filter-option, .is--indeterminate.vhb-table--filter-option { color: #409eff; } .is--checked.vhb-table--filter-option .vhb-checkbox--unchecked-icon, .is--indeterminate.vhb-table--filter-option .vhb-checkbox--unchecked-icon { display: none; } .is--checked.vhb-table--filter-option .vhb-checkbox--icon:before, .is--indeterminate.vhb-table--filter-option .vhb-checkbox--icon:before { border-color: #409eff; background-color: #409eff; } .is--checked.vhb-table--filter-option .vhb-checkbox--checked-icon { display: inline-block; } .is--indeterminate.vhb-table--filter-option .vhb-checkbox--indeterminate-icon { display: inline-block; } .vhb-table--filter-option:not(.is--disabled):hover .vhb-checkbox--icon:before { border-color: #409eff; } .is--disabled.vhb-table--filter-option { cursor: not-allowed; color: #BFBFBF; } .is--disabled.vhb-table--filter-option .vhb-checkbox--icon:before { border-color: #dcdfe6; background-color: #f3f3f3; } .is--disabled.vhb-table--filter-option .vhb-checkbox--icon:after { border-color: #c0c4cc; } .is--disabled.vhb-table--filter-option .vhb-checkbox--indeterminate-icon:after { background-color: #c0c4cc; } /*筛选*/ .vhb-cell--filter { padding: 0 0.1em 0 0.25em; text-align: center; vertical-align: middle; display: inline-block; line-height: 0; } .vhb-cell--filter.col--active .vhb-filter--btn { color: #606266; } .vhb-cell--filter .vhb-filter--btn { color: #c0c4cc; cursor: pointer; } .vhb-cell--filter .vhb-filter--btn:hover { color: #606266; } .is--filter-active .vhb-cell--filter .vhb-filter--btn { color: #409eff; } /*筛选容器*/ .vhb-table--filter-wrapper { display: none; position: absolute; top: 0; min-width: 100px; border-radius: 4px; background-color: #fff; border: 1px solid #DADCE0; -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); z-index: 10; } .vhb-table--filter-wrapper:not(.is--multiple) { text-align: center; } .vhb-table--filter-wrapper.is--active { display: block; } .vhb-table--filter-wrapper .vhb-table--filter-header > li, .vhb-table--filter-wrapper .vhb-table--filter-body > li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; padding: 0.25em 0.8em; cursor: pointer; } .vhb-table--filter-wrapper .vhb-table--filter-header > li.is--checked, .vhb-table--filter-wrapper .vhb-table--filter-body > li.is--checked { color: #409eff; } .vhb-table--filter-wrapper .vhb-table--filter-header > li:hover, .vhb-table--filter-wrapper .vhb-table--filter-body > li:hover { background-color: #f5f7fa; } .vhb-table--filter-wrapper .vhb-table--filter-header { padding-top: 0.2em; } .vhb-table--filter-wrapper .vhb-table--filter-body { max-height: 200px; padding-bottom: 0.2em; } .vhb-table--filter-wrapper > ul { list-style-type: none; padding: 0; margin: 0; overflow: auto; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .vhb-table--filter-wrapper.is--multiple > ul > li { padding: 0.25em 0.8em 0.25em 2.3em; } .vhb-table--filter-wrapper .vhb-table--filter-footer { border-top: 1px solid #DADCE0; padding: 0.6em; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .vhb-table--filter-wrapper .vhb-table--filter-footer button { background-color: transparent; padding: 0 0.4em; border: 0; color: #606266; cursor: pointer; } .vhb-table--filter-wrapper .vhb-table--filter-footer button:focus { outline: none; } .vhb-table--filter-wrapper .vhb-table--filter-footer button:hover { color: #409eff; } .vhb-table--filter-wrapper .vhb-table--filter-footer button.is--disabled { color: #BFBFBF; cursor: not-allowed; } .vhb-table--filter-option .vhb-checkbox--icon { left: 0.6em; top: 0.38em; } .vhb-table .vhb-table--filter-option > .vhb-checkbox--icon { font-size: 16px; } .vhb-table.size--medium .vhb-table--filter-option > .vhb-checkbox--icon { font-size: 15px; } .vhb-table.size--small .vhb-table--filter-option > .vhb-checkbox--icon { font-size: 14px; } .vhb-table.size--mini .vhb-table--filter-option > .vhb-checkbox--icon { font-size: 14px; }