forked from wangziqi/gongxue-base
feat: 支持表格单元格快捷编辑
This commit is contained in:
46
apps/admin/src/components/EditableCell/style.css
Normal file
46
apps/admin/src/components/EditableCell/style.css
Normal file
@@ -0,0 +1,46 @@
|
||||
.editable-cell {
|
||||
min-height: 30px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.editable-cell--enabled {
|
||||
cursor: cell;
|
||||
padding: 4px 6px;
|
||||
margin: -4px -6px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.editable-cell--enabled:not(.editable-cell--editing):hover {
|
||||
border-color: #91caff;
|
||||
background: #e6f4ff;
|
||||
}
|
||||
|
||||
.editable-cell--editing {
|
||||
cursor: text;
|
||||
padding: 0;
|
||||
margin: -4px -6px;
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
min-width: 88px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.editable-cell--editing .ant-spin-nested-loading,
|
||||
.editable-cell--editing .ant-spin-container,
|
||||
.editable-cell--editing .ant-input-number,
|
||||
.editable-cell--editing .ant-picker,
|
||||
.editable-cell--editing .ant-select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editable-cell-dropdown {
|
||||
min-width: 140px !important;
|
||||
}
|
||||
|
||||
.editable-cell-dropdown .ant-select-item-option-content {
|
||||
white-space: nowrap;
|
||||
}
|
||||
Reference in New Issue
Block a user