{"id":21585492,"url":"https://github.com/meepobrother/meepo-core","last_synced_at":"2025-03-18T09:14:28.520Z","repository":{"id":57294095,"uuid":"114718353","full_name":"meepobrother/meepo-core","owner":"meepobrother","description":"meepo core 核心功能","archived":false,"fork":false,"pushed_at":"2018-01-06T06:30:16.000Z","size":626,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T02:17:54.103Z","etag":null,"topics":["alert","angular5","configuration","core","loading","meepo","mobile","weui"],"latest_commit_sha":null,"homepage":"https://meepo.com.cn","language":"TypeScript","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/meepobrother.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-12-19T04:14:19.000Z","updated_at":"2018-04-12T14:38:59.000Z","dependencies_parsed_at":"2022-08-29T08:01:36.648Z","dependency_job_id":null,"html_url":"https://github.com/meepobrother/meepo-core","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meepobrother%2Fmeepo-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meepobrother%2Fmeepo-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meepobrother%2Fmeepo-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meepobrother%2Fmeepo-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meepobrother","download_url":"https://codeload.github.com/meepobrother/meepo-core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244189828,"owners_count":20412991,"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":["alert","angular5","configuration","core","loading","meepo","mobile","weui"],"created_at":"2024-11-24T15:10:52.252Z","updated_at":"2025-03-18T09:14:28.495Z","avatar_url":"https://github.com/meepobrother.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 用法\n\n- 集成移动端基础核心功能, weui, toast, loading, alert, confirm, share ...\n\n```sh\nyarn add meepo-core\n```\n\n1. 引入weui.css\n```html\n\u003clink rel=\"stylesheet\" href=\"https://meepo.com.cn/meepo/libs/weui/weui.min.css\"\u003e\n```\n2. 引用跟组件\n```html\n\u003ccore-root\u003e\n    \u003c!-- 任何东西 --\u003e\n\u003c/core-root\u003e\n```\n3. 实现业务逻辑\n```ts\n// 引入\nimport { MeepoCoreModule } from 'meepo-core';\n\nimport { CoreService } from 'meepo-core';\n\nexport class ExampleComponent{\n    constructor(\n        public core: CoreService\n    ){}\n\n    doSometing(){\n        // 显示loading\n        this.core.showLoading({title: 'loading'});\n        this.core.closeLoading();\n\n        // 显示toast\n        this.core.showToast({title: 'toast'});\n        this.core.closeToast();\n\n        // 显示alert\n        this.core.showAlert({title: '标题', content: '内容'});\n        this.core.closeAlert();\n\n        // 显示confirm\n        this.core.showConfirm({title: '标题', content: '内容'})；\n        this.core.closeConfirm();\n\n        // 设置标题\n        this.core.app$.next({\n            title: '页面标题',\n            share: {\n                title: '分享标题',\n                icon: '分享图标',\n                content: '分享内容',\n                link: '分享链接'\n            }\n        })\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeepobrother%2Fmeepo-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeepobrother%2Fmeepo-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeepobrother%2Fmeepo-core/lists"}