{"id":44554527,"url":"https://github.com/webjyh/vue-tooltips","last_synced_at":"2026-02-13T21:23:34.315Z","repository":{"id":57396710,"uuid":"96410814","full_name":"webjyh/vue-tooltips","owner":"webjyh","description":"依赖于 Vue2.x 的简单简洁的信息提示框，支持移动端。","archived":false,"fork":false,"pushed_at":"2019-03-19T03:35:47.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T17:49:38.353Z","etag":null,"topics":["tooltips","vue-component","vue-plugin","vue-tooltips"],"latest_commit_sha":null,"homepage":"http://demo.webjyh.com/vue-tooltips","language":"HTML","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/webjyh.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-07-06T09:06:58.000Z","updated_at":"2020-01-06T07:39:38.000Z","dependencies_parsed_at":"2022-09-13T12:02:30.467Z","dependency_job_id":null,"html_url":"https://github.com/webjyh/vue-tooltips","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/webjyh/vue-tooltips","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webjyh%2Fvue-tooltips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webjyh%2Fvue-tooltips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webjyh%2Fvue-tooltips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webjyh%2Fvue-tooltips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webjyh","download_url":"https://codeload.github.com/webjyh/vue-tooltips/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webjyh%2Fvue-tooltips/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29418055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["tooltips","vue-component","vue-plugin","vue-tooltips"],"created_at":"2026-02-13T21:23:33.801Z","updated_at":"2026-02-13T21:23:34.310Z","avatar_url":"https://github.com/webjyh.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue-Tooltips \u003csmall\u003eVue 2.x\u003c/small\u003e\n\n### [English](https://github.com/webjyh/vue-tooltips) | [中文](https://github.com/webjyh/vue-tooltips/blob/master/README.zh_CN.md)\n\n### Demo\nhttp://demo.webjyh.com/vue-tooltips\n\n![http://cdn.webjyh.com/vue_tooltips_qrcode.png](http://cdn.webjyh.com/vue_tooltips_qrcode.png)\n\n### Build\n``` bash\n# or `npm i rollup -g` for short\nnpm install rollup --global\n\n# install dependencies\nnpm install\n\n# build for production with minification\nnpm run build\n```\n\n### Install\n``` bash\n# npm install\nnpm install vue-tooltips --save-dev\n\n# or download vue-tooltips.js\nhttps://github.com/webjyh/vue-tooltips/releases\n```\n\n### Use\n```javascript\n// *.vue file\nimport Vue from 'vue';\nimport 'vue-tooltips/dist/tooltips.css';\nimport Tooltips from 'vue-tooltips';\n\nVue.use(Tooltips);\n\nexport default {\n    data() {\n        return {}\n    },\n    mounted() {\n        this.$tooltips('vue-Tooltips !!!');\n    }\n}\n```\n\n```html\n*.js file\n\n\u003c!-- css --\u003e\n\u003clink rel=\"stylesheet\" href=\"dist/tooltips.css\"\u003e\n\n\u003c!-- js --\u003e\n\u003cscript src=\"//cdn.bootcss.com/vue/2.3.4/vue.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"dist/tooltips.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nnew Vue({\n    el: '#app',\n    data: function() {\n        return {}\n    },\n    mounted: function() {\n        this.$tooltips('vue-Tooltips !!!');\n    }\n});\n\u003c/script\u003e\n```\n\n### Example\n```javascript\nthis.$tooltips('Tooltips !!!');\n\n// set duration\nthis.$tooltips('Tooltips !!!', 5000);\n\n// set Options\nthis.$tooltips('Tooltips !!!', {\n    type: 'danger',\n    duration: 3000,\n    callback: function() {\n        alert(1);\n    }\n});\n\n/* type = 'success' */\nthis.$tooltips.success(msg, [, options]);\n\n/* type = 'warning' */\nthis.$tooltips.warning(msg, [, options]);\n\n/* type = 'danger' */\nthis.$tooltips.error(msg, [, options]);\n```\n\n### Options\nAttribute  | Default | Type | Description\n------- | ------ | ---- | --------\ntype |  `success` | {String} | message type `default`, `success`, `warning`, `danger`\nduration | `3000` | {Number} | display duration, millisecond. default 3000 ms.\ncallback | `function()` | {Function} | callback function when closed with the message instance as the parameter\n\n### Author\n[M.J](http://webjyh.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebjyh%2Fvue-tooltips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebjyh%2Fvue-tooltips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebjyh%2Fvue-tooltips/lists"}