adtec-core-package 2.4.9 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +6 -6
- package/.prettierrc.json +7 -7
- package/.vscode/extensions.json +8 -8
- package/README.en.md +36 -36
- package/README.md +39 -39
- package/env.d.ts +1 -1
- package/eslint.config.js +56 -56
- package/index.html +13 -13
- package/package.json +71 -71
- package/src/App.vue +9 -9
- package/src/api/BasicApi.ts +26 -26
- package/src/api/DeptInfoApi.ts +19 -19
- package/src/api/DocumentApi.ts +27 -27
- package/src/api/EmployeeInfoApi.ts +17 -17
- package/src/api/SysDictCacheApi.ts +29 -29
- package/src/api/SysUserApi.ts +35 -35
- package/src/api/framework.ts +12 -12
- package/src/api/workflow/workflow.ts +31 -31
- package/src/api/workflow/workflowCommentApi.ts +23 -23
- package/src/api/workflow/workflowInstApi.ts +72 -72
- package/src/assets/base.css +86 -86
- package/src/assets/logo.svg +1 -1
- package/src/assets/main.css +35 -35
- package/src/assets/style/ant.scss +19 -19
- package/src/assets/style/index.less +180 -180
- package/src/assets/style/transition.scss +49 -49
- package/src/components/ElCardList.vue +64 -64
- package/src/components/ElFlex/ElFlex.vue +297 -297
- package/src/components/ElTotalTools.vue +70 -70
- package/src/components/OperationAuth/operationAuth.vue +43 -43
- package/src/components/RichTextEditor/RichTextEditor.vue +442 -442
- package/src/components/Scrollbars/ElScrollbars.vue +21 -21
- package/src/components/Search/ElIconSearch.vue +267 -267
- package/src/components/Search/ElSearch.vue +154 -154
- package/src/components/SelectInDicators/SelectInDicators.vue +225 -225
- package/src/components/SelectInDicators/api/DataIndicatorsApi.ts +28 -28
- package/src/components/SelectInDicators/interface/IComIndex.ts +26 -26
- package/src/components/SelectInDicators/interface/IComIndexAttri.ts +18 -18
- package/src/components/Table/ElTableColumnDynamic.vue +25 -25
- package/src/components/Table/ElTableColumnEdit.vue +265 -265
- package/src/components/Table/ElTableTool.ts +37 -37
- package/src/components/Title/ElTitle.vue +53 -53
- package/src/components/autoToolTip/ElAutoToolTip.vue +62 -62
- package/src/components/baseEcharts/index.vue +48 -48
- package/src/components/bpmntree/api/modules/role.ts +31 -31
- package/src/components/bpmntree/api/modules/user.ts +17 -17
- package/src/components/bpmntree/components/AdvancedFilter/Operator.vue +112 -112
- package/src/components/bpmntree/components/AdvancedFilter/Trigger.vue +23 -23
- package/src/components/bpmntree/components/AdvancedFilter/index.vue +230 -230
- package/src/components/bpmntree/components/AdvancedFilter/type.ts +20 -20
- package/src/components/bpmntree/components/FlowIcon/index.scss +7 -7
- package/src/components/bpmntree/components/FlowIcon/index.tsx +68 -68
- package/src/components/bpmntree/components/Render/render.vue +90 -90
- package/src/components/bpmntree/components/Render/type.ts +12 -12
- package/src/components/bpmntree/components/RoleSelector/RolePicker.vue +264 -264
- package/src/components/bpmntree/components/RoleSelector/RoleTag.vue +48 -48
- package/src/components/bpmntree/components/RoleSelector/index.vue +113 -113
- package/src/components/bpmntree/components/UserSelector/UserTag.vue +73 -73
- package/src/components/bpmntree/components/UserSelector/index.vue +140 -140
- package/src/components/bpmntree/hooks/useDraggableScroll.ts +44 -44
- package/src/components/bpmntree/typings/index.d.ts +1 -1
- package/src/components/bpmntree/views/flowDesign/index.vue +653 -653
- package/src/components/bpmntree/views/flowDesign/nodes/Add.vue +184 -184
- package/src/components/bpmntree/views/flowDesign/nodes/ApprovalNode.vue +127 -127
- package/src/components/bpmntree/views/flowDesign/nodes/CcNode.vue +93 -93
- package/src/components/bpmntree/views/flowDesign/nodes/ConcurrentNode.vue +61 -61
- package/src/components/bpmntree/views/flowDesign/nodes/ConditionNode.vue +60 -60
- package/src/components/bpmntree/views/flowDesign/nodes/EndNode.vue +80 -80
- package/src/components/bpmntree/views/flowDesign/nodes/ExclusiveNode.vue +20 -20
- package/src/components/bpmntree/views/flowDesign/nodes/GatewayNode.vue +173 -173
- package/src/components/bpmntree/views/flowDesign/nodes/InclusiveNode.vue +20 -20
- package/src/components/bpmntree/views/flowDesign/nodes/JumpNode.vue +49 -49
- package/src/components/bpmntree/views/flowDesign/nodes/Node.vue +346 -346
- package/src/components/bpmntree/views/flowDesign/nodes/NotifyNode.vue +115 -115
- package/src/components/bpmntree/views/flowDesign/nodes/ParallelNode.vue +20 -20
- package/src/components/bpmntree/views/flowDesign/nodes/PopoverView.vue +78 -78
- package/src/components/bpmntree/views/flowDesign/nodes/StartNode.vue +84 -84
- package/src/components/bpmntree/views/flowDesign/nodes/TimerNode.vue +50 -50
- package/src/components/bpmntree/views/flowDesign/nodes/TreeNode.vue +45 -45
- package/src/components/bpmntree/views/flowDesign/nodes/type.ts +204 -204
- package/src/components/bpmntree/views/flowDesign/panels/ApprovalPanel.vue +581 -581
- package/src/components/bpmntree/views/flowDesign/panels/AssigneePanel.vue +120 -120
- package/src/components/bpmntree/views/flowDesign/panels/CcPanel.vue +99 -99
- package/src/components/bpmntree/views/flowDesign/panels/ConditionPanel.vue +41 -41
- package/src/components/bpmntree/views/flowDesign/panels/EndPanel.vue +18 -18
- package/src/components/bpmntree/views/flowDesign/panels/ExecutionListeners.vue +110 -110
- package/src/components/bpmntree/views/flowDesign/panels/JumpPanel.vue +32 -32
- package/src/components/bpmntree/views/flowDesign/panels/NotifyPanel.vue +101 -101
- package/src/components/bpmntree/views/flowDesign/panels/ParaPanel.vue +248 -248
- package/src/components/bpmntree/views/flowDesign/panels/StartPanel.vue +160 -160
- package/src/components/bpmntree/views/flowDesign/panels/TaskListeners.vue +110 -110
- package/src/components/bpmntree/views/flowDesign/panels/TimerPanel.vue +51 -51
- package/src/components/bpmntree/views/flowDesign/panels/index.vue +85 -85
- package/src/components/bpmntree/views/view.index.vue +291 -291
- package/src/components/business/comp.selectUser.vue +60 -60
- package/src/components/business/comp.userForm.vue +311 -311
- package/src/components/business/userSelect.vue +413 -413
- package/src/components/icon/ElIconBtn.vue +243 -243
- package/src/components/icon/ElIcons.vue +38 -38
- package/src/components/kFrame/IframeOptions.ts +116 -116
- package/src/components/kFrame/KFrame.vue +161 -161
- package/src/components/tooltip/index.ts +11 -11
- package/src/components/tooltip/src/tooltip.ts +518 -518
- package/src/components/upload/ElUploads.vue +364 -364
- package/src/components/upload/FileView.vue +214 -214
- package/src/components/upload/FileViewComponents.vue +56 -56
- package/src/components/vxeGrid/index.vue +36 -36
- package/src/components/workflow/TaskOperation.vue +247 -247
- package/src/components/workflow/WorkflowTodoDialog.vue +91 -91
- package/src/components/workflow/components/AddOrMinusMultiDialog.vue +159 -159
- package/src/components/workflow/components/CheckDialog.vue +367 -367
- package/src/components/workflow/components/ProcessDetailComp.vue +157 -157
- package/src/components/workflow/components/ProcessDetailDialog.vue +129 -129
- package/src/components/workflow/components/ProcessInstance.vue +117 -117
- package/src/components/workflow/components/ProcessInstanceStep.vue +377 -377
- package/src/components/workflow/components/SelectAssigneeDialog.vue +109 -109
- package/src/components/workflow/components/SelectReturnActivityDialog.vue +104 -104
- package/src/config/ElementPlusConfig.ts +95 -95
- package/src/config/VxeTableConfig.ts +254 -254
- package/src/css/elementUI/affix.scss +7 -7
- package/src/css/elementUI/alert.scss +115 -115
- package/src/css/elementUI/anchor-link.scss +41 -41
- package/src/css/elementUI/anchor.scss +88 -88
- package/src/css/elementUI/aside.scss +8 -8
- package/src/css/elementUI/autocomplete.scss +89 -89
- package/src/css/elementUI/avatar.scss +55 -55
- package/src/css/elementUI/backtop.scss +29 -29
- package/src/css/elementUI/badge.scss +58 -58
- package/src/css/elementUI/base.scss +3 -3
- package/src/css/elementUI/breadcrumb.scss +62 -62
- package/src/css/elementUI/button-group.scss +80 -80
- package/src/css/elementUI/button.scss +304 -304
- package/src/css/elementUI/calendar.scss +80 -80
- package/src/css/elementUI/card.scss +45 -45
- package/src/css/elementUI/carousel-item.scss +58 -58
- package/src/css/elementUI/carousel.scss +188 -188
- package/src/css/elementUI/cascader-panel.scss +138 -138
- package/src/css/elementUI/cascader.scss +230 -230
- package/src/css/elementUI/check-tag.scss +60 -60
- package/src/css/elementUI/checkbox-button.scss +140 -140
- package/src/css/elementUI/checkbox-group.scss +7 -7
- package/src/css/elementUI/checkbox.scss +298 -298
- package/src/css/elementUI/col.scss +48 -48
- package/src/css/elementUI/collapse.scss +70 -70
- package/src/css/elementUI/color/index.scss +20 -20
- package/src/css/elementUI/color-picker.scss +392 -392
- package/src/css/elementUI/common/popup.scss +47 -47
- package/src/css/elementUI/common/transition.scss +122 -122
- package/src/css/elementUI/common/var.scss +1549 -1549
- package/src/css/elementUI/container.scss +14 -14
- package/src/css/elementUI/dark/css-vars.scss +39 -39
- package/src/css/elementUI/dark/var.scss +222 -222
- package/src/css/elementUI/date-picker/date-picker.scss +110 -110
- package/src/css/elementUI/date-picker/date-range-picker.scss +113 -113
- package/src/css/elementUI/date-picker/date-table.scss +158 -158
- package/src/css/elementUI/date-picker/month-table.scss +112 -112
- package/src/css/elementUI/date-picker/picker-panel.scss +131 -131
- package/src/css/elementUI/date-picker/picker.scss +219 -219
- package/src/css/elementUI/date-picker/time-picker.scss +90 -90
- package/src/css/elementUI/date-picker/time-range-picker.scss +33 -33
- package/src/css/elementUI/date-picker/time-spinner.scss +111 -111
- package/src/css/elementUI/date-picker/year-table.scss +108 -108
- package/src/css/elementUI/date-picker.scss +9 -9
- package/src/css/elementUI/descriptions-item.scss +73 -73
- package/src/css/elementUI/descriptions.scss +152 -152
- package/src/css/elementUI/dialog.scss +199 -199
- package/src/css/elementUI/display.scss +12 -12
- package/src/css/elementUI/divider.scss +48 -48
- package/src/css/elementUI/drawer.scss +164 -164
- package/src/css/elementUI/dropdown.scss +208 -208
- package/src/css/elementUI/empty.scss +49 -49
- package/src/css/elementUI/footer.scss +12 -12
- package/src/css/elementUI/form.scss +243 -243
- package/src/css/elementUI/header.scss +12 -12
- package/src/css/elementUI/icon.scss +45 -45
- package/src/css/elementUI/image-viewer.scss +139 -139
- package/src/css/elementUI/image.scss +49 -49
- package/src/css/elementUI/index.scss +110 -110
- package/src/css/elementUI/input-number.scss +178 -178
- package/src/css/elementUI/input.scss +478 -478
- package/src/css/elementUI/link.scss +90 -90
- package/src/css/elementUI/loading.scss +104 -104
- package/src/css/elementUI/main.scss +14 -14
- package/src/css/elementUI/mention.scss +88 -88
- package/src/css/elementUI/menu.scss +339 -339
- package/src/css/elementUI/message-box.scss +213 -213
- package/src/css/elementUI/message.scss +98 -98
- package/src/css/elementUI/mixins/_button.scss +165 -165
- package/src/css/elementUI/mixins/_col.scss +33 -33
- package/src/css/elementUI/mixins/_var.scss +67 -67
- package/src/css/elementUI/mixins/config.scss +5 -5
- package/src/css/elementUI/mixins/function.scss +88 -88
- package/src/css/elementUI/mixins/mixins.scss +237 -237
- package/src/css/elementUI/mixins/utils.scss +39 -39
- package/src/css/elementUI/notification.scss +104 -104
- package/src/css/elementUI/option-group.scss +33 -33
- package/src/css/elementUI/option.scss +71 -71
- package/src/css/elementUI/overlay.scss +17 -17
- package/src/css/elementUI/page-header.scss +60 -60
- package/src/css/elementUI/pagination.scss +238 -238
- package/src/css/elementUI/popconfirm.scss +16 -16
- package/src/css/elementUI/popover.scss +61 -61
- package/src/css/elementUI/popper.scss +106 -106
- package/src/css/elementUI/progress.scss +179 -179
- package/src/css/elementUI/radio-button.scss +169 -169
- package/src/css/elementUI/radio-group.scss +9 -9
- package/src/css/elementUI/radio.scss +215 -215
- package/src/css/elementUI/rate.scss +108 -108
- package/src/css/elementUI/reset.scss +98 -98
- package/src/css/elementUI/result.scss +57 -57
- package/src/css/elementUI/row.scss +35 -35
- package/src/css/elementUI/scrollbar.scss +97 -97
- package/src/css/elementUI/segmented.scss +183 -183
- package/src/css/elementUI/select-dropdown-v2.scss +1 -1
- package/src/css/elementUI/select-dropdown.scss +57 -57
- package/src/css/elementUI/select-v2.scss +4 -4
- package/src/css/elementUI/select.scss +253 -253
- package/src/css/elementUI/skeleton-item.scss +83 -83
- package/src/css/elementUI/skeleton.scss +44 -44
- package/src/css/elementUI/slider.scss +212 -212
- package/src/css/elementUI/space.scss +20 -20
- package/src/css/elementUI/spinner.scss +43 -43
- package/src/css/elementUI/statistic.scss +35 -35
- package/src/css/elementUI/step.scss +316 -316
- package/src/css/elementUI/steps.scss +21 -21
- package/src/css/elementUI/switch.scss +300 -300
- package/src/css/elementUI/table-column.scss +98 -98
- package/src/css/elementUI/table-v2.scss +236 -236
- package/src/css/elementUI/table.scss +697 -697
- package/src/css/elementUI/tabs.scss +659 -659
- package/src/css/elementUI/tag.scss +181 -181
- package/src/css/elementUI/text.scss +51 -51
- package/src/css/elementUI/time-picker.scss +5 -5
- package/src/css/elementUI/time-select.scss +37 -37
- package/src/css/elementUI/timeline-item.scss +84 -84
- package/src/css/elementUI/timeline.scss +46 -46
- package/src/css/elementUI/tooltip-v2.scss +95 -95
- package/src/css/elementUI/tour.scss +187 -187
- package/src/css/elementUI/transfer.scss +203 -203
- package/src/css/elementUI/tree-select.scss +41 -41
- package/src/css/elementUI/tree.scss +134 -134
- package/src/css/elementUI/upload.scss +654 -654
- package/src/css/elementUI/var.scss +87 -87
- package/src/css/elementUI/virtual-list.scss +40 -40
- package/src/css/vxeTableUI/all.scss +9 -9
- package/src/css/vxeTableUI/base.scss +16 -16
- package/src/css/vxeTableUI/components/colgroup.scss +0 -0
- package/src/css/vxeTableUI/components/column.scss +0 -0
- package/src/css/vxeTableUI/components/grid.scss +83 -83
- package/src/css/vxeTableUI/components/icon.scss +1017 -1017
- package/src/css/vxeTableUI/components/iconTable.scss +205 -205
- package/src/css/vxeTableUI/components/old-icon.scss +715 -715
- package/src/css/vxeTableUI/components/table-module/all.scss +6 -6
- package/src/css/vxeTableUI/components/table-module/custom.scss +490 -490
- package/src/css/vxeTableUI/components/table-module/edit.scss +0 -0
- package/src/css/vxeTableUI/components/table-module/export.scss +130 -130
- package/src/css/vxeTableUI/components/table-module/filter.scss +127 -127
- package/src/css/vxeTableUI/components/table-module/keyboard.scss +0 -0
- package/src/css/vxeTableUI/components/table-module/menu.scss +85 -85
- package/src/css/vxeTableUI/components/table-module/validator.scss +0 -0
- package/src/css/vxeTableUI/components/table.scss +2256 -2256
- package/src/css/vxeTableUI/components/toolbar.scss +99 -99
- package/src/css/vxeTableUI/components/ui.scss +0 -0
- package/src/css/vxeTableUI/components/v-x-e-table.scss +0 -0
- package/src/css/vxeTableUI/cssvar.scss +2 -2
- package/src/css/vxeTableUI/default.scss +2 -2
- package/src/css/vxeTableUI/helpers/baseMixin.scss +82 -82
- package/src/css/vxeTableUI/icon/iconfont.ttf +0 -0
- package/src/css/vxeTableUI/icon/iconfont.woff +0 -0
- package/src/css/vxeTableUI/icon/iconfont.woff2 +0 -0
- package/src/css/vxeTableUI/index.scss +4 -4
- package/src/css/vxeTableUI/modules.scss +5 -5
- package/src/css/vxeTableUI/theme/base.scss +88 -88
- package/src/css/vxeTableUI/theme/dark.scss +46 -46
- package/src/css/vxeTableUI/theme/light.scss +41 -41
- package/src/css/vxeTableUI/variable.scss +41 -41
- package/src/directives/vKeydown.ts +91 -91
- package/src/hooks/useDictHooks.ts +120 -119
- package/src/hooks/useEcharts.ts +58 -58
- package/src/hooks/useFileView.ts +11 -11
- package/src/hooks/useListenerHooks.ts +137 -137
- package/src/hooks/useMessageHooks.ts +132 -132
- package/src/hooks/useOpenNewMenu.ts +30 -30
- package/src/hooks/usePermissionHooks.ts +139 -139
- package/src/hooks/usePermissionToolHooks.ts +21 -21
- package/src/hooks/useResetRefHooks.ts +18 -18
- package/src/hooks/userWorkflowHooks.ts +112 -112
- package/src/hooks/workflowTodo.ts +85 -85
- package/src/interface/BaseEntity.ts +30 -30
- package/src/interface/IMdmDept.ts +84 -84
- package/src/interface/IMdmEmployee.ts +153 -153
- package/src/interface/IMdmEmployeeQuery.ts +21 -21
- package/src/interface/IMdmOrg.ts +29 -29
- package/src/interface/IMdmOrgQuery.ts +13 -13
- package/src/interface/IOrgDeptInfo.ts +12 -12
- package/src/interface/ISortList.ts +6 -6
- package/src/interface/ISysDictDataCacheVo.ts +46 -46
- package/src/interface/ISysDictType.ts +37 -37
- package/src/interface/ISysMenuDataVo.ts +22 -22
- package/src/interface/ISysMenuInfoVo.ts +83 -83
- package/src/interface/ISysMenuOperationVo.ts +21 -21
- package/src/interface/ISysUploadFiles.ts +16 -16
- package/src/interface/ISysUserInfo.ts +70 -70
- package/src/interface/IUserBaseInfo.ts +90 -90
- package/src/interface/IUserPermissionVo.ts +44 -44
- package/src/interface/IVxeTable.ts +1 -1
- package/src/interface/Message.ts +73 -73
- package/src/interface/PageData.ts +17 -17
- package/src/interface/ResponseData.ts +16 -16
- package/src/interface/dictMapType.ts +11 -11
- package/src/interface/enum/FlexEnum.ts +85 -85
- package/src/interface/enum/MessageEnum.ts +41 -41
- package/src/interface/workflow/IWfProcessDefVo.ts +14 -14
- package/src/interface/workflow/IWfReturnNodeVo.ts +16 -16
- package/src/interface/workflow/IWfTaskAskVo.ts +70 -70
- package/src/interface/workflow/IWfTaskQueryVo.ts +30 -30
- package/src/interface/workflow/IWfTaskUsersVo.ts +21 -21
- package/src/interface/workflow/IWfTaskVo.ts +192 -192
- package/src/interface/workflow/IWorkflowCommentVo.ts +24 -24
- package/src/interface/workflow/workflow.ts +22 -22
- package/src/main.ts +14 -14
- package/src/mixin/globalMixin.ts +48 -48
- package/src/packages/index.ts +18 -18
- package/src/packages/text.vue +13 -13
- package/src/plugins/echartsConfig.ts +74 -74
- package/src/plugins/plugins.ts +12 -12
- package/src/plugins/renderDialog.ts +74 -74
- package/src/router/index.ts +23 -23
- package/src/stores/dictStore.ts +51 -51
- package/src/stores/messageStore.ts +49 -49
- package/src/stores/permissionStore.ts +112 -112
- package/src/stores/storeConfig.ts +23 -23
- package/src/stores/userInfoStore.ts +31 -31
- package/src/utils/AxiosConfig.ts +226 -226
- package/src/utils/FrameworkUtils.ts +370 -370
- package/src/utils/commonUtils.ts +335 -335
- package/src/utils/encrypt.ts +18 -18
- package/src/utils/modules.ts +8 -8
- package/src/utils/request.ts +76 -76
- package/src/utils/tree.ts +50 -50
- package/tsconfig.app.json +12 -12
- package/tsconfig.json +11 -11
- package/tsconfig.node.json +18 -18
- package/vite.config.ts +38 -38
|
@@ -1,697 +1,697 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@use 'mixins/mixins' as *;
|
|
4
|
-
@use 'mixins/var' as *;
|
|
5
|
-
@use 'common/var' as *;
|
|
6
|
-
|
|
7
|
-
@include b(table) {
|
|
8
|
-
@include set-component-css-var('table', $table);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@include b(table) {
|
|
12
|
-
position: relative;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
height: fit-content;
|
|
16
|
-
width: 100%;
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
background-color: getCssVar('table-bg-color');
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
color: getCssVar('table-text-color');
|
|
21
|
-
|
|
22
|
-
@include e(inner-wrapper) {
|
|
23
|
-
position: relative;
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
height: 100%;
|
|
27
|
-
|
|
28
|
-
// 表格底部伪 border,总是有的
|
|
29
|
-
&::before {
|
|
30
|
-
@include extend-rule(border-pseudo);
|
|
31
|
-
left: 0;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
height: 1px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
tbody {
|
|
38
|
-
&:focus-visible {
|
|
39
|
-
outline: none;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.has-footer {
|
|
44
|
-
&.#{$namespace}-table--scrollable-y,
|
|
45
|
-
&.#{$namespace}-table--fluid-height {
|
|
46
|
-
tr:last-child td.#{$namespace}-table__cell {
|
|
47
|
-
border-bottom-color: transparent;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// when data is empty
|
|
53
|
-
@include e(empty-block) {
|
|
54
|
-
position: sticky;
|
|
55
|
-
left: 0;
|
|
56
|
-
min-height: 60px;
|
|
57
|
-
text-align: center;
|
|
58
|
-
width: 100%;
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@include e(empty-text) {
|
|
65
|
-
// min-height doesn't work in IE10 and IE11 https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
|
|
66
|
-
// set empty text line height up to contrainer min-height as workaround.
|
|
67
|
-
line-height: 60px;
|
|
68
|
-
width: 50%;
|
|
69
|
-
color: getCssVar('text-color', 'secondary');
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// expand the row
|
|
73
|
-
@include e(expand-column) {
|
|
74
|
-
.cell {
|
|
75
|
-
padding: 0;
|
|
76
|
-
text-align: center;
|
|
77
|
-
user-select: none;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@include e(expand-icon) {
|
|
82
|
-
position: relative;
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
color: getCssVar('text-color', 'regular');
|
|
85
|
-
font-size: 12px;
|
|
86
|
-
transition: transform getCssVar('transition-duration-fast') ease-in-out;
|
|
87
|
-
//height: 40px;
|
|
88
|
-
|
|
89
|
-
@include m(expanded) {
|
|
90
|
-
transform: rotate(90deg);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
> .#{$namespace}-icon {
|
|
94
|
-
font-size: 12px;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@include e(expanded-cell) {
|
|
99
|
-
background-color: getCssVar('table-expanded-cell-bg-color');
|
|
100
|
-
|
|
101
|
-
// increase the weight purely
|
|
102
|
-
&[class*='cell'] {
|
|
103
|
-
padding: 20px 50px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&:hover {
|
|
107
|
-
background-color: transparent !important;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@include e(placeholder) {
|
|
112
|
-
display: inline-block;
|
|
113
|
-
width: 20px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@include e(append-wrapper) {
|
|
117
|
-
// avoid overlapping margin https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
|
|
118
|
-
overflow: hidden;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@include m(fit) {
|
|
122
|
-
border-right: 0;
|
|
123
|
-
border-bottom: 0;
|
|
124
|
-
|
|
125
|
-
.#{$namespace}-table__cell.gutter {
|
|
126
|
-
border-right-width: 1px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@include e(inner-wrapper) {
|
|
130
|
-
&::before {
|
|
131
|
-
width: 100%;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
thead {
|
|
137
|
-
color: getCssVar('table-header-text-color');
|
|
138
|
-
|
|
139
|
-
th {
|
|
140
|
-
font-weight: 500;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&.is-group {
|
|
144
|
-
th.#{$namespace}-table__cell {
|
|
145
|
-
background: getCssVar('fill-color', 'light');
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.#{$namespace}-table__cell {
|
|
151
|
-
padding: map.get($table-padding, 'default');
|
|
152
|
-
min-width: 0;
|
|
153
|
-
box-sizing: border-box;
|
|
154
|
-
text-overflow: ellipsis;
|
|
155
|
-
vertical-align: middle;
|
|
156
|
-
position: relative;
|
|
157
|
-
text-align: left;
|
|
158
|
-
z-index: getCssVar('table-index');
|
|
159
|
-
|
|
160
|
-
@include when(center) {
|
|
161
|
-
text-align: center;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@include when(right) {
|
|
165
|
-
text-align: right;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&.gutter {
|
|
169
|
-
width: 15px;
|
|
170
|
-
border-right-width: 0;
|
|
171
|
-
border-bottom-width: 0;
|
|
172
|
-
padding: 0;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&.is-hidden {
|
|
176
|
-
> * {
|
|
177
|
-
visibility: hidden;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.cell {
|
|
183
|
-
box-sizing: border-box;
|
|
184
|
-
overflow: hidden;
|
|
185
|
-
text-overflow: ellipsis;
|
|
186
|
-
white-space: normal;
|
|
187
|
-
overflow-wrap: break-word;
|
|
188
|
-
line-height: 40px;
|
|
189
|
-
padding: 0 4px;
|
|
190
|
-
align-items: center;
|
|
191
|
-
&.#{$namespace}-tooltip {
|
|
192
|
-
white-space: nowrap;
|
|
193
|
-
min-width: 40px;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@each $size in (large, default, small) {
|
|
198
|
-
@include m($size) {
|
|
199
|
-
font-size: map.get($table-font-size, $size);
|
|
200
|
-
|
|
201
|
-
.#{$namespace}-table__cell {
|
|
202
|
-
padding: map.get($table-padding, $size);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.cell {
|
|
206
|
-
padding: map.get($table-cell-padding, $size);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
tr {
|
|
212
|
-
background-color: getCssVar('table-tr-bg-color');
|
|
213
|
-
|
|
214
|
-
input[type='checkbox'] {
|
|
215
|
-
margin: 0;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
th.#{$namespace}-table__cell.is-leaf,
|
|
220
|
-
td.#{$namespace}-table__cell {
|
|
221
|
-
border-bottom: getCssVar('table-border');
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
th.#{$namespace}-table__cell.is-sortable {
|
|
225
|
-
cursor: pointer;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
th.#{$namespace}-table__cell {
|
|
229
|
-
background-color: getCssVar('table-header-bg-color');
|
|
230
|
-
|
|
231
|
-
> .cell.highlight {
|
|
232
|
-
color: getCssVar('color-primary');
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
&.required > div::before {
|
|
236
|
-
display: inline-block;
|
|
237
|
-
content: '';
|
|
238
|
-
width: 8px;
|
|
239
|
-
height: 8px;
|
|
240
|
-
border-radius: 50%;
|
|
241
|
-
background: #ff4d51;
|
|
242
|
-
margin-right: 5px;
|
|
243
|
-
vertical-align: middle;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
td.#{$namespace}-table__cell {
|
|
248
|
-
div {
|
|
249
|
-
box-sizing: border-box;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
&.gutter {
|
|
253
|
-
width: 0;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
// 拥有多级表头
|
|
258
|
-
@include m((group, border)) {
|
|
259
|
-
@include share-rule(border-pseudo) {
|
|
260
|
-
content: '';
|
|
261
|
-
position: absolute;
|
|
262
|
-
background-color: getCssVar('table-border-color');
|
|
263
|
-
z-index: calc(getCssVar('table-index') + 2);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
// table--border
|
|
268
|
-
@include m(border) {
|
|
269
|
-
@include e(inner-wrapper) {
|
|
270
|
-
&::after {
|
|
271
|
-
@include extend-rule(border-pseudo);
|
|
272
|
-
left: 0;
|
|
273
|
-
top: 0;
|
|
274
|
-
width: 100%;
|
|
275
|
-
height: 1px;
|
|
276
|
-
z-index: calc(getCssVar('table-index') + 2);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
&::before {
|
|
281
|
-
@include extend-rule(border-pseudo);
|
|
282
|
-
top: -1px;
|
|
283
|
-
left: 0;
|
|
284
|
-
width: 1px;
|
|
285
|
-
height: 100%;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
&::after {
|
|
289
|
-
@include extend-rule(border-pseudo);
|
|
290
|
-
top: -1px;
|
|
291
|
-
right: 0;
|
|
292
|
-
width: 1px;
|
|
293
|
-
height: 100%;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
@include e(inner-wrapper) {
|
|
297
|
-
border-right: none;
|
|
298
|
-
border-bottom: none;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
@include e(footer-wrapper) {
|
|
302
|
-
position: relative;
|
|
303
|
-
flex-shrink: 0;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.#{$namespace}-table__cell {
|
|
307
|
-
border-right: getCssVar('table-border');
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
th.#{$namespace}-table__cell.gutter:last-of-type {
|
|
311
|
-
border-bottom: getCssVar('table-border');
|
|
312
|
-
border-bottom-width: 1px;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
& th.#{$namespace}-table__cell {
|
|
316
|
-
border-bottom: getCssVar('table-border');
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
@include m(hidden) {
|
|
321
|
-
visibility: hidden;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
@include e((header-wrapper, body-wrapper, footer-wrapper)) {
|
|
325
|
-
width: 100%;
|
|
326
|
-
|
|
327
|
-
tr {
|
|
328
|
-
td,
|
|
329
|
-
th {
|
|
330
|
-
&.#{$namespace}-table-fixed-column--left,
|
|
331
|
-
&.#{$namespace}-table-fixed-column--right {
|
|
332
|
-
position: sticky !important;
|
|
333
|
-
background: inherit;
|
|
334
|
-
z-index: calc(getCssVar('table-index') + 1);
|
|
335
|
-
|
|
336
|
-
&.is-last-column,
|
|
337
|
-
&.is-first-column {
|
|
338
|
-
&::before {
|
|
339
|
-
content: '';
|
|
340
|
-
position: absolute;
|
|
341
|
-
top: 0px;
|
|
342
|
-
width: 10px;
|
|
343
|
-
bottom: -1px;
|
|
344
|
-
overflow-x: hidden;
|
|
345
|
-
overflow-y: hidden;
|
|
346
|
-
box-shadow: none;
|
|
347
|
-
touch-action: none;
|
|
348
|
-
pointer-events: none;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
&.is-first-column {
|
|
353
|
-
&::before {
|
|
354
|
-
left: -10px;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
&.is-last-column {
|
|
359
|
-
&::before {
|
|
360
|
-
right: -10px;
|
|
361
|
-
box-shadow: none;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
&.#{$namespace}-table__fixed-right-patch {
|
|
367
|
-
position: sticky !important;
|
|
368
|
-
z-index: calc(getCssVar('table-index') + 1);
|
|
369
|
-
background: #fff;
|
|
370
|
-
right: 0;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
@include e(header-wrapper) {
|
|
377
|
-
flex-shrink: 0;
|
|
378
|
-
|
|
379
|
-
tr {
|
|
380
|
-
th {
|
|
381
|
-
&.#{$namespace}-table-fixed-column--left,
|
|
382
|
-
&.#{$namespace}-table-fixed-column--right {
|
|
383
|
-
background-color: getCssVar('table-header-bg-color');
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
@include e((header, body, footer)) {
|
|
390
|
-
table-layout: fixed;
|
|
391
|
-
border-collapse: separate;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
@include e((header-wrapper)) {
|
|
395
|
-
overflow: hidden;
|
|
396
|
-
|
|
397
|
-
& tbody td.#{$namespace}-table__cell {
|
|
398
|
-
background-color: getCssVar('table-row-hover-bg-color');
|
|
399
|
-
color: getCssVar('table-text-color');
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
@include e((footer-wrapper)) {
|
|
404
|
-
overflow: hidden;
|
|
405
|
-
flex-shrink: 0;
|
|
406
|
-
|
|
407
|
-
tfoot td.#{$namespace}-table__cell {
|
|
408
|
-
background-color: getCssVar('table-row-hover-bg-color');
|
|
409
|
-
color: getCssVar('table-text-color');
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
@include e((header-wrapper, body-wrapper)) {
|
|
414
|
-
.#{$namespace}-table-column--selection {
|
|
415
|
-
> .cell {
|
|
416
|
-
display: inline-flex;
|
|
417
|
-
align-items: center;
|
|
418
|
-
height: 23px;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.#{$namespace}-checkbox {
|
|
422
|
-
height: unset;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
@include when(scrolling-left) {
|
|
428
|
-
.#{$namespace}-table-fixed-column--right.is-first-column {
|
|
429
|
-
&::before {
|
|
430
|
-
box-shadow: getCssVar('table-fixed-right-column');
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
&.#{$namespace}-table--border {
|
|
435
|
-
.#{$namespace}-table-fixed-column--left {
|
|
436
|
-
&.is-last-column {
|
|
437
|
-
&.#{$namespace}-table__cell {
|
|
438
|
-
border-right: getCssVar('table-border');
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
th.#{$namespace}-table-fixed-column--left {
|
|
445
|
-
background-color: getCssVar('table-header-bg-color');
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
@include when(scrolling-right) {
|
|
450
|
-
.#{$namespace}-table-fixed-column--left.is-last-column {
|
|
451
|
-
&::before {
|
|
452
|
-
box-shadow: getCssVar('table-fixed-left-column');
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
|
|
457
|
-
border-right: none;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
th.#{$namespace}-table-fixed-column--right {
|
|
461
|
-
background-color: getCssVar('table-header-bg-color');
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
@include when(scrolling-middle) {
|
|
466
|
-
.#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
|
|
467
|
-
border-right: none;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.#{$namespace}-table-fixed-column--right.is-first-column {
|
|
471
|
-
&::before {
|
|
472
|
-
box-shadow: getCssVar('table-fixed-right-column');
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.#{$namespace}-table-fixed-column--left.is-last-column {
|
|
477
|
-
&::before {
|
|
478
|
-
box-shadow: getCssVar('table-fixed-left-column');
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
@include when(scrolling-none) {
|
|
484
|
-
.#{$namespace}-table-fixed-column--left,
|
|
485
|
-
.#{$namespace}-table-fixed-column--right {
|
|
486
|
-
&.is-first-column,
|
|
487
|
-
&.is-last-column {
|
|
488
|
-
&::before {
|
|
489
|
-
box-shadow: none;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
th.#{$namespace}-table-fixed-column--left,
|
|
495
|
-
th.#{$namespace}-table-fixed-column--right {
|
|
496
|
-
background-color: getCssVar('table-header-bg-color');
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
@include e(body-wrapper) {
|
|
501
|
-
overflow: hidden;
|
|
502
|
-
position: relative;
|
|
503
|
-
flex: 1;
|
|
504
|
-
|
|
505
|
-
.#{$namespace}-scrollbar__bar {
|
|
506
|
-
z-index: calc(getCssVar('table-index') + 2);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
.caret-wrapper {
|
|
511
|
-
display: inline-flex;
|
|
512
|
-
flex-direction: column;
|
|
513
|
-
align-items: center;
|
|
514
|
-
height: 14px;
|
|
515
|
-
width: 24px;
|
|
516
|
-
vertical-align: middle;
|
|
517
|
-
cursor: pointer;
|
|
518
|
-
overflow: initial;
|
|
519
|
-
position: relative;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.sort-caret {
|
|
523
|
-
width: 0;
|
|
524
|
-
height: 0;
|
|
525
|
-
border: solid 5px transparent;
|
|
526
|
-
position: absolute;
|
|
527
|
-
left: 7px;
|
|
528
|
-
|
|
529
|
-
&.ascending {
|
|
530
|
-
border-bottom-color: getCssVar('text-color', 'placeholder');
|
|
531
|
-
top: -5px;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
&.descending {
|
|
535
|
-
border-top-color: getCssVar('text-color', 'placeholder');
|
|
536
|
-
bottom: -3px;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.ascending .sort-caret.ascending {
|
|
541
|
-
border-bottom-color: getCssVar('color-primary');
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.descending .sort-caret.descending {
|
|
545
|
-
border-top-color: getCssVar('color-primary');
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.hidden-columns {
|
|
549
|
-
visibility: hidden;
|
|
550
|
-
position: absolute;
|
|
551
|
-
z-index: -1;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
@include m(striped) {
|
|
555
|
-
& .#{$namespace}-table__body {
|
|
556
|
-
& tr.#{$namespace}-table__row--striped {
|
|
557
|
-
td.#{$namespace}-table__cell {
|
|
558
|
-
background: getCssVar('fill-color', 'lighter');
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
&.current-row td.#{$namespace}-table__cell {
|
|
562
|
-
background-color: getCssVar('table-current-row-bg-color');
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
@include e(body) {
|
|
569
|
-
tr.hover-row {
|
|
570
|
-
&,
|
|
571
|
-
&.#{$namespace}-table__row--striped {
|
|
572
|
-
&,
|
|
573
|
-
&.current-row {
|
|
574
|
-
> td.#{$namespace}-table__cell {
|
|
575
|
-
background-color: getCssVar('table-row-hover-bg-color');
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
tr > td.hover-cell {
|
|
582
|
-
background-color: getCssVar('table-row-hover-bg-color');
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
tr.current-row > td.#{$namespace}-table__cell {
|
|
586
|
-
background-color: getCssVar('table-current-row-bg-color');
|
|
587
|
-
}
|
|
588
|
-
tr > td.#{$namespace}-table__cell:hover {
|
|
589
|
-
color: getCssVar('color-primary');
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
&.#{$namespace}-table--scrollable-y {
|
|
594
|
-
@include e(body-header) {
|
|
595
|
-
position: sticky;
|
|
596
|
-
top: 0;
|
|
597
|
-
z-index: calc(getCssVar('table-index') + 2);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
@include e(body-footer) {
|
|
601
|
-
position: sticky;
|
|
602
|
-
bottom: 0;
|
|
603
|
-
z-index: calc(getCssVar('table-index') + 2);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
@include e(column-resize-proxy) {
|
|
608
|
-
position: absolute;
|
|
609
|
-
left: 200px;
|
|
610
|
-
top: 0;
|
|
611
|
-
bottom: 0;
|
|
612
|
-
width: 0;
|
|
613
|
-
border-left: getCssVar('table-border');
|
|
614
|
-
z-index: calc(getCssVar('table-index') + 9);
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
@include e(column-filter-trigger) {
|
|
618
|
-
display: inline-block;
|
|
619
|
-
cursor: pointer;
|
|
620
|
-
|
|
621
|
-
& i {
|
|
622
|
-
color: getCssVar('color-info');
|
|
623
|
-
font-size: 14px;
|
|
624
|
-
vertical-align: middle;
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
@include e(border-left-patch) {
|
|
629
|
-
top: 0;
|
|
630
|
-
left: 0;
|
|
631
|
-
width: 1px;
|
|
632
|
-
height: 100%;
|
|
633
|
-
z-index: calc(getCssVar('table-index') + 2);
|
|
634
|
-
position: absolute;
|
|
635
|
-
background-color: getCssVar('table-border-color');
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
@include e(border-bottom-patch) {
|
|
639
|
-
left: 0;
|
|
640
|
-
height: 1px;
|
|
641
|
-
z-index: calc(getCssVar('table-index') + 2);
|
|
642
|
-
position: absolute;
|
|
643
|
-
background-color: getCssVar('table-border-color');
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
@include e(border-right-patch) {
|
|
647
|
-
top: 0;
|
|
648
|
-
height: 100%;
|
|
649
|
-
width: 1px;
|
|
650
|
-
z-index: calc(getCssVar('table-index') + 2);
|
|
651
|
-
position: absolute;
|
|
652
|
-
background-color: getCssVar('table-border-color');
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
@include m(enable-row-transition) {
|
|
656
|
-
.#{$namespace}-table__body td.#{$namespace}-table__cell {
|
|
657
|
-
transition: background-color 0.25s ease;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
@include m(enable-row-hover) {
|
|
662
|
-
.#{$namespace}-table__body tr:not(.current-row):hover > td.#{$namespace}-table__cell {
|
|
663
|
-
background-color: getCssVar('table-row-hover-bg-color');
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
[class*='#{$namespace}-table__row--level'] {
|
|
668
|
-
.#{$namespace}-table__expand-icon {
|
|
669
|
-
display: inline-block;
|
|
670
|
-
width: 12px;
|
|
671
|
-
line-height: 12px;
|
|
672
|
-
height: 12px;
|
|
673
|
-
text-align: center;
|
|
674
|
-
margin-right: 8px;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
@include b(table) {
|
|
679
|
-
&.#{$namespace}-table--border {
|
|
680
|
-
.#{$namespace}-table__cell {
|
|
681
|
-
border-right: getCssVar('table-border');
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
&:not(.#{$namespace}-table--border) {
|
|
687
|
-
.#{$namespace}-table__cell {
|
|
688
|
-
border-right: none;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
> .#{$namespace}-table__inner-wrapper {
|
|
692
|
-
&::after {
|
|
693
|
-
content: none;
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
}
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/var' as *;
|
|
5
|
+
@use 'common/var' as *;
|
|
6
|
+
|
|
7
|
+
@include b(table) {
|
|
8
|
+
@include set-component-css-var('table', $table);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@include b(table) {
|
|
12
|
+
position: relative;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
height: fit-content;
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
background-color: getCssVar('table-bg-color');
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
color: getCssVar('table-text-color');
|
|
21
|
+
|
|
22
|
+
@include e(inner-wrapper) {
|
|
23
|
+
position: relative;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
height: 100%;
|
|
27
|
+
|
|
28
|
+
// 表格底部伪 border,总是有的
|
|
29
|
+
&::before {
|
|
30
|
+
@include extend-rule(border-pseudo);
|
|
31
|
+
left: 0;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
height: 1px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
tbody {
|
|
38
|
+
&:focus-visible {
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.has-footer {
|
|
44
|
+
&.#{$namespace}-table--scrollable-y,
|
|
45
|
+
&.#{$namespace}-table--fluid-height {
|
|
46
|
+
tr:last-child td.#{$namespace}-table__cell {
|
|
47
|
+
border-bottom-color: transparent;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// when data is empty
|
|
53
|
+
@include e(empty-block) {
|
|
54
|
+
position: sticky;
|
|
55
|
+
left: 0;
|
|
56
|
+
min-height: 60px;
|
|
57
|
+
text-align: center;
|
|
58
|
+
width: 100%;
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
align-items: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@include e(empty-text) {
|
|
65
|
+
// min-height doesn't work in IE10 and IE11 https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
|
|
66
|
+
// set empty text line height up to contrainer min-height as workaround.
|
|
67
|
+
line-height: 60px;
|
|
68
|
+
width: 50%;
|
|
69
|
+
color: getCssVar('text-color', 'secondary');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// expand the row
|
|
73
|
+
@include e(expand-column) {
|
|
74
|
+
.cell {
|
|
75
|
+
padding: 0;
|
|
76
|
+
text-align: center;
|
|
77
|
+
user-select: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include e(expand-icon) {
|
|
82
|
+
position: relative;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
color: getCssVar('text-color', 'regular');
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
transition: transform getCssVar('transition-duration-fast') ease-in-out;
|
|
87
|
+
//height: 40px;
|
|
88
|
+
|
|
89
|
+
@include m(expanded) {
|
|
90
|
+
transform: rotate(90deg);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
> .#{$namespace}-icon {
|
|
94
|
+
font-size: 12px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@include e(expanded-cell) {
|
|
99
|
+
background-color: getCssVar('table-expanded-cell-bg-color');
|
|
100
|
+
|
|
101
|
+
// increase the weight purely
|
|
102
|
+
&[class*='cell'] {
|
|
103
|
+
padding: 20px 50px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:hover {
|
|
107
|
+
background-color: transparent !important;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@include e(placeholder) {
|
|
112
|
+
display: inline-block;
|
|
113
|
+
width: 20px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@include e(append-wrapper) {
|
|
117
|
+
// avoid overlapping margin https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@include m(fit) {
|
|
122
|
+
border-right: 0;
|
|
123
|
+
border-bottom: 0;
|
|
124
|
+
|
|
125
|
+
.#{$namespace}-table__cell.gutter {
|
|
126
|
+
border-right-width: 1px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@include e(inner-wrapper) {
|
|
130
|
+
&::before {
|
|
131
|
+
width: 100%;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
thead {
|
|
137
|
+
color: getCssVar('table-header-text-color');
|
|
138
|
+
|
|
139
|
+
th {
|
|
140
|
+
font-weight: 500;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.is-group {
|
|
144
|
+
th.#{$namespace}-table__cell {
|
|
145
|
+
background: getCssVar('fill-color', 'light');
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.#{$namespace}-table__cell {
|
|
151
|
+
padding: map.get($table-padding, 'default');
|
|
152
|
+
min-width: 0;
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
text-overflow: ellipsis;
|
|
155
|
+
vertical-align: middle;
|
|
156
|
+
position: relative;
|
|
157
|
+
text-align: left;
|
|
158
|
+
z-index: getCssVar('table-index');
|
|
159
|
+
|
|
160
|
+
@include when(center) {
|
|
161
|
+
text-align: center;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@include when(right) {
|
|
165
|
+
text-align: right;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.gutter {
|
|
169
|
+
width: 15px;
|
|
170
|
+
border-right-width: 0;
|
|
171
|
+
border-bottom-width: 0;
|
|
172
|
+
padding: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.is-hidden {
|
|
176
|
+
> * {
|
|
177
|
+
visibility: hidden;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.cell {
|
|
183
|
+
box-sizing: border-box;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
text-overflow: ellipsis;
|
|
186
|
+
white-space: normal;
|
|
187
|
+
overflow-wrap: break-word;
|
|
188
|
+
line-height: 40px;
|
|
189
|
+
padding: 0 4px;
|
|
190
|
+
align-items: center;
|
|
191
|
+
&.#{$namespace}-tooltip {
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
min-width: 40px;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@each $size in (large, default, small) {
|
|
198
|
+
@include m($size) {
|
|
199
|
+
font-size: map.get($table-font-size, $size);
|
|
200
|
+
|
|
201
|
+
.#{$namespace}-table__cell {
|
|
202
|
+
padding: map.get($table-padding, $size);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.cell {
|
|
206
|
+
padding: map.get($table-cell-padding, $size);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
tr {
|
|
212
|
+
background-color: getCssVar('table-tr-bg-color');
|
|
213
|
+
|
|
214
|
+
input[type='checkbox'] {
|
|
215
|
+
margin: 0;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
th.#{$namespace}-table__cell.is-leaf,
|
|
220
|
+
td.#{$namespace}-table__cell {
|
|
221
|
+
border-bottom: getCssVar('table-border');
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
th.#{$namespace}-table__cell.is-sortable {
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
th.#{$namespace}-table__cell {
|
|
229
|
+
background-color: getCssVar('table-header-bg-color');
|
|
230
|
+
|
|
231
|
+
> .cell.highlight {
|
|
232
|
+
color: getCssVar('color-primary');
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&.required > div::before {
|
|
236
|
+
display: inline-block;
|
|
237
|
+
content: '';
|
|
238
|
+
width: 8px;
|
|
239
|
+
height: 8px;
|
|
240
|
+
border-radius: 50%;
|
|
241
|
+
background: #ff4d51;
|
|
242
|
+
margin-right: 5px;
|
|
243
|
+
vertical-align: middle;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
td.#{$namespace}-table__cell {
|
|
248
|
+
div {
|
|
249
|
+
box-sizing: border-box;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
&.gutter {
|
|
253
|
+
width: 0;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// 拥有多级表头
|
|
258
|
+
@include m((group, border)) {
|
|
259
|
+
@include share-rule(border-pseudo) {
|
|
260
|
+
content: '';
|
|
261
|
+
position: absolute;
|
|
262
|
+
background-color: getCssVar('table-border-color');
|
|
263
|
+
z-index: calc(getCssVar('table-index') + 2);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// table--border
|
|
268
|
+
@include m(border) {
|
|
269
|
+
@include e(inner-wrapper) {
|
|
270
|
+
&::after {
|
|
271
|
+
@include extend-rule(border-pseudo);
|
|
272
|
+
left: 0;
|
|
273
|
+
top: 0;
|
|
274
|
+
width: 100%;
|
|
275
|
+
height: 1px;
|
|
276
|
+
z-index: calc(getCssVar('table-index') + 2);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&::before {
|
|
281
|
+
@include extend-rule(border-pseudo);
|
|
282
|
+
top: -1px;
|
|
283
|
+
left: 0;
|
|
284
|
+
width: 1px;
|
|
285
|
+
height: 100%;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&::after {
|
|
289
|
+
@include extend-rule(border-pseudo);
|
|
290
|
+
top: -1px;
|
|
291
|
+
right: 0;
|
|
292
|
+
width: 1px;
|
|
293
|
+
height: 100%;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@include e(inner-wrapper) {
|
|
297
|
+
border-right: none;
|
|
298
|
+
border-bottom: none;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@include e(footer-wrapper) {
|
|
302
|
+
position: relative;
|
|
303
|
+
flex-shrink: 0;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.#{$namespace}-table__cell {
|
|
307
|
+
border-right: getCssVar('table-border');
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
th.#{$namespace}-table__cell.gutter:last-of-type {
|
|
311
|
+
border-bottom: getCssVar('table-border');
|
|
312
|
+
border-bottom-width: 1px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
& th.#{$namespace}-table__cell {
|
|
316
|
+
border-bottom: getCssVar('table-border');
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@include m(hidden) {
|
|
321
|
+
visibility: hidden;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@include e((header-wrapper, body-wrapper, footer-wrapper)) {
|
|
325
|
+
width: 100%;
|
|
326
|
+
|
|
327
|
+
tr {
|
|
328
|
+
td,
|
|
329
|
+
th {
|
|
330
|
+
&.#{$namespace}-table-fixed-column--left,
|
|
331
|
+
&.#{$namespace}-table-fixed-column--right {
|
|
332
|
+
position: sticky !important;
|
|
333
|
+
background: inherit;
|
|
334
|
+
z-index: calc(getCssVar('table-index') + 1);
|
|
335
|
+
|
|
336
|
+
&.is-last-column,
|
|
337
|
+
&.is-first-column {
|
|
338
|
+
&::before {
|
|
339
|
+
content: '';
|
|
340
|
+
position: absolute;
|
|
341
|
+
top: 0px;
|
|
342
|
+
width: 10px;
|
|
343
|
+
bottom: -1px;
|
|
344
|
+
overflow-x: hidden;
|
|
345
|
+
overflow-y: hidden;
|
|
346
|
+
box-shadow: none;
|
|
347
|
+
touch-action: none;
|
|
348
|
+
pointer-events: none;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
&.is-first-column {
|
|
353
|
+
&::before {
|
|
354
|
+
left: -10px;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
&.is-last-column {
|
|
359
|
+
&::before {
|
|
360
|
+
right: -10px;
|
|
361
|
+
box-shadow: none;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&.#{$namespace}-table__fixed-right-patch {
|
|
367
|
+
position: sticky !important;
|
|
368
|
+
z-index: calc(getCssVar('table-index') + 1);
|
|
369
|
+
background: #fff;
|
|
370
|
+
right: 0;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
@include e(header-wrapper) {
|
|
377
|
+
flex-shrink: 0;
|
|
378
|
+
|
|
379
|
+
tr {
|
|
380
|
+
th {
|
|
381
|
+
&.#{$namespace}-table-fixed-column--left,
|
|
382
|
+
&.#{$namespace}-table-fixed-column--right {
|
|
383
|
+
background-color: getCssVar('table-header-bg-color');
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@include e((header, body, footer)) {
|
|
390
|
+
table-layout: fixed;
|
|
391
|
+
border-collapse: separate;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
@include e((header-wrapper)) {
|
|
395
|
+
overflow: hidden;
|
|
396
|
+
|
|
397
|
+
& tbody td.#{$namespace}-table__cell {
|
|
398
|
+
background-color: getCssVar('table-row-hover-bg-color');
|
|
399
|
+
color: getCssVar('table-text-color');
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
@include e((footer-wrapper)) {
|
|
404
|
+
overflow: hidden;
|
|
405
|
+
flex-shrink: 0;
|
|
406
|
+
|
|
407
|
+
tfoot td.#{$namespace}-table__cell {
|
|
408
|
+
background-color: getCssVar('table-row-hover-bg-color');
|
|
409
|
+
color: getCssVar('table-text-color');
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
@include e((header-wrapper, body-wrapper)) {
|
|
414
|
+
.#{$namespace}-table-column--selection {
|
|
415
|
+
> .cell {
|
|
416
|
+
display: inline-flex;
|
|
417
|
+
align-items: center;
|
|
418
|
+
height: 23px;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.#{$namespace}-checkbox {
|
|
422
|
+
height: unset;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@include when(scrolling-left) {
|
|
428
|
+
.#{$namespace}-table-fixed-column--right.is-first-column {
|
|
429
|
+
&::before {
|
|
430
|
+
box-shadow: getCssVar('table-fixed-right-column');
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
&.#{$namespace}-table--border {
|
|
435
|
+
.#{$namespace}-table-fixed-column--left {
|
|
436
|
+
&.is-last-column {
|
|
437
|
+
&.#{$namespace}-table__cell {
|
|
438
|
+
border-right: getCssVar('table-border');
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
th.#{$namespace}-table-fixed-column--left {
|
|
445
|
+
background-color: getCssVar('table-header-bg-color');
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
@include when(scrolling-right) {
|
|
450
|
+
.#{$namespace}-table-fixed-column--left.is-last-column {
|
|
451
|
+
&::before {
|
|
452
|
+
box-shadow: getCssVar('table-fixed-left-column');
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
|
|
457
|
+
border-right: none;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
th.#{$namespace}-table-fixed-column--right {
|
|
461
|
+
background-color: getCssVar('table-header-bg-color');
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
@include when(scrolling-middle) {
|
|
466
|
+
.#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
|
|
467
|
+
border-right: none;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.#{$namespace}-table-fixed-column--right.is-first-column {
|
|
471
|
+
&::before {
|
|
472
|
+
box-shadow: getCssVar('table-fixed-right-column');
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.#{$namespace}-table-fixed-column--left.is-last-column {
|
|
477
|
+
&::before {
|
|
478
|
+
box-shadow: getCssVar('table-fixed-left-column');
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
@include when(scrolling-none) {
|
|
484
|
+
.#{$namespace}-table-fixed-column--left,
|
|
485
|
+
.#{$namespace}-table-fixed-column--right {
|
|
486
|
+
&.is-first-column,
|
|
487
|
+
&.is-last-column {
|
|
488
|
+
&::before {
|
|
489
|
+
box-shadow: none;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
th.#{$namespace}-table-fixed-column--left,
|
|
495
|
+
th.#{$namespace}-table-fixed-column--right {
|
|
496
|
+
background-color: getCssVar('table-header-bg-color');
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
@include e(body-wrapper) {
|
|
501
|
+
overflow: hidden;
|
|
502
|
+
position: relative;
|
|
503
|
+
flex: 1;
|
|
504
|
+
|
|
505
|
+
.#{$namespace}-scrollbar__bar {
|
|
506
|
+
z-index: calc(getCssVar('table-index') + 2);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.caret-wrapper {
|
|
511
|
+
display: inline-flex;
|
|
512
|
+
flex-direction: column;
|
|
513
|
+
align-items: center;
|
|
514
|
+
height: 14px;
|
|
515
|
+
width: 24px;
|
|
516
|
+
vertical-align: middle;
|
|
517
|
+
cursor: pointer;
|
|
518
|
+
overflow: initial;
|
|
519
|
+
position: relative;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.sort-caret {
|
|
523
|
+
width: 0;
|
|
524
|
+
height: 0;
|
|
525
|
+
border: solid 5px transparent;
|
|
526
|
+
position: absolute;
|
|
527
|
+
left: 7px;
|
|
528
|
+
|
|
529
|
+
&.ascending {
|
|
530
|
+
border-bottom-color: getCssVar('text-color', 'placeholder');
|
|
531
|
+
top: -5px;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
&.descending {
|
|
535
|
+
border-top-color: getCssVar('text-color', 'placeholder');
|
|
536
|
+
bottom: -3px;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.ascending .sort-caret.ascending {
|
|
541
|
+
border-bottom-color: getCssVar('color-primary');
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.descending .sort-caret.descending {
|
|
545
|
+
border-top-color: getCssVar('color-primary');
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.hidden-columns {
|
|
549
|
+
visibility: hidden;
|
|
550
|
+
position: absolute;
|
|
551
|
+
z-index: -1;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
@include m(striped) {
|
|
555
|
+
& .#{$namespace}-table__body {
|
|
556
|
+
& tr.#{$namespace}-table__row--striped {
|
|
557
|
+
td.#{$namespace}-table__cell {
|
|
558
|
+
background: getCssVar('fill-color', 'lighter');
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
&.current-row td.#{$namespace}-table__cell {
|
|
562
|
+
background-color: getCssVar('table-current-row-bg-color');
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@include e(body) {
|
|
569
|
+
tr.hover-row {
|
|
570
|
+
&,
|
|
571
|
+
&.#{$namespace}-table__row--striped {
|
|
572
|
+
&,
|
|
573
|
+
&.current-row {
|
|
574
|
+
> td.#{$namespace}-table__cell {
|
|
575
|
+
background-color: getCssVar('table-row-hover-bg-color');
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
tr > td.hover-cell {
|
|
582
|
+
background-color: getCssVar('table-row-hover-bg-color');
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
tr.current-row > td.#{$namespace}-table__cell {
|
|
586
|
+
background-color: getCssVar('table-current-row-bg-color');
|
|
587
|
+
}
|
|
588
|
+
tr > td.#{$namespace}-table__cell:hover {
|
|
589
|
+
color: getCssVar('color-primary');
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
&.#{$namespace}-table--scrollable-y {
|
|
594
|
+
@include e(body-header) {
|
|
595
|
+
position: sticky;
|
|
596
|
+
top: 0;
|
|
597
|
+
z-index: calc(getCssVar('table-index') + 2);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
@include e(body-footer) {
|
|
601
|
+
position: sticky;
|
|
602
|
+
bottom: 0;
|
|
603
|
+
z-index: calc(getCssVar('table-index') + 2);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
@include e(column-resize-proxy) {
|
|
608
|
+
position: absolute;
|
|
609
|
+
left: 200px;
|
|
610
|
+
top: 0;
|
|
611
|
+
bottom: 0;
|
|
612
|
+
width: 0;
|
|
613
|
+
border-left: getCssVar('table-border');
|
|
614
|
+
z-index: calc(getCssVar('table-index') + 9);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
@include e(column-filter-trigger) {
|
|
618
|
+
display: inline-block;
|
|
619
|
+
cursor: pointer;
|
|
620
|
+
|
|
621
|
+
& i {
|
|
622
|
+
color: getCssVar('color-info');
|
|
623
|
+
font-size: 14px;
|
|
624
|
+
vertical-align: middle;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
@include e(border-left-patch) {
|
|
629
|
+
top: 0;
|
|
630
|
+
left: 0;
|
|
631
|
+
width: 1px;
|
|
632
|
+
height: 100%;
|
|
633
|
+
z-index: calc(getCssVar('table-index') + 2);
|
|
634
|
+
position: absolute;
|
|
635
|
+
background-color: getCssVar('table-border-color');
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
@include e(border-bottom-patch) {
|
|
639
|
+
left: 0;
|
|
640
|
+
height: 1px;
|
|
641
|
+
z-index: calc(getCssVar('table-index') + 2);
|
|
642
|
+
position: absolute;
|
|
643
|
+
background-color: getCssVar('table-border-color');
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
@include e(border-right-patch) {
|
|
647
|
+
top: 0;
|
|
648
|
+
height: 100%;
|
|
649
|
+
width: 1px;
|
|
650
|
+
z-index: calc(getCssVar('table-index') + 2);
|
|
651
|
+
position: absolute;
|
|
652
|
+
background-color: getCssVar('table-border-color');
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
@include m(enable-row-transition) {
|
|
656
|
+
.#{$namespace}-table__body td.#{$namespace}-table__cell {
|
|
657
|
+
transition: background-color 0.25s ease;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
@include m(enable-row-hover) {
|
|
662
|
+
.#{$namespace}-table__body tr:not(.current-row):hover > td.#{$namespace}-table__cell {
|
|
663
|
+
background-color: getCssVar('table-row-hover-bg-color');
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
[class*='#{$namespace}-table__row--level'] {
|
|
668
|
+
.#{$namespace}-table__expand-icon {
|
|
669
|
+
display: inline-block;
|
|
670
|
+
width: 12px;
|
|
671
|
+
line-height: 12px;
|
|
672
|
+
height: 12px;
|
|
673
|
+
text-align: center;
|
|
674
|
+
margin-right: 8px;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
@include b(table) {
|
|
679
|
+
&.#{$namespace}-table--border {
|
|
680
|
+
.#{$namespace}-table__cell {
|
|
681
|
+
border-right: getCssVar('table-border');
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
&:not(.#{$namespace}-table--border) {
|
|
687
|
+
.#{$namespace}-table__cell {
|
|
688
|
+
border-right: none;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
> .#{$namespace}-table__inner-wrapper {
|
|
692
|
+
&::after {
|
|
693
|
+
content: none;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|