{"_id":"vue-clickoutside","_rev":"335240","name":"vue-clickoutside","description":"A Vue directive about listener a click outside an element.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"qingwei.li","email":"cinwell.li@gmail.com"}],"time":{"modified":"2021-06-10T09:55:51.000Z","created":"2016-04-08T09:11:28.778Z","0.2.0":"2016-10-10T10:03:52.691Z","0.1.0":"2016-06-17T07:28:42.995Z","0.0.4":"2016-04-11T09:38:09.314Z","0.0.3":"2016-04-11T01:39:26.122Z","0.0.2":"2016-04-10T11:07:55.990Z","0.0.1":"2016-04-08T09:11:28.778Z"},"users":{"s00d":true},"author":{"name":"qingwei.li","email":"qingwei.li@ele.me"},"repository":{"type":"git","url":"git+https://github.com/element-component/vue-clickoutside.git"},"versions":{"0.2.0":{"name":"vue-clickoutside","version":"0.2.0","description":"A Vue directive about listener a click outside an element.","main":"dist/clickoutside.common.js","files":["src","dist"],"scripts":{"test":"npm run dist && karma start","dist":"rm -rf dist && rollup -c","publish":"npm run dist"},"repository":{"type":"git","url":"git+https://github.com/element-component/vue-clickoutside.git"},"keywords":["vue","click","outside","directive"],"author":{"name":"qingwei.li","email":"qingwei.li@ele.me"},"license":"MIT","bugs":{"url":"https://github.com/element-component/vue-clickoutside/issues"},"homepage":"https://github.com/element-component/vue-clickoutside#readme","devDependencies":{"babel-preset-es2015-rollup":"^1.1.1","karma":"^0.13.22","karma-chrome-launcher":"^0.2.3","karma-jasmine":"^0.3.8","karma-phantomjs-launcher":"^1.0.0","karma-rollup-preprocessor":"^2.0.1","rollup":"^0.34.1","rollup-plugin-babel":"^2.6.1","vue":"^1.0.21"},"gitHead":"0896d7497575fc5dede514b382697d946b3ad8bd","_id":"vue-clickoutside@0.2.0","_shasum":"a0f16840dd4f29f019bd09d07247c99a581e48e3","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"qingwei.li","email":"cinwell.li@gmail.com"},"dist":{"shasum":"a0f16840dd4f29f019bd09d07247c99a581e48e3","size":1737,"noattachment":false,"key":"/vue-clickoutside/-/vue-clickoutside-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-clickoutside/download/vue-clickoutside-0.2.0.tgz"},"maintainers":[{"name":"qingwei.li","email":"cinwell.li@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-clickoutside-0.2.0.tgz_1476093832451_0.9641961010638624"},"directories":{},"publish_time":1476093832691,"_cnpm_publish_time":1476093832691,"_hasShrinkwrap":false},"0.1.0":{"name":"vue-clickoutside","version":"0.1.0","description":"A Vue directive about listener a click outside an element.","main":"build/index.js","files":["src","build"],"scripts":{"test":"npm run build && karma start","build":"rollup -c","publish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/element-component/vue-clickoutside.git"},"keywords":["vue","click","outside","directive"],"author":{"name":"qingwei.li","email":"qingwei.li@ele.me"},"license":"MIT","bugs":{"url":"https://github.com/element-component/vue-clickoutside/issues"},"homepage":"https://github.com/element-component/vue-clickoutside#readme","devDependencies":{"babel-preset-es2015-rollup":"^1.1.1","karma":"^0.13.22","karma-chrome-launcher":"^0.2.3","karma-jasmine":"^0.3.8","karma-phantomjs-launcher":"^1.0.0","karma-rollup-preprocessor":"^2.0.1","rollup":"^0.25.8","rollup-plugin-babel":"^2.4.0","rollup-plugin-commonjs":"^2.2.1","rollup-plugin-env":"^0.21.2","rollup-plugin-node-resolve":"^1.5.0","vue":"^1.0.21"},"gitHead":"be4e92ba4f1979c8d508208cbe0201c3806cfed6","_id":"vue-clickoutside@0.1.0","_shasum":"fbdc6c6a67f4c0398c0551b61af9f5944b368575","_from":".","_npmVersion":"3.8.9","_nodeVersion":"5.7.1","_npmUser":{"name":"qingwei.li","email":"cinwell.li@gmail.com"},"dist":{"shasum":"fbdc6c6a67f4c0398c0551b61af9f5944b368575","size":1680,"noattachment":false,"key":"/vue-clickoutside/-/vue-clickoutside-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-clickoutside/download/vue-clickoutside-0.1.0.tgz"},"maintainers":[{"name":"qingwei.li","email":"cinwell.li@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-clickoutside-0.1.0.tgz_1466148522528_0.8224039119668305"},"directories":{},"publish_time":1466148522995,"_cnpm_publish_time":1466148522995,"_hasShrinkwrap":false},"0.0.4":{"name":"vue-clickoutside","version":"0.0.4","description":"A Vue directive about listener a click outside an element.","main":"build/index.js","scripts":{"test":"npm run build && karma start","build":"rollup -c","publish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/element-component/vue-clickoutside.git"},"keywords":["vue","click","outside","directive"],"author":{"name":"qingwei.li","email":"qingwei.li@ele.me"},"license":"MIT","bugs":{"url":"https://github.com/element-component/vue-clickoutside/issues"},"homepage":"https://github.com/element-component/vue-clickoutside#readme","devDependencies":{"babel-preset-es2015-rollup":"^1.1.1","karma":"^0.13.22","karma-chrome-launcher":"^0.2.3","karma-jasmine":"^0.3.8","karma-phantomjs-launcher":"^1.0.0","karma-rollup-preprocessor":"^2.0.1","rollup":"^0.25.8","rollup-plugin-babel":"^2.4.0","rollup-plugin-commonjs":"^2.2.1","rollup-plugin-env":"^0.21.2","rollup-plugin-node-resolve":"^1.5.0","vue":"^1.0.21"},"gitHead":"0d90586e2e8ee96558eb3faf5b6e863c712f3944","_id":"vue-clickoutside@0.0.4","_shasum":"75becb3db442b144bc6217f98a8f52be8a56c959","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"qingwei.li","email":"cinwell.li@gmail.com"},"dist":{"shasum":"75becb3db442b144bc6217f98a8f52be8a56c959","size":3594,"noattachment":false,"key":"/vue-clickoutside/-/vue-clickoutside-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-clickoutside/download/vue-clickoutside-0.0.4.tgz"},"maintainers":[{"name":"qingwei.li","email":"cinwell.li@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/vue-clickoutside-0.0.4.tgz_1460367486969_0.6860619718208909"},"directories":{},"publish_time":1460367489314,"_cnpm_publish_time":1460367489314,"_hasShrinkwrap":false},"0.0.3":{"name":"vue-clickoutside","version":"0.0.3","description":"A Vue directive about listener a click outside an element.","main":"build/index.js","scripts":{"test":"npm run build && karma start","build":"rollup -c","publish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/element-component/vue-clickoutside.git"},"keywords":["vue","click","outside","directive"],"author":{"name":"qingwei.li","email":"qingwei.li@ele.me"},"license":"MIT","bugs":{"url":"https://github.com/element-component/vue-clickoutside/issues"},"homepage":"https://github.com/element-component/vue-clickoutside#readme","devDependencies":{"babel-preset-es2015-rollup":"^1.1.1","karma":"^0.13.22","karma-chrome-launcher":"^0.2.3","karma-jasmine":"^0.3.8","karma-phantomjs-launcher":"^1.0.0","karma-rollup-preprocessor":"^2.0.1","oui-dom-events":"^0.2.1","rollup":"^0.25.8","rollup-plugin-babel":"^2.4.0","rollup-plugin-commonjs":"^2.2.1","rollup-plugin-env":"^0.21.2","rollup-plugin-node-resolve":"^1.5.0","uid":"0.0.2","vue":"^1.0.21"},"gitHead":"e46680478b49b7bd26dc7a25af5ee40584e879fd","_id":"vue-clickoutside@0.0.3","_shasum":"7d5236dd977b7b291df0d13cbc39791ba008d87a","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"qingwei.li","email":"cinwell.li@gmail.com"},"dist":{"shasum":"7d5236dd977b7b291df0d13cbc39791ba008d87a","size":5665,"noattachment":false,"key":"/vue-clickoutside/-/vue-clickoutside-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-clickoutside/download/vue-clickoutside-0.0.3.tgz"},"maintainers":[{"name":"qingwei.li","email":"cinwell.li@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-clickoutside-0.0.3.tgz_1460338765643_0.022315564565360546"},"directories":{},"publish_time":1460338766122,"_cnpm_publish_time":1460338766122,"_hasShrinkwrap":false},"0.0.2":{"name":"vue-clickoutside","version":"0.0.2","description":"A Vue directive about listener a click outside an element.","main":"build/index.js","scripts":{"test":"npm run build && karma start","build":"rollup -c","publish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/element-component/vue-clickoutside.git"},"keywords":["vue","click","outside","directive"],"author":{"name":"qingwei.li","email":"qingwei.li@ele.me"},"license":"MIT","bugs":{"url":"https://github.com/element-component/vue-clickoutside/issues"},"homepage":"https://github.com/element-component/vue-clickoutside#readme","devDependencies":{"babel-preset-es2015-rollup":"^1.1.1","karma":"^0.13.22","karma-chrome-launcher":"^0.2.3","karma-jasmine":"^0.3.8","karma-phantomjs-launcher":"^1.0.0","karma-rollup-preprocessor":"^2.0.1","oui-dom-events":"^0.2.1","rollup":"^0.25.8","rollup-plugin-babel":"^2.4.0","rollup-plugin-commonjs":"^2.2.1","rollup-plugin-env":"^0.21.2","rollup-plugin-node-resolve":"^1.5.0","uid":"0.0.2","vue":"^1.0.21"},"gitHead":"ced3fc94e746206453a57428b8a9badd7567f4e5","_id":"vue-clickoutside@0.0.2","_shasum":"c268c7c4c6c34bb3c6c0ffd0050c82181e970d56","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"qingwei.li","email":"cinwell.li@gmail.com"},"dist":{"shasum":"c268c7c4c6c34bb3c6c0ffd0050c82181e970d56","size":5610,"noattachment":false,"key":"/vue-clickoutside/-/vue-clickoutside-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-clickoutside/download/vue-clickoutside-0.0.2.tgz"},"maintainers":[{"name":"qingwei.li","email":"cinwell.li@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-clickoutside-0.0.2.tgz_1460286475425_0.7816322240978479"},"directories":{},"publish_time":1460286475990,"_cnpm_publish_time":1460286475990,"_hasShrinkwrap":false},"0.0.1":{"name":"vue-clickoutside","version":"0.0.1","description":"A Vue directive about listener a click outside an element.","main":"build/index.js","scripts":{"test":"npm run build && karma start","build":"rollup -c","publish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/element-component/vue-clickoutside.git"},"keywords":["vue","click","outside","directive"],"author":{"name":"qingwei.li","email":"qingwei.li@ele.me"},"license":"MIT","bugs":{"url":"https://github.com/element-component/vue-clickoutside/issues"},"homepage":"https://github.com/element-component/vue-clickoutside#readme","devDependencies":{"babel-preset-es2015-rollup":"^1.1.1","karma":"^0.13.22","karma-chrome-launcher":"^0.2.3","karma-jasmine":"^0.3.8","karma-phantomjs-launcher":"^1.0.0","karma-rollup-preprocessor":"^2.0.1","oui-dom-events":"^0.2.1","rollup":"^0.25.8","rollup-plugin-babel":"^2.4.0","rollup-plugin-commonjs":"^2.2.1","rollup-plugin-env":"^0.21.2","rollup-plugin-node-resolve":"^1.5.0","uid":"0.0.2","vue":"^1.0.21"},"gitHead":"437a130a87545e1e997af6a82b8bc28dd0048ffd","_id":"vue-clickoutside@0.0.1","_shasum":"af371ad2cb9e6c1dc525d034c7a3ac9769095d39","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"qingwei.li","email":"cinwell.li@gmail.com"},"dist":{"shasum":"af371ad2cb9e6c1dc525d034c7a3ac9769095d39","size":5584,"noattachment":false,"key":"/vue-clickoutside/-/vue-clickoutside-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-clickoutside/download/vue-clickoutside-0.0.1.tgz"},"maintainers":[{"name":"qingwei.li","email":"cinwell.li@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-clickoutside-0.0.1.tgz_1460106688318_0.10716953594237566"},"directories":{},"publish_time":1460106688778,"_cnpm_publish_time":1460106688778,"_hasShrinkwrap":false}},"readme":"# vue-clickoutside\n> make a click outside event.\n\nSimilar [vue-clickaway](https://github.com/simplesmiler/vue-clickaway), but more simpler. :P\n\n\n# Installation\n```shell\nnpm i vue-clickoutside -D\n```\n\n# Demo\n![demo gif](http://g.recordit.co/pDjxMhZ1IA.gif)\n\n# Quick Start\n```javascript\nimport Vue from 'vue'\nimport VueClickoutside from 'vue-clickoutside'\n\nVue.use(VueClickoutside)\n\n// or custom directive id\nVue.directive('v-clickoutside', VueClickoutside)\n```\n\n```html\n<div v-clickoutside=\"show = false\" class=\"box\">\n  <button @click=\"show = true\">click me</button>\n  <div v-show=\"show\">dropdown</div>\n</div>\n```\n\n# Development\nIf you using NPM 3.x, these will not be automatically installed.\n\n- jasmine-core *\n- phantomjs-prebuilt ^1.9\n\n# License\n[MIT](https://opensource.org/licenses/MIT)\n","_attachments":{},"homepage":"https://github.com/element-component/vue-clickoutside#readme","bugs":{"url":"https://github.com/element-component/vue-clickoutside/issues"},"license":"MIT"}