0.0.4 • Published 9 months ago
scroll-sticky-top v0.0.4
scroll-sticky-top
- 作者:zhaojianling
- 邮箱:zjling1128@gmail.com
- 版本:
0.0.4
介绍
scroll sticky top
安装
npm i scroll-sticky-top --save
使用
样例文档
- 待开发
使用
- 使用方法
<ScrollStickyTop
scrollDeviation={105}
fixClassName="ant-table-thead"
>
<Table columns={columns} .... />
</ScrollStickyTop>
- @ant-design/pro-components ProTable的使用方法
<ProTable
tableRender={(props, dom, domList) => {
return (
<div>
{domList.toolbar}
{domList.alert}
<ScrollStickyTop fixClassName="ant-table-thead" scrollDeviation={105}>{domList.table}</ScrollStickyTop>
</div>
);
}}
/>
配置参数
Prop | Type | Default | Description |
---|---|---|---|
fixClassName | string | 需要固定的类名 | |
scrollDeviation | string | 滚动偏差 | |
strictMode | boolean | false | true时会判断overflow-y的值和高度溢出;false仅判断overflow-y的值 |
注意事项
- 组件注意事项
开发调试
进入项目目录后,使用 node
命令启动服务
npm run start
打包发布可通过 node
命令执行
npm run build
npm publish