{"id":18518376,"url":"https://github.com/javisperez/vue-visible","last_synced_at":"2025-06-28T01:03:03.854Z","repository":{"id":65412465,"uuid":"84579957","full_name":"javisperez/vue-visible","owner":"javisperez","description":"v-visible directive for VueJS","archived":false,"fork":false,"pushed_at":"2018-10-14T02:10:49.000Z","size":12,"stargazers_count":31,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-27T00:49:53.107Z","etag":null,"topics":["directive","hidden","plugin","v-show","v-visible","visibility","visible","vue-visible","vuejs"],"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/javisperez.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-03-10T16:36:14.000Z","updated_at":"2021-05-08T20:53:49.000Z","dependencies_parsed_at":"2023-01-22T08:05:38.360Z","dependency_job_id":null,"html_url":"https://github.com/javisperez/vue-visible","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/javisperez/vue-visible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javisperez%2Fvue-visible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javisperez%2Fvue-visible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javisperez%2Fvue-visible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javisperez%2Fvue-visible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javisperez","download_url":"https://codeload.github.com/javisperez/vue-visible/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javisperez%2Fvue-visible/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262357522,"owners_count":23298459,"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":["directive","hidden","plugin","v-show","v-visible","visibility","visible","vue-visible","vuejs"],"created_at":"2024-11-06T17:13:11.269Z","updated_at":"2025-06-28T01:03:03.769Z","avatar_url":"https://github.com/javisperez.png","language":"JavaScript","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","UI实用程序","Components \u0026 Libraries","UI Utilities","UI Utilities [🔝](#readme)"],"sub_categories":["Libraries \u0026 Plugins","杂","UI Utilities","Miscellaneous"],"readme":"# VueVisible\r\n\r\nv-visible directive for VueJS (2.x)\r\n\r\n## Demo\r\nA jsFiddle live demo: https://jsfiddle.net/fcpc6utm/\r\n\r\n## About\r\n\r\nThis plugins adds a v-visible directive (similar to the native v-show) that changes the `visibility` style of the applied element (hidden or visible).\r\n\r\n## Install\r\n\r\nWith npm:\r\n\r\n```\r\nnpm install --save vue-visible\r\n```\r\n\r\nWith CDN:\r\n\r\n```html\r\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vue-visible@1/dist/v-visible.min.js\"\u003e\u003c/script\u003e\r\n```\r\n\r\n## Usage\r\n\r\nIf you're using modules, first import it:\r\n\r\n```\r\nimport VueVisible from 'vue-visible';\r\n\r\nVue.use(VueVisible);\r\n```\r\n\r\nThen in your template just use the directive:\r\n\r\n```\r\n\u003cdiv v-visible=\"myCondition\"\u003eI'm visible\u003c/div\u003e\r\n```\r\n\r\nOr if you're not using modules, just include the js:\r\n\r\n```\r\n\u003cscript src=\"node_modules/vue-visible/dist/v-visible.js\"\u003e\u003c/script\u003e\r\n```\r\n```\r\n\u003cdiv v-visible=\"myCondition\"\u003eI'm visible\u003c/div\u003e\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavisperez%2Fvue-visible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavisperez%2Fvue-visible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavisperez%2Fvue-visible/lists"}