[fixed] eslint error

[new] add function-bind package
This commit is contained in:
huixisheng 2017-03-04 09:14:14 +08:00
parent 9b6ff1ce28
commit 44412093e1
2 changed files with 3 additions and 2 deletions

View file

@ -26,7 +26,7 @@
"dist": "npm run dist:style && npm run dist:dev && npm run dist:prod", "dist": "npm run dist:style && npm run dist:dev && npm run dist:prod",
"lint": "eslint --fix --ext .js,.vue src", "lint": "eslint --fix --ext .js,.vue src",
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run", "unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"test": "npm run unit", "test": "npm run lint && npm run unit",
"prepublish": "npm run dist" "prepublish": "npm run dist"
}, },
"repository": { "repository": {
@ -63,6 +63,7 @@
"extract-text-webpack-plugin": "^2.0.0", "extract-text-webpack-plugin": "^2.0.0",
"file-loader": "^0.8.5", "file-loader": "^0.8.5",
"friendly-errors-webpack-plugin": "^1.6.1", "friendly-errors-webpack-plugin": "^1.6.1",
"function-bind": "^1.1.0",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.1", "gulp-autoprefixer": "^3.1.1",
"gulp-clean-css": "^2.0.13", "gulp-clean-css": "^2.0.13",

View file

@ -26,7 +26,7 @@
return { return {
separator: '', separator: '',
showSeparator: false showSeparator: false
} };
}, },
mounted () { mounted () {
this.showSeparator = this.$slots.separator !== undefined; this.showSeparator = this.$slots.separator !== undefined;