From 487078a119f3014662432b90751e6866f6401853 Mon Sep 17 00:00:00 2001 From: Pan Date: Sun, 17 Mar 2019 17:21:46 +0800 Subject: [PATCH] tweak --- .eslintrc.js | 16 ++-------------- package.json | 8 ++++---- src/components/GithubCorner/index.vue | 9 ++++++--- src/components/Hamburger/index.vue | 3 ++- src/components/HeaderSearch/index.vue | 3 ++- src/components/ImageCropper/index.vue | 3 ++- src/components/Kanban/index.vue | 3 ++- src/components/MDinput/index.vue | 18 ++++++++++++------ src/components/Pagination/index.vue | 3 ++- src/components/ThemePicker/index.vue | 3 ++- .../Tinymce/components/editorImage.vue | 3 ++- src/components/Upload/singleImage.vue | 3 ++- src/components/Upload/singleImage2.vue | 3 ++- src/components/Upload/singleImage3.vue | 3 ++- src/views/components-demo/avatarUpload.vue | 3 ++- src/views/components-demo/countTo.vue | 3 ++- src/views/components-demo/markdown.vue | 3 ++- .../admin/components/TodoList/Todo.vue | 6 ++++-- .../admin/components/TodoList/index.vue | 3 ++- src/views/example/components/ArticleDetail.vue | 3 ++- src/views/example/components/Warning.vue | 3 ++- src/views/excel/components/BookTypeOption.vue | 3 ++- src/views/excel/selectExcel.vue | 3 ++- src/views/i18n-demo/index.vue | 3 ++- .../layout/components/Sidebar/SidebarItem.vue | 3 ++- src/views/layout/components/Sidebar/index.vue | 3 ++- src/views/layout/components/TagsView/index.vue | 3 ++- src/views/login/index.vue | 6 ++++-- src/views/tab/components/tabPane.vue | 3 ++- src/views/table/complexTable.vue | 3 ++- src/views/table/treeTable/customTreeTable.vue | 3 ++- 31 files changed, 82 insertions(+), 56 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 53481808..1266f38d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,20 +21,8 @@ module.exports = { "allowFirstLine": false } }], - "vue/html-closing-bracket-newline": ["error", { - "singleline": "never", - "multiline": "never" - }], - "vue/singleline-html-element-content-newline": ["error", { - "ignoreWhenNoAttributes": true, - "ignoreWhenEmpty": true, - "ignores": ["a", "abbr", "audio", "b", "bdi", "bdo", "canvas", "cite", "code", "data", "del", "dfn", "em", "i", "iframe", "ins", "kbd", "label", "map", "mark", "noscript", "object", "output", "picture", "q", "ruby", "s", "samp", "small", "span", "strong", "sub", "sup", "svg", "time", "u", "var", "video", "div"] - }], - "vue/multiline-html-element-content-newline": ["error", { - "ignoreWhenEmpty": true, - "ignores": ["a", "abbr", "audio", "b", "bdi", "bdo", "canvas", "cite", "code", "data", "del", "dfn", "em", "i", "iframe", "ins", "kbd", "label", "map", "mark", "noscript", "object", "output", "picture", "q", "ruby", "s", "samp", "small", "span", "strong", "sub", "sup", "svg", "time", "u", "var", "video"], - "allowEmptyLines": true - }], + "vue/singleline-html-element-content-newline": "off", + "vue/multiline-html-element-content-newline":"off", "vue/name-property-casing": ["error", "PascalCase"], 'accessor-pairs': 2, 'arrow-spacing': [2, { diff --git a/package.json b/package.json index 0f759467..d2748c5a 100644 --- a/package.json +++ b/package.json @@ -80,10 +80,10 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "5.2.0", "css-loader": "1.0.0", - "eslint": "^5.15.1", - "eslint-friendly-formatter": "^4.0.1", - "eslint-loader": "^2.1.2", - "eslint-plugin-vue": "^5.2.2", + "eslint": "5.15.2", + "eslint-friendly-formatter": "4.0.1", + "eslint-loader": "2.1.2", + "eslint-plugin-vue": "5.2.2", "file-loader": "1.1.11", "friendly-errors-webpack-plugin": "1.7.0", "hash-sum": "1.0.2", diff --git a/src/components/GithubCorner/index.vue b/src/components/GithubCorner/index.vue index 5f979cdb..970faaf1 100644 --- a/src/components/GithubCorner/index.vue +++ b/src/components/GithubCorner/index.vue @@ -5,17 +5,20 @@ height="80" viewBox="0 0 250 250" style="fill:#40c9c6; color:#fff;" - aria-hidden="true"> + aria-hidden="true" + > + class="octo-arm" + /> + class="octo-body" + /> diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue index 24a93b38..ca7457c1 100644 --- a/src/components/Hamburger/index.vue +++ b/src/components/Hamburger/index.vue @@ -6,7 +6,8 @@ viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="64" - height="64"> + height="64" + > diff --git a/src/components/HeaderSearch/index.vue b/src/components/HeaderSearch/index.vue index 37b58361..d3acfb62 100644 --- a/src/components/HeaderSearch/index.vue +++ b/src/components/HeaderSearch/index.vue @@ -10,7 +10,8 @@ remote placeholder="Search" class="header-search-select" - @change="change"> + @change="change" + > diff --git a/src/components/ImageCropper/index.vue b/src/components/ImageCropper/index.vue index 5dc74bc5..c30c5b18 100644 --- a/src/components/ImageCropper/index.vue +++ b/src/components/ImageCropper/index.vue @@ -48,7 +48,8 @@ @mousedown="imgStartMove" @mousemove="imgMove" @mouseup="createImg" - @mouseout="createImg"> + @mouseout="createImg" + >
diff --git a/src/components/Kanban/index.vue b/src/components/Kanban/index.vue index dadeb648..059e4186 100644 --- a/src/components/Kanban/index.vue +++ b/src/components/Kanban/index.vue @@ -6,7 +6,8 @@ + class="board-column-content" + >
{{ element.name }} {{ element.id }}
diff --git a/src/components/MDinput/index.vue b/src/components/MDinput/index.vue index e7df5faa..c774aa0e 100644 --- a/src/components/MDinput/index.vue +++ b/src/components/MDinput/index.vue @@ -15,7 +15,8 @@ class="material-input" @focus="handleMdFocus" @blur="handleMdBlur" - @input="handleModelInput"> + @input="handleModelInput" + > + @input="handleModelInput" + > + @input="handleModelInput" + > + @input="handleModelInput" + > + @input="handleModelInput" + > + @input="handleModelInput" + >
diff --git a/src/components/ThemePicker/index.vue b/src/components/ThemePicker/index.vue index 2bfb6be7..be3a573a 100644 --- a/src/components/ThemePicker/index.vue +++ b/src/components/ThemePicker/index.vue @@ -2,7 +2,8 @@ + popper-class="theme-picker-dropdown" + />