{"id":13590059,"url":"https://github.com/vueComponent/vue-ref","last_synced_at":"2025-04-08T12:32:28.928Z","repository":{"id":60775433,"uuid":"157641299","full_name":"vueComponent/vue-ref","owner":"vueComponent","description":"You can use the callback to get a reference like react at vue2.x","archived":false,"fork":false,"pushed_at":"2023-12-15T02:51:36.000Z","size":19,"stargazers_count":100,"open_issues_count":5,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T16:07:55.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/vueComponent.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-11-15T02:36:37.000Z","updated_at":"2023-06-12T06:05:15.000Z","dependencies_parsed_at":"2024-01-14T04:34:47.895Z","dependency_job_id":"1733b92b-e5b2-4f38-933e-b99cd9a84df0","html_url":"https://github.com/vueComponent/vue-ref","commit_stats":{"total_commits":13,"total_committers":4,"mean_commits":3.25,"dds":0.3076923076923077,"last_synced_commit":"828b32bc3d61a781adf7c8a74a29db62c87eb103"},"previous_names":["tangjinzhou/vue-ref"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vueComponent%2Fvue-ref","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vueComponent%2Fvue-ref/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vueComponent%2Fvue-ref/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vueComponent%2Fvue-ref/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vueComponent","download_url":"https://codeload.github.com/vueComponent/vue-ref/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247842898,"owners_count":21005365,"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-08-01T16:00:38.497Z","updated_at":"2025-04-08T12:32:28.602Z","avatar_url":"https://github.com/vueComponent.png","language":"JavaScript","funding_links":[],"categories":["Plugin"],"sub_categories":["Apps/Websites"],"readme":"# vue-ref\nYou can use the callback to get a reference like react.\n\n[![NPM version](https://img.shields.io/npm/v/vue-ref.svg?style=flat)](https://npmjs.org/package/vue-ref) [![NPM downloads](http://img.shields.io/npm/dm/vue-ref.svg?style=flat)](https://npmjs.org/package/vue-ref)\n\n```bash\n$ npm install vue-ref --save\n```\n\n```js\nimport ref from 'vue-ref'\nVue.use(ref)\n```\n\n```html\n\u003c!-- vm.dom will be the DOM node --\u003e\n\u003cp v-ref=\"c =\u003e this.dom = c\"\u003ehello\u003c/p\u003e\n\n\u003c!-- vm.child will be the child component instance --\u003e\n\u003cchild-component v-ref=\"c =\u003e this.child = c\"\u003e\u003c/child-component\u003e\n\n\u003cspan v-for=\"n in 10\" :key=\"n\" v-ref=\"(c, key) =\u003e {...}\"\u003e{{ n }} \u003c/span\u003e\n```\n\n| Property | Description | Type |\n| -------- | ----------- | ---- |\n| v-ref | a callback function | function(dom \\| vnode, key) |\n\n###\nIn this callback function, you should not change any reactive data. Otherwise the `render` will enter an infinite loop.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FvueComponent%2Fvue-ref","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FvueComponent%2Fvue-ref","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FvueComponent%2Fvue-ref/lists"}