@xunlie/vue-clickout 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @xunlie/vue-clickout might be problematic. Click here for more details.

Files changed (36) hide show
  1. package/.babelrc +8 -0
  2. package/CHANGELOG.md +11 -0
  3. package/README.md +116 -0
  4. package/build/build.js +35 -0
  5. package/build/check-versions.js +48 -0
  6. package/build/dev-client.js +9 -0
  7. package/build/dev-server.js +89 -0
  8. package/build/utils.js +71 -0
  9. package/build/vue-loader.conf.js +12 -0
  10. package/build/webpack.base.conf.js +58 -0
  11. package/build/webpack.dev.conf.js +34 -0
  12. package/build/webpack.lib.conf.js +40 -0
  13. package/build/webpack.prod.conf.js +120 -0
  14. package/config/dev.env.js +6 -0
  15. package/config/index.js +38 -0
  16. package/config/prod.env.js +3 -0
  17. package/demo/App.vue +26 -0
  18. package/demo/assets/community.css +1067 -0
  19. package/demo/assets/logo.png +0 -0
  20. package/demo/assets/reset.css +6 -0
  21. package/demo/components/commentItem.vue +63 -0
  22. package/demo/dist/index.html +1 -0
  23. package/demo/dist/static/css/app.0a3bdcaaa6f3b802a0a4342127401472.css +1 -0
  24. package/demo/dist/static/css/app.0a3bdcaaa6f3b802a0a4342127401472.css.map +1 -0
  25. package/demo/dist/static/js/app.a9b3c4b5a878ec2640e8.js +7 -0
  26. package/demo/dist/static/js/app.a9b3c4b5a878ec2640e8.js.map +1 -0
  27. package/demo/dist/static/js/manifest.f0144ada13d39efdc013.js +2 -0
  28. package/demo/dist/static/js/manifest.f0144ada13d39efdc013.js.map +1 -0
  29. package/demo/dist/static/js/vendor.5646344e475ac845fb16.js +7 -0
  30. package/demo/dist/static/js/vendor.5646344e475ac845fb16.js.map +1 -0
  31. package/demo/index.html +12 -0
  32. package/demo/main.js +21 -0
  33. package/demo/router/index.js +15 -0
  34. package/dist/vue-clickout.js +152 -0
  35. package/package.json +20 -0
  36. package/src/vue-clickout.js +62 -0
@@ -0,0 +1,38 @@
1
+ // see http://vuejs-templates.github.io/webpack for documentation.
2
+ var path = require('path')
3
+
4
+ module.exports = {
5
+ build: {
6
+ env: require('./prod.env'),
7
+ index: path.resolve(__dirname, '../demo/dist/index.html'),
8
+ assetsRoot: path.resolve(__dirname, '../demo/dist'),
9
+ assetsSubDirectory: 'static',
10
+ assetsPublicPath: './',
11
+ productionSourceMap: true,
12
+ // Gzip off by default as many popular static hosts such as
13
+ // Surge or Netlify already gzip all static assets for you.
14
+ // Before setting to `true`, make sure to:
15
+ // npm install --save-dev compression-webpack-plugin
16
+ productionGzip: false,
17
+ productionGzipExtensions: ['js', 'css'],
18
+ // Run the build command with an extra argument to
19
+ // View the bundle analyzer report after build finishes:
20
+ // `npm run build --report`
21
+ // Set to `true` or `false` to always turn it on or off
22
+ bundleAnalyzerReport: process.env.npm_config_report
23
+ },
24
+ dev: {
25
+ env: require('./dev.env'),
26
+ port: 8080,
27
+ autoOpenBrowser: true,
28
+ assetsSubDirectory: 'demo/static',
29
+ assetsPublicPath: '/',
30
+ proxyTable: {},
31
+ // CSS Sourcemaps off by default because relative paths are "buggy"
32
+ // with this option, according to the CSS-Loader README
33
+ // (https://github.com/webpack/css-loader#sourcemaps)
34
+ // In our experience, they generally work as expected,
35
+ // just be aware of this issue when enabling this option.
36
+ cssSourceMap: false
37
+ }
38
+ }
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ NODE_ENV: '"production"'
3
+ }
package/demo/App.vue ADDED
@@ -0,0 +1,26 @@
1
+ <template>
2
+ <div id="app">
3
+ <p>评论列表中的回复框是互斥的,且点击空白处消失</p>
4
+ <comment-item v-for="(n, index) in 5" :key="index"></comment-item>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ import commentItem from '@/components/commentItem'
10
+
11
+ export default {
12
+ name: 'app',
13
+ components: {
14
+ commentItem
15
+ }
16
+ }
17
+ </script>
18
+
19
+ <style>
20
+ #app {
21
+ font-family: 'Avenir', Helvetica, Arial, sans-serif;
22
+ -webkit-font-smoothing: antialiased;
23
+ -moz-osx-font-smoothing: grayscale;
24
+ color: #2c3e50;
25
+ }
26
+ </style>