{"id":13671850,"url":"https://github.com/huruji/react-hlayer","last_synced_at":"2025-03-18T06:43:34.939Z","repository":{"id":57333395,"uuid":"92026166","full_name":"huruji/react-hlayer","owner":"huruji","description":"the hlayer of react","archived":false,"fork":false,"pushed_at":"2017-07-11T11:25:14.000Z","size":53,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T03:34:41.154Z","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/huruji.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}},"created_at":"2017-05-22T07:47:13.000Z","updated_at":"2017-10-07T11:56:55.000Z","dependencies_parsed_at":"2022-08-24T20:41:59.986Z","dependency_job_id":null,"html_url":"https://github.com/huruji/react-hlayer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Freact-hlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Freact-hlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Freact-hlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Freact-hlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huruji","download_url":"https://codeload.github.com/huruji/react-hlayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173500,"owners_count":20410295,"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","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-08-02T09:01:20.274Z","updated_at":"2025-03-18T06:43:34.921Z","avatar_url":"https://github.com/huruji.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# react-hlayer\nHlayer的react版\n\n## 安装\n```sh\nnpm install hlayer-react --save\n```\n\n## 引入\n\n```javascript\nimport Hlayer from 'react-hlayer';\nimport 'react-hlayer/hlayer.css';\n```\n\n## 使用\n使用方式为将Hlayer看做是一个组件，传递给Hlayer组件props即可，其中props中需要的两个属性为type和config，其中type为hlayer的类型，config为每个hlayer方法中的参数，如调用一个alert：\n```js\n\u003cHlayer type=\"alert\" handleShow={this.handleAlertShow} config = {{contentBg: '#982a2a' ,contentColor:\"#fff\" ,animateType:4, position: 0, shadow: false, text:'你帅吗', btns: ['帅','很帅'],confirmBtn:false, time: 400000, icon:4,}}/\u003e\n```\n\n而每种type的具体config设置可以参考hlayer的[文档](https://github.com/huruji/Hlayer)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuruji%2Freact-hlayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuruji%2Freact-hlayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuruji%2Freact-hlayer/lists"}