{"_id":"vue-ref","_rev":"352727","name":"vue-ref","description":"use the callback to get a reference like react","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"time":{"modified":"2021-07-13T08:04:21.000Z","created":"2018-11-15T04:37:18.380Z","2.0.0":"2020-04-09T10:05:46.162Z","1.0.6":"2019-03-07T01:45:31.626Z","1.0.5":"2019-03-03T08:33:16.250Z","1.0.4":"2019-01-14T05:31:47.999Z","1.0.3":"2018-12-06T03:32:18.100Z","1.0.2":"2018-11-26T14:29:38.046Z","1.0.1":"2018-11-15T05:56:07.652Z","1.0.0":"2018-11-15T04:37:18.380Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"versions":{"2.0.0":{"name":"vue-ref","version":"2.0.0","title":"Vue Ref","description":"use the callback to get a reference like react","keywords":["vue","ref","v-ref","vue-ref"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"license":"MIT","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"homepage":"https://github.com/tangjinzhou/vue-ref","eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","eslint:recommended"],"rules":{},"parserOptions":{"parser":"babel-eslint"}},"gitHead":"828b32bc3d61a781adf7c8a74a29db62c87eb103","_id":"vue-ref@2.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"483084d732abed11da796778a8266a3af0ea1a9c","size":2017,"noattachment":false,"key":"/vue-ref/-/vue-ref-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-ref/download/vue-ref-2.0.0.tgz"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"_npmUser":{"name":"tangjinzhou","email":"415800467@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ref_2.0.0_1586426746025_0.5342093169933653"},"_hasShrinkwrap":false,"publish_time":1586426746162,"_cnpm_publish_time":1586426746162},"1.0.6":{"name":"vue-ref","version":"1.0.6","title":"Vue Ref","description":"use the callback to get a reference like react","keywords":["vue","ref","v-ref","vue-ref"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"license":"MIT","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"homepage":"https://github.com/tangjinzhou/vue-ref","eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","eslint:recommended"],"rules":{},"parserOptions":{"parser":"babel-eslint"}},"gitHead":"20076f2ebc083f9b86f08770aa6b50488bd47692","_id":"vue-ref@1.0.6","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"tangjinzhou","email":"415800467@qq.com"},"dist":{"shasum":"b9b3d7d0e290ee2fd3d50d5d7bdac520806cb265","size":2006,"noattachment":false,"key":"/vue-ref/-/vue-ref-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-ref/download/vue-ref-1.0.6.tgz"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ref_1.0.6_1551923131502_0.9280140615838013"},"_hasShrinkwrap":false,"publish_time":1551923131626,"_cnpm_publish_time":1551923131626},"1.0.5":{"name":"vue-ref","version":"1.0.5","title":"Vue Ref","description":"use the callback to get a reference like react","keywords":["vue","ref","v-ref","vue-ref"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"license":"MIT","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"homepage":"https://github.com/tangjinzhou/vue-ref","eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","eslint:recommended"],"rules":{},"parserOptions":{"parser":"babel-eslint"}},"gitHead":"26fd694e7b4d938b578a425d340c4e5ad3408707","_id":"vue-ref@1.0.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"tangjinzhou","email":"415800467@qq.com"},"dist":{"shasum":"c2f3ff2a3e6fc90c514bad55dd08f86bc0d198cc","size":2045,"noattachment":false,"key":"/vue-ref/-/vue-ref-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-ref/download/vue-ref-1.0.5.tgz"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ref_1.0.5_1551601996114_0.2469961440231141"},"_hasShrinkwrap":false,"publish_time":1551601996250,"_cnpm_publish_time":1551601996250},"1.0.4":{"name":"vue-ref","version":"1.0.4","title":"Vue Ref","description":"use the callback to get a reference like react","keywords":["vue","ref","v-ref","vue-ref"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"license":"MIT","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"homepage":"https://github.com/tangjinzhou/vue-ref","eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","eslint:recommended"],"rules":{},"parserOptions":{"parser":"babel-eslint"}},"gitHead":"f93d9a49b7778c47e28725327e8928f3dae66fde","_id":"vue-ref@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"tangjinzhou","email":"415800467@qq.com"},"dist":{"shasum":"c27862b15a2720cff6b792566d824d1c3ac53320","size":2012,"noattachment":false,"key":"/vue-ref/-/vue-ref-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-ref/download/vue-ref-1.0.4.tgz"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ref_1.0.4_1547443907839_0.29470636135864425"},"_hasShrinkwrap":false,"publish_time":1547443907999,"_cnpm_publish_time":1547443907999},"1.0.3":{"name":"vue-ref","version":"1.0.3","title":"Vue Ref","description":"use the callback to get a reference like react","keywords":["vue","ref","v-ref","vue-ref"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"license":"MIT","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"homepage":"https://github.com/tangjinzhou/vue-ref","eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","eslint:recommended"],"rules":{},"parserOptions":{"parser":"babel-eslint"}},"gitHead":"cbbe789ceed5f08678320f1c82d951a676f553a6","_id":"vue-ref@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"tangjinzhou","email":"415800467@qq.com"},"dist":{"shasum":"5b7bbfc6f5833e13f5a9155ac686fafdb03dbcad","size":1864,"noattachment":false,"key":"/vue-ref/-/vue-ref-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-ref/download/vue-ref-1.0.3.tgz"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ref_1.0.3_1544067137955_0.027037236801889408"},"_hasShrinkwrap":false,"publish_time":1544067138100,"_cnpm_publish_time":1544067138100},"1.0.2":{"name":"vue-ref","version":"1.0.2","title":"Vue Ref","description":"use the callback to get a reference like react","keywords":["vue","ref","v-ref","vue-ref"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"license":"MIT","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"homepage":"https://github.com/tangjinzhou/vue-ref","eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","eslint:recommended"],"rules":{},"parserOptions":{"parser":"babel-eslint"}},"gitHead":"c3cb0976fd325c44fec35a258718a1980a7740f1","_id":"vue-ref@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"tangjinzhou","email":"415800467@qq.com"},"dist":{"shasum":"8822640ece91665f01e958bd1fde4038c75e0f34","size":1765,"noattachment":false,"key":"/vue-ref/-/vue-ref-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-ref/download/vue-ref-1.0.2.tgz"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ref_1.0.2_1543242577917_0.0119450650470736"},"_hasShrinkwrap":false,"publish_time":1543242578046,"_cnpm_publish_time":1543242578046},"1.0.1":{"name":"vue-ref","version":"1.0.1","title":"Vue Ref","description":"use the callback to get a reference like react","keywords":["vue","ref","v-ref","vue-ref"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"license":"MIT","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"homepage":"https://github.com/tangjinzhou/vue-ref","eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","eslint:recommended"],"rules":{},"parserOptions":{"parser":"babel-eslint"}},"gitHead":"67c9fcbd1c48521e550021fb045fcb64f62c0bcb","_id":"vue-ref@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"tangjinzhou","email":"415800467@qq.com"},"dist":{"shasum":"d1077dfade8bd5c7883af7115e2144138ca0b912","size":1687,"noattachment":false,"key":"/vue-ref/-/vue-ref-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-ref/download/vue-ref-1.0.1.tgz"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ref_1.0.1_1542261367538_0.1517801228697675"},"_hasShrinkwrap":false,"publish_time":1542261367652,"_cnpm_publish_time":1542261367652},"1.0.0":{"name":"vue-ref","version":"1.0.0","title":"Vue Ref","description":"use the callback to get a reference like react","keywords":["vue","ref","v-ref","vue-ref"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/tangjinzhou/vue-ref.git"},"license":"MIT","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"homepage":"https://github.com/tangjinzhou/vue-ref","eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","eslint:recommended"],"rules":{},"parserOptions":{"parser":"babel-eslint"}},"gitHead":"429abd5d501582b2c5b05d92642d947688ef2d94","_id":"vue-ref@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"tangjinzhou","email":"415800467@qq.com"},"dist":{"shasum":"152048fe2de007a25b04c05ddd1a6c47956fa65f","size":1691,"noattachment":false,"key":"/vue-ref/-/vue-ref-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-ref/download/vue-ref-1.0.0.tgz"},"maintainers":[{"name":"tangjinzhou","email":"antdv@foxmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ref_1.0.0_1542256638160_0.28881427214441824"},"_hasShrinkwrap":false,"publish_time":1542256638380,"_cnpm_publish_time":1542256638380}},"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<!-- vm.dom will be the DOM node -->\n<p v-ref=\"c => this.dom = c\">hello</p>\n\n<!-- vm.child will be the child component instance -->\n<child-component v-ref=\"c => this.child = c\"></child-component>\n\n<span v-for=\"n in 10\" :key=\"n\" v-ref=\"(c, key) => {...}\">{{ n }} </span>\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","_attachments":{},"homepage":"https://github.com/tangjinzhou/vue-ref","bugs":{"url":"https://github.com/tangjinzhou/vue-ref/issues"},"license":"MIT"}