From 94a3d7be7e72e862d0e7fda965cac8c9baf6015a Mon Sep 17 00:00:00 2001 From: Pan Date: Fri, 8 Mar 2019 18:43:26 +0800 Subject: [PATCH] lint code --- .eslintrc.js | 1 + src/App.vue | 4 +- src/components/BackToTop/index.vue | 2 +- src/components/Breadcrumb/index.vue | 2 +- src/components/Charts/keyboard.vue | 2 +- src/components/Charts/lineMarker.vue | 2 +- src/components/Charts/mixChart.vue | 2 +- src/components/DndList/index.vue | 10 ++- src/components/DragSelect/index.vue | 2 +- src/components/Dropzone/index.vue | 2 +- src/components/ErrorLog/index.vue | 13 +++- src/components/GithubCorner/index.vue | 11 ++- src/components/HeaderSearch/index.vue | 5 +- src/components/ImageCropper/index.vue | 29 ++++---- src/components/JsonEditor/index.vue | 2 +- src/components/Kanban/index.vue | 3 +- src/components/LangSelect/index.vue | 12 ++- src/components/MDinput/index.vue | 36 +++++---- src/components/MarkdownEditor/index.vue | 2 +- src/components/Pagination/index.vue | 3 +- src/components/PanThumb/index.vue | 2 +- src/components/SizeSelect/index.vue | 6 +- src/components/SvgIcon/index.vue | 2 +- src/components/TextHoverEffect/Mallki.vue | 4 +- src/components/ThemePicker/index.vue | 3 +- .../Tinymce/components/editorImage.vue | 18 +++-- src/components/Tinymce/index.vue | 4 +- src/components/TreeTable/index.vue | 19 +++-- src/components/Upload/singleImage.vue | 11 ++- src/components/Upload/singleImage2.vue | 11 ++- src/components/Upload/singleImage3.vue | 13 ++-- src/components/UploadExcel/index.vue | 4 +- src/directive/el-dragDialog/drag.js | 2 +- src/directive/permission/permission.js | 2 +- src/directive/waves/waves.js | 2 +- src/views/charts/keyboard.vue | 2 +- src/views/charts/line.vue | 2 +- src/views/charts/mixChart.vue | 2 +- src/views/clipboard/index.vue | 12 ++- src/views/components-demo/avatarUpload.vue | 10 ++- src/views/components-demo/backToTop.vue | 2 +- src/views/components-demo/countTo.vue | 29 +++++--- src/views/components-demo/dndList.vue | 2 +- src/views/components-demo/dragDialog.vue | 12 +-- src/views/components-demo/dragKanban.vue | 6 +- src/views/components-demo/dragSelect.vue | 8 +- src/views/components-demo/dropzone.vue | 2 +- src/views/components-demo/jsonEditor.vue | 2 +- src/views/components-demo/markdown.vue | 32 +++++--- src/views/components-demo/mixin.vue | 37 +++++++--- src/views/components-demo/splitpane.vue | 6 +- src/views/components-demo/sticky.vue | 15 ++-- src/views/components-demo/tinymce.vue | 4 +- .../dashboard/admin/components/BarChart.vue | 2 +- .../dashboard/admin/components/BoxCard.vue | 12 +-- .../dashboard/admin/components/LineChart.vue | 2 +- .../dashboard/admin/components/PanelGroup.vue | 24 ++++-- .../dashboard/admin/components/PieChart.vue | 2 +- .../admin/components/RaddarChart.vue | 2 +- .../admin/components/TodoList/Todo.vue | 12 +-- .../admin/components/TodoList/index.vue | 5 +- .../admin/components/TransactionTable.vue | 4 +- src/views/dashboard/admin/index.vue | 20 +++-- src/views/dashboard/editor/index.vue | 5 +- src/views/dashboard/index.vue | 2 +- src/views/documentation/index.vue | 2 +- src/views/errorLog/errorTestB.vue | 2 +- src/views/errorLog/index.vue | 4 +- src/views/errorPage/401.vue | 16 +++- src/views/errorPage/404.vue | 19 +++-- .../example/components/ArticleDetail.vue | 21 +++--- .../example/components/Dropdown/Comment.vue | 13 +++- .../example/components/Dropdown/Platform.vue | 4 +- .../example/components/Dropdown/SourceUrl.vue | 6 +- src/views/example/components/Warning.vue | 3 +- src/views/example/create.vue | 2 +- src/views/example/edit.vue | 2 +- src/views/example/list.vue | 13 ++-- .../excel/components/AutoWidthOption.vue | 8 +- src/views/excel/components/BookTypeOption.vue | 5 +- src/views/excel/components/FilenameOption.vue | 2 +- src/views/excel/exportExcel.vue | 7 +- src/views/excel/selectExcel.vue | 15 ++-- src/views/excel/uploadExcel.vue | 4 +- src/views/guide/index.vue | 4 +- src/views/i18n-demo/index.vue | 51 +++++++++---- src/views/layout/Layout.vue | 10 +-- src/views/layout/components/AppMain.vue | 2 +- src/views/layout/components/Navbar.vue | 16 ++-- src/views/layout/components/Sidebar/Link.vue | 2 +- .../layout/components/Sidebar/SidebarItem.vue | 7 +- src/views/layout/components/Sidebar/index.vue | 2 +- .../layout/components/TagsView/ScrollPane.vue | 2 +- .../layout/components/TagsView/index.vue | 23 ++++-- src/views/login/socialsignin.vue | 4 +- src/views/nested/menu1/index.vue | 2 +- src/views/nested/menu1/menu1-1/index.vue | 2 +- src/views/pdf/download.vue | 6 +- src/views/pdf/index.vue | 4 +- .../permission/components/SwitchRoles.vue | 8 +- src/views/permission/directive.vue | 26 +++++-- src/views/permission/page.vue | 2 +- src/views/qiniu/upload.vue | 8 +- src/views/tab/components/tabPane.vue | 11 +-- src/views/tab/index.vue | 6 +- src/views/table/complexTable.vue | 73 ++++++++++++------- src/views/table/dragTable.vue | 21 +++--- src/views/table/dynamicTable/fixedThead.vue | 18 +++-- src/views/table/dynamicTable/index.vue | 12 ++- src/views/table/dynamicTable/unfixedThead.vue | 16 ++-- src/views/table/inlineEditTable.vue | 23 +++--- src/views/theme/index.vue | 59 +++++++++------ src/views/tree-table/custom/index.vue | 30 ++++---- src/views/tree-table/index.vue | 11 ++- src/views/zip/index.vue | 8 +- 115 files changed, 697 insertions(+), 445 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6f55c5a1..1909c7b5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,6 +22,7 @@ module.exports = { } }], "vue/name-property-casing": ["error", "PascalCase"], + "vue/no-v-html": "off", 'accessor-pairs': 2, 'arrow-spacing': [2, { 'before': true, diff --git a/src/App.vue b/src/App.vue index ab408f3e..ec9032c1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,11 @@ diff --git a/src/components/BackToTop/index.vue b/src/components/BackToTop/index.vue index 39977178..0c1ff792 100644 --- a/src/components/BackToTop/index.vue +++ b/src/components/BackToTop/index.vue @@ -4,7 +4,7 @@ diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 5f4d054f..0dffa681 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -3,7 +3,7 @@ {{ - generateTitle(item.meta.title) }} + generateTitle(item.meta.title) }} {{ generateTitle(item.meta.title) }} diff --git a/src/components/Charts/keyboard.vue b/src/components/Charts/keyboard.vue index 857b26ae..3f061bd0 100644 --- a/src/components/Charts/keyboard.vue +++ b/src/components/Charts/keyboard.vue @@ -1,5 +1,5 @@