UNPKG

vxe-table-demonic

Version:

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

308 lines (302 loc) 9.51 kB
/*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*/ /*tag*/ .vxe-custom--checkbox-option .vxe-checkbox--icon { font-size: 1.34em; } .vxe-custom--checkbox-option .vxe-checkbox--icon { color: var(--vxe-input-border-color); vertical-align: middle; font-weight: 700; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .is--checked.vxe-custom--checkbox-option, .is--indeterminate.vxe-custom--checkbox-option { color: var(--vxe-primary-color); } .is--checked.vxe-custom--checkbox-option .vxe-checkbox--icon, .is--indeterminate.vxe-custom--checkbox-option .vxe-checkbox--icon { color: var(--vxe-primary-color); } .vxe-custom--checkbox-option:not(.is--disabled) { cursor: pointer; } .vxe-custom--checkbox-option:not(.is--disabled):hover .vxe-checkbox--icon { color: var(--vxe-primary-color); } .is--disabled.vxe-custom--checkbox-option { color: var(--vxe-font-disabled-color); cursor: not-allowed; } .is--disabled.vxe-custom--checkbox-option .vxe-checkbox--icon { color: var(--vxe-input-disabled-color); } .vxe-custom--checkbox-option .vxe-checkbox--label { padding-left: 0.5em; vertical-align: middle; } /*toolbar*/ .vxe-toolbar { position: relative; display: flex; flex-direction: row; align-items: center; padding: 0.6em 0; color: var(--vxe-font-color); font-family: var(--vxe-font-family); background-color: var(--vxe-toolbar-background-color); } .vxe-toolbar:after { content: ""; display: block; clear: both; height: 0; overflow: hidden; visibility: hidden; } .vxe-toolbar.is--perfect { border: 1px solid var(--vxe-table-border-color); border-bottom-width: 0; background-color: var(--vxe-table-header-background-color); } .vxe-toolbar.is--loading:before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: var(--vxe-loading-z-index); -webkit-user-select: none; -moz-user-select: none; user-select: none; background-color: var(--vxe-loading-background-color); } .vxe-toolbar .vxe-buttons--wrapper { flex-grow: 1; } .vxe-toolbar .vxe-buttons--wrapper > .vxe-button + .vxe-button--item, .vxe-toolbar .vxe-buttons--wrapper > .vxe-button--item + .vxe-button, .vxe-toolbar .vxe-buttons--wrapper > .vxe-button--item + .vxe-button--item { margin-left: 0.8em; } .vxe-toolbar .vxe-buttons--wrapper > .vxe-button--item { display: inline-block; } .vxe-toolbar .vxe-tools--wrapper > .vxe-button + .vxe-tool--item, .vxe-toolbar .vxe-tools--wrapper > .vxe-tool--item + .vxe-button, .vxe-toolbar .vxe-tools--wrapper > .vxe-tool--item + .vxe-tool--item { margin-left: 0.8em; } .vxe-toolbar .vxe-tools--wrapper > .vxe-tool--item { display: inline-block; } .vxe-toolbar .vxe-tools--wrapper > .vxe-button { display: flex; align-items: center; justify-content: center; } .vxe-toolbar .vxe-buttons--wrapper, .vxe-toolbar .vxe-tools--wrapper, .vxe-toolbar .vxe-tools--operate { display: flex; align-items: center; } .vxe-toolbar .vxe-buttons--wrapper, .vxe-toolbar .vxe-tools--wrapper { flex-wrap: wrap; } .vxe-toolbar .vxe-tools--operate { flex-shrink: 0; } .vxe-toolbar .vxe-custom--wrapper { position: relative; margin-left: 0.8em; } .vxe-toolbar .vxe-custom--wrapper.is--active > .vxe-button { background-color: var(--vxe-toolbar-custom-active-background-color); border-radius: 50%; } .vxe-toolbar .vxe-custom--wrapper.is--active .vxe-custom--option-wrapper { display: block; } .vxe-toolbar .vxe-custom--option-wrapper { display: none; position: absolute; right: 2px; text-align: left; background-color: var(--vxe-toolbar-panel-background-color); z-index: 19; border: 1px solid var(--vxe-table-border-color); border-radius: var(--vxe-border-radius); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header { padding: 0.28em 0; font-weight: 700; border-bottom: 1px solid var(--vxe-table-popup-border-color); } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body { padding: 0.2em 0; max-height: 17.6em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body .vxe-custom--checkbox-option:hover { background-color: var(--vxe-table-row-hover-background-color); } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li { max-width: 18em; min-width: 14em; padding: 0.2em 1em 0.2em 1em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--2, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--2 { padding-left: 3.5em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--2 .vxe-checkbox--icon, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--2 .vxe-checkbox--icon { left: 1.8em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--3, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--3 { padding-left: 4.5em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--3 .vxe-checkbox--icon, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--3 .vxe-checkbox--icon { left: 2.8em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--4, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--4 { padding-left: 5.5em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--4 .vxe-checkbox--icon, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--4 .vxe-checkbox--icon { left: 3.8em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--5, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--5 { padding-left: 6.5em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--5 .vxe-checkbox--icon, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--5 .vxe-checkbox--icon { left: 4.8em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--6, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--6 { padding-left: 7.5em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--6 .vxe-checkbox--icon, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--6 .vxe-checkbox--icon { left: 5.8em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--7, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--7 { padding-left: 8.5em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--7 .vxe-checkbox--icon, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--7 .vxe-checkbox--icon { left: 6.8em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--8, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--8 { padding-left: 9.5em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header > li.level--8 .vxe-checkbox--icon, .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body > li.level--8 .vxe-checkbox--icon { left: 7.8em; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer { border-top: 1px solid var(--vxe-table-popup-border-color); text-align: right; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button { background-color: transparent; width: 50%; height: 2.5em; border: 0; color: var(--vxe-font-color); text-align: center; cursor: pointer; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:focus { outline: none; } .vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:hover { color: var(--vxe-primary-color); } .vxe-custom--option { display: flex; flex-direction: row; } .vxe-custom--option-wrapper .vxe-custom--header, .vxe-custom--option-wrapper .vxe-custom--body { list-style-type: none; overflow-x: hidden; overflow-y: auto; margin: 0; padding: 0; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .vxe-custom--checkbox-option { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-grow: 1; } .vxe-custom--fixed-option { flex-shrink: 0; padding-left: 0.5em; display: flex; flex-direction: row; align-items: center; } .vxe-custom--fixed-option .vxe-custom--fixed-left-option, .vxe-custom--fixed-option .vxe-custom--fixed-right-option { line-height: 1.34em; font-size: 1.1em; padding: 0 0.2em; cursor: pointer; } .vxe-custom--fixed-option .vxe-custom--fixed-left-option.is--checked, .vxe-custom--fixed-option .vxe-custom--fixed-left-option:hover, .vxe-custom--fixed-option .vxe-custom--fixed-right-option.is--checked, .vxe-custom--fixed-option .vxe-custom--fixed-right-option:hover { color: var(--vxe-primary-color); } .vxe-custom--fixed-option .vxe-custom--fixed-left-option.is--disabled, .vxe-custom--fixed-option .vxe-custom--fixed-right-option.is--disabled { cursor: no-drop; color: var(--vxe-input-disabled-color); } .vxe-toolbar { font-size: var(--vxe-font-size); } .vxe-toolbar.size--medium { font-size: var(--vxe-font-size-medium); } .vxe-toolbar.size--small { font-size: var(--vxe-font-size-small); } .vxe-toolbar.size--mini { font-size: var(--vxe-font-size-mini); }