0.0.4 • Published 10 months ago

scroll-sticky-top v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

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>
    );
  }}
/>

配置参数

PropTypeDefaultDescription
fixClassNamestring需要固定的类名
scrollDeviationstring滚动偏差
strictModebooleanfalsetrue时会判断overflow-y的值和高度溢出;false仅判断overflow-y的值

注意事项

  • 组件注意事项

开发调试

进入项目目录后,使用 node 命令启动服务

npm run start

打包发布可通过 node 命令执行

npm run build
npm publish

相关资料


0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago