UNPKG

maycur-business

Version:

maycur business react components of web

239 lines (204 loc) 6.37 kB
@import '../../style/variables.less'; @import '../PopSelect/style/style.less'; @import '../FilterStateBar/style/style.less'; @import '../FilterDropDown/CheckFilter/style/style.less'; @import '../FilterDropDown/DateFilter/style/style.less'; @import '../FilterDropDown/FuzzFilter/style/style.less'; @import '../FilterDropDown/DepartmentPickerFilter/style/DepartmentPickerFilter.less'; @import '../FilterDropDown/NumberRangeFilter/style/NumberRangeFilter.less'; @import '../FilterDropDown/BudgetmentFilter/style/BudgetmentFilter.less'; @import '../FilterDropDown/BudgetSubjectFilter/style/BudgetSubjectFilter.less'; @import '../../DepartmentSelectionModal/DepartmentSelection/style/DepartmentSelection.less'; @import '../../DepartmentSelectionModal/DepartmentTransfer/style/DepartmentTransfer.less'; @import '../../DepartmentSelectionModal/DepartmentList/style/DepartmentList.less'; @import '../../DepartmentSelectionModal/UserGroupList/style/UserGroupList.less'; @import '../../Empty/style/empty.less'; @import '../../TreeTransfer/style/TreeTransfer.less'; @import '../../TreeTransfer/SelectableTree/style/SelectableTree.less'; @import '../FilterSettingModal/style/style.less'; @import '../FilterSettingModal/Panel/style/style.less'; @import '../FilterSettingModal/IncludeContent/style/style.less'; @table-cell-padding: 20px; @check-cell-size: 62px; .@{prefix}-mktable-container { position: relative; flex: 1; display: flex; overflow: auto; flex-direction: column; .data-emtpy { height: 300px; display: flex; justify-content: center; align-items: center; .fm-prompt { font-size: 20px; margin-right: 8px; } } .scrollbar-container { &.freeze-table { .ps__rail-y { opacity: 0 !important; } &:hover{ .ps__rail-y { opacity: 0.6 !important; } } } &.main-table:hover { .ps__rail-y { z-index: 999; background: #fff; } } // &.ant-table-body:hover{ // .ps__rail-y { // z-index: 999; // } // } } .ant-table { font-size: 13px; .ant-table-header { .ps__rail-x { opacity: 0; } } &-filter-dropdown { border-radius: 0; } } .ant-table-content { .ant-table-scroll { position: relative; .ant-table-placeholder { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; margin: auto 0; // height: 300px; border: 0; } } } .ant-table-selection-column { position: relative; min-width: @check-cell-size; width: @check-cell-size; .ant-checkbox-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; } } .ant-pagination-options { .ant-select-selection__rendered { padding-right: 8px; padding-left: 8px; } } /* 覆盖antd样式 */ &.fix-header { .ant-table-wrapper { display: flex; flex: 1; flex-direction: column; height: 100%; overflow: auto; .ant-spin-nested-loading { height: 100%; display: flex; flex: 1; overflow: auto; .ant-spin-container { flex: 1; display: flex; flex-direction: column; overflow: auto; .ant-table { flex: 1; display: flex; &.ant-table-fixed-header { overflow: auto; .ant-table-header { padding-bottom: 0; margin-bottom: 0; } } .ant-table-content { flex: 1; display: flex; flex-direction: column; overflow: auto; .ant-table-scroll { display: flex; flex: 1; flex-direction: column; table { width: 100%; table-layout: fixed; } .ant-table-body { flex: 1; } } } } .ant-pagination.ant-table-pagination { display: flex; justify-content: flex-end; align-items: center; } } } } .ant-table-empty { .ant-table-header { position: relative; z-index: 99; padding-bottom: 0; margin-bottom: 0; } } .ant-pagination-options { display: flex; align-items: center; .ant-select-selection__rendered { padding-right: 8px; padding-left: 8px; } } } &.row-clickable { table tbody tr { cursor: pointer; } } &.table-empty { table { table-layout: auto !important; } } .td-ellipsis { word-break: keep-all; overflow: hidden; text-overflow: ellipsis; } } .@{prefix}-mktable-custom-pop { padding: 0; .ant-popover-arrow { display: none; } } .@{prefix}-table-cell-popover { max-width: 300px; }