Commit 44412093e14e1dcee83e512396fe8c649a626d11

Authored by huixisheng
1 parent 9b6ff1ce

[fixed] eslint error

[new] add function-bind package
package.json
... ... @@ -26,7 +26,7 @@
26 26 "dist": "npm run dist:style && npm run dist:dev && npm run dist:prod",
27 27 "lint": "eslint --fix --ext .js,.vue src",
28 28 "unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
29   - "test": "npm run unit",
  29 + "test": "npm run lint && npm run unit",
30 30 "prepublish": "npm run dist"
31 31 },
32 32 "repository": {
... ... @@ -63,6 +63,7 @@
63 63 "extract-text-webpack-plugin": "^2.0.0",
64 64 "file-loader": "^0.8.5",
65 65 "friendly-errors-webpack-plugin": "^1.6.1",
  66 + "function-bind": "^1.1.0",
66 67 "gulp": "^3.9.1",
67 68 "gulp-autoprefixer": "^3.1.1",
68 69 "gulp-clean-css": "^2.0.13",
... ...
src/components/breadcrumb/breadcrumb-item.vue
... ... @@ -26,7 +26,7 @@
26 26 return {
27 27 separator: '',
28 28 showSeparator: false
29   - }
  29 + };
30 30 },
31 31 mounted () {
32 32 this.showSeparator = this.$slots.separator !== undefined;
... ...