Commit 44412093e14e1dcee83e512396fe8c649a626d11

Authored by huixisheng
1 parent 9b6ff1ce

[fixed] eslint error

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