{"id":23148527,"url":"https://github.com/youngluo/hyperapp-tips-components","last_synced_at":"2025-08-09T10:09:00.789Z","repository":{"id":57261944,"uuid":"131022949","full_name":"youngluo/hyperapp-tips-components","owner":"youngluo","description":"A tips components based on Hyperapp and WeUI.","archived":false,"fork":false,"pushed_at":"2018-06-05T12:03:28.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T12:51:40.586Z","etag":null,"topics":["hyperapp","tips","weui"],"latest_commit_sha":null,"homepage":"https://youngluo.github.io/hyperapp-tips-components","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/youngluo.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":"2018-04-25T14:57:29.000Z","updated_at":"2023-03-07T10:03:49.000Z","dependencies_parsed_at":"2022-08-25T06:11:03.833Z","dependency_job_id":null,"html_url":"https://github.com/youngluo/hyperapp-tips-components","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/youngluo/hyperapp-tips-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngluo%2Fhyperapp-tips-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngluo%2Fhyperapp-tips-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngluo%2Fhyperapp-tips-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngluo%2Fhyperapp-tips-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youngluo","download_url":"https://codeload.github.com/youngluo/hyperapp-tips-components/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngluo%2Fhyperapp-tips-components/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269548439,"owners_count":24436104,"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-08-09T02:00:10.424Z","response_time":111,"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":["hyperapp","tips","weui"],"created_at":"2024-12-17T17:11:59.575Z","updated_at":"2025-08-09T10:09:00.722Z","avatar_url":"https://github.com/youngluo.png","language":"JavaScript","readme":"# hc-tips\n\n[![npm](https://img.shields.io/npm/v/hc-tips.svg)](https://www.npmjs.com/package/hc-tips)\n[![npm](https://img.shields.io/npm/dm/hc-tips.svg)](https://www.npmjs.com/package/hc-tips)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/youngluo/hyperapp-tips-components/blob/master/LICENSE)\n\n\u003e 基于hyperapp.js和WeUI的Tips组件\n\n## 安装\n\n    npm i -S hc-tips\n\n## 使用\n\n### 直接使用\n\n      \u003cscript src=\"https://unpkg.com/hyperapp@1.2.5/dist/hyperapp.js\"\u003e\u003c/script\u003e\n      \u003cscript src=\"node_modules/hc-tips/dist/index.js\"\u003e\u003c/script\u003e\n      \u003cscript\u003e\n        window.HCTips.toast('消息提示')\n      \u003c/script\u003e\n\n### ES6\n      \n      import HCTips from 'hc-tips'\n\n      HCTips.toast('消息提示')\n\n## 方法\n\n* tosat (options: object | content: string)\n\n* loading (options: object | content: string)\n\n* alert (options: object | content: string)\n\n* confirm (options: object | content: string)\n\n### options *(toast | loading)*\n\n#### content\n\ntype: `string`\n\nrequired: `true`\n\n#### duration\n\ntype: `number`\n\ndefault: 2000\n\n#### type\n\ntype: `string`\n\noptional: `'info'`, `'error'`\n\ndefault: `'info'`\n\n### options *(alert | confirm)*\n\n#### content\n\ntype: `string`\n\nrequired: `true`\n\n#### title\n\ntype: `string`\n\n#### confirmText\n\ntype: `string`\n\ndefault: `'确定'`\n\n#### cancelText\n\ntype: `string`\n\ndefault: `'取消'`\n\n#### showCancel\n\ntype: `boolean`\n\ndefault: `true`\n\n是否显示取消按钮，`alert`方法为`false`\n\n#### onCancel\n\ntype: `function`\n\n点击取消按钮回调\n\n#### onConfirm\n\ntype: `function`\n\n点击确定按钮回调\n\n\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungluo%2Fhyperapp-tips-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoungluo%2Fhyperapp-tips-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungluo%2Fhyperapp-tips-components/lists"}