first commit
This commit is contained in:
55
frontend/node_modules/antd/es/table/style/sticky.js
generated
vendored
Normal file
55
frontend/node_modules/antd/es/table/style/sticky.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
import { unit } from '@ant-design/cssinjs';
|
||||
const genStickyStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
opacityLoading,
|
||||
tableScrollThumbBg,
|
||||
tableScrollThumbBgHover,
|
||||
tableScrollThumbSize,
|
||||
tableScrollBg,
|
||||
zIndexTableSticky,
|
||||
stickyScrollBarBorderRadius,
|
||||
lineWidth,
|
||||
lineType,
|
||||
tableBorderColor
|
||||
} = token;
|
||||
const tableBorder = `${unit(lineWidth)} ${lineType} ${tableBorderColor}`;
|
||||
return {
|
||||
[`${componentCls}-wrapper`]: {
|
||||
[`${componentCls}-sticky`]: {
|
||||
'&-holder': {
|
||||
position: 'sticky',
|
||||
zIndex: zIndexTableSticky,
|
||||
background: token.colorBgContainer
|
||||
},
|
||||
'&-scroll': {
|
||||
position: 'sticky',
|
||||
bottom: 0,
|
||||
height: `${unit(tableScrollThumbSize)} !important`,
|
||||
zIndex: zIndexTableSticky,
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
background: tableScrollBg,
|
||||
borderTop: tableBorder,
|
||||
opacity: opacityLoading,
|
||||
'&:hover': {
|
||||
transformOrigin: 'center bottom'
|
||||
},
|
||||
// fake scrollbar style of sticky
|
||||
'&-bar': {
|
||||
height: tableScrollThumbSize,
|
||||
backgroundColor: tableScrollThumbBg,
|
||||
borderRadius: stickyScrollBarBorderRadius,
|
||||
transition: `all ${token.motionDurationSlow}, transform 0s`,
|
||||
position: 'absolute',
|
||||
bottom: 0,
|
||||
'&:hover, &-active': {
|
||||
backgroundColor: tableScrollThumbBgHover
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
export default genStickyStyle;
|
||||
Reference in New Issue
Block a user