{"id":19345601,"url":"https://github.com/future-team/multiple-celling","last_synced_at":"2025-10-05T20:14:44.407Z","repository":{"id":70589155,"uuid":"66337643","full_name":"future-team/multiple-celling","owner":"future-team","description":"multiple platform celling for react ,jQuery,H5","archived":false,"fork":false,"pushed_at":"2016-08-25T11:59:29.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-24T09:33:31.061Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/future-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-23T05:58:22.000Z","updated_at":"2016-08-23T06:55:37.000Z","dependencies_parsed_at":"2023-06-09T21:30:34.619Z","dependency_job_id":null,"html_url":"https://github.com/future-team/multiple-celling","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/future-team/multiple-celling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fmultiple-celling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fmultiple-celling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fmultiple-celling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fmultiple-celling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/multiple-celling/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fmultiple-celling/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278510949,"owners_count":25999012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T04:07:23.654Z","updated_at":"2025-10-05T20:14:44.388Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multiple-celling\n\n-\t这是一个适用于jquery和react两种技术栈的celling组件     \n\t是的没错，不管你是jquery还是react都可以使用该组件，而不需要分别引用不同的版本或者组件\n-\t实现元素吸顶、吸底或者元素将要隐去时吸顶等效果\t  \n  \n## UI展示\n - test的div当滚动到顶部时吸顶：    \n    初始状态：  \n       \n   \u003cimg src=\"./img/fix1.png\" height='300px'/\u003e      \n   滚动未到顶部时：     \n   \n   \u003cimg src=\"./img/fix2.png\" height='300px'/\u003e       \n   滚动到顶部及更多时，吸顶：  \n   \n   \u003cimg src=\"./img/fix3.png\" height='300px'/\u003e\n\n## 使用\n\n-\t使用时，jquery版本需要指定要处理的元素，fix的位置     \n\t配置项如下：\n \n ```\n       /**\n        * 要实现fix的元素选择器，如'.test'\n        * */\n        root:'',\n       /**\n        * fix的位置\n        * top,bottom,middle\n        * */\n       position:'top'\n       \n ``` \n-\t使用实例：    \n\n \tjq版本:\n \n ```\n \timport {ForJQ} from '../../src/ForJQ.js';\n \t(()=\u003e{\n            $('.test').ForJQ({\n            \t\t\troot:'.test',\n            \t\t\tposition:'middle'\n            \t\t  });\n     })()\n    \n ```     \n-   react版本   \n   \n \t```\n \timport ForReact from '../../src/ForReact.js';\n     \n     export default class CellFRDemo extends Component {\n         constructor(props,context) {\n             super(props,context);\n         }\n         render() {\n             return (\n                \u003cForReact position='middle'\u003e\n                    \u003cdiv className=\"test\" style={{width: '150px',height:'40px',border:'1px solid #f00'}}\u003e测试好吧\u003c/div\u003e\n                \u003c/ForReact\u003e\n             );\n         }\n     }\n \t```  \n \t\n html:\n \n ```\n \n    \u003cdiv id=\"root\" style=\"padding: 10px\"\u003e\n        \u003cdiv class=\"test\" style=\"width: 150px;height:40px;border:1px solid #f00\"\u003e测试好吧\u003c/div\u003e\n    \u003c/div\u003e\n    \n ```\n- \t注：若要兼容ie8及以下版本请引入es5-shim。    \n   \t\t在html中判断版本，ie9以下引入。例如：    \n  \n  ```\n     \u003c!--[if lt IE 9] \u003e\n     \u003cscript src=\"http://cdn.bootcss.com/es5-shim/4.5.9/es5-shim.js\"\u003e\u003c/script\u003e\n     \u003c!--[endif]--\u003e\n  \n  ```\n\t\n  \n## update\n\n   - 0.1.0及之前版本 init及修复 \n\n## Command\n\n```\n\t#测试\t\n\tnpm run test\t\n\t#打包\t\n\tnpm run build\t\n\t#例子演示\t\n\tnpm run demo\t\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fmultiple-celling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Fmultiple-celling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fmultiple-celling/lists"}