From ebffe52c7c3250c4fe530f59c79be34c8788caf2 Mon Sep 17 00:00:00 2001 From: zclzone Date: Sun, 7 May 2023 22:05:13 +0800 Subject: [PATCH] style: lint fix --- build/plugin/unplugin.js | 5 ++++- mock/api/post.js | 10 +++++++--- src/components/common/AppFooter.vue | 14 +++++++++++-- src/components/common/AppProvider.vue | 10 +++++++++- src/components/query-bar/QueryBar.vue | 13 +++++++++++- src/components/query-bar/QueryBarItem.vue | 7 ++++++- src/components/table/CrudModal.vue | 9 ++++++++- src/components/table/CrudTable.vue | 6 +++++- src/layout/components/AppMain.vue | 6 +++++- .../sidebar/components/SideMenu.vue | 12 ++++++++--- src/layout/components/tags/ContextMenu.vue | 4 +++- src/store/modules/tags/index.js | 3 ++- src/utils/auth/auth.js | 3 ++- src/views/demo/base/index.vue | 8 ++++++-- src/views/demo/base/unocss/index.vue | 4 +++- src/views/demo/editor/rich-text.vue | 8 +++++++- src/views/demo/table/index.vue | 5 ++++- src/views/demo/upload/index.vue | 11 ++++++++-- src/views/login/index.vue | 20 ++++++++++++++++--- unocss.config.js | 18 +++++++++++++++-- 20 files changed, 146 insertions(+), 30 deletions(-) diff --git a/build/plugin/unplugin.js b/build/plugin/unplugin.js index cc13a6b..eee6cc7 100644 --- a/build/plugin/unplugin.js +++ b/build/plugin/unplugin.js @@ -33,7 +33,10 @@ export default [ defaultClass: 'inline-block', }), Components({ - resolvers: [NaiveUiResolver(), IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })], + resolvers: [ + NaiveUiResolver(), + IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' }), + ], dts: false, }), createSvgIconsPlugin({ diff --git a/mock/api/post.js b/mock/api/post.js index d869f7e..b6c3e54 100644 --- a/mock/api/post.js +++ b/mock/api/post.js @@ -38,7 +38,8 @@ const posts = [ author: '大脸怪', category: 'Http', description: '谈谈前端缓存的理解', - content: '> 背景\n\n公司有个vue-cli3移动端web项目发版更新后发现部分用户手机在钉钉内置浏览器打开出现了缓存', + content: + '> 背景\n\n公司有个vue-cli3移动端web项目发版更新后发现部分用户手机在钉钉内置浏览器打开出现了缓存', isRecommend: true, isPublish: true, createDate: '2021-06-10T18:51:19.000Z', @@ -49,7 +50,8 @@ const posts = [ author: '大脸怪', category: 'JavaScript', description: '简单介绍下在 Promise 类中,有5 种静态方法及它们的使用场景', - content: '## 1. Promise.all\n\n并行执行多个 promise,并等待所有 promise 都准备就绪。再对它们进行处理。', + content: + '## 1. Promise.all\n\n并行执行多个 promise,并等待所有 promise 都准备就绪。再对它们进行处理。', isRecommend: true, isPublish: true, createDate: '2021-02-22T22:37:06.000Z', @@ -65,7 +67,9 @@ export default [ const { title, pageNo, pageSize } = data.query let pageData = [] let total = 60 - const filterData = posts.filter((item) => item.title.includes(title) || (!title && title !== 0)) + const filterData = posts.filter( + (item) => item.title.includes(title) || (!title && title !== 0) + ) if (filterData.length) { if (pageSize) { while (pageData.length < pageSize) { diff --git a/src/components/common/AppFooter.vue b/src/components/common/AppFooter.vue index be48bc0..b230497 100644 --- a/src/components/common/AppFooter.vue +++ b/src/components/common/AppFooter.vue @@ -2,10 +2,20 @@