{"id":21763773,"url":"https://github.com/ospoon/toastcomponent","last_synced_at":"2026-04-04T16:34:05.906Z","repository":{"id":264520199,"uuid":"633649024","full_name":"OSpoon/ToastComponent","owner":"OSpoon","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-28T01:27:06.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T01:32:21.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OSpoon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-28T01:22:15.000Z","updated_at":"2023-04-28T01:27:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8552b70-4be2-4ddb-bbfa-df1698e916a7","html_url":"https://github.com/OSpoon/ToastComponent","commit_stats":null,"previous_names":["ospoon/toastcomponent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FToastComponent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FToastComponent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FToastComponent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSpoon%2FToastComponent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OSpoon","download_url":"https://codeload.github.com/OSpoon/ToastComponent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244739939,"owners_count":20501990,"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-11-26T12:16:22.807Z","updated_at":"2025-12-31T00:03:43.323Z","avatar_url":"https://github.com/OSpoon.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 94Toast\n\n## 安装\n\n```bash\nnpm i 94-toast\n```\n\n## 导入\n\n```bash\n// main.ts\n\nimport '94-toast/style.css'\nimport { ToastPlugin } from '94-toast';\n\nconst app = createApp(App);\napp.use(ToastPlugin);\napp.mount('#app');\n```\n\n## 使用\n\n```typescript\n\u003cscript lang=\"ts\"\u003e\nexport default {\n  name: \"App\",\n  methods: {\n    toast() {\n      this.$toast.show('Hello Vuejs')\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n```typescript\n\u003cscript setup lang=\"ts\"\u003e\nimport { getCurrentInstance } from 'vue';\nconst global = getCurrentInstance()?.appContext.config.globalProperties;\n\nconst toast = () =\u003e {\n  global?.$toast.show('Hello Vuejs')\n}\n\u003c/script\u003e\n```\n\n```typescript\n\u003cscript lang=\"ts\"\u003e\nimport { defineComponent, getCurrentInstance } from 'vue';\nexport default defineComponent({\n  name: \"App\",\n  setup() {\n\n   const global = getCurrentInstance()?.appContext.config.globalProperties;\n\n    const toast = () =\u003e {\n      global?.$toast.show('Hello Vuejs')\n    }\n\n    return {\n      toast,\n    }\n  }\n})\n\u003c/script\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fospoon%2Ftoastcomponent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fospoon%2Ftoastcomponent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fospoon%2Ftoastcomponent/lists"}