From 784a1be8a11a09f655a25818201c2f833ed75758 Mon Sep 17 00:00:00 2001 From: xingyu Date: Fri, 4 Aug 2023 21:33:00 +0800 Subject: [PATCH] chore: stylelint(use pnpm lint:style) --- src/components/Table/src/Table.vue | 4 +- src/components/UploadFile/src/UploadFile.vue | 6 +- src/components/UploadFile/src/UploadImg.vue | 6 +- src/components/UploadFile/src/UploadImgs.vue | 6 +- src/components/Verifition/src/Verify.vue | 98 ++++----- .../Verifition/src/Verify/VerifyPoints.vue | 2 +- .../Verifition/src/Verify/VerifySlide.vue | 4 +- src/components/XButton/src/XButton.vue | 4 +- src/components/XButton/src/XTextButton.vue | 4 +- .../package/designer/ProcessDesigner.vue | 2 +- .../package/designer/ProcessViewer.vue | 6 +- .../package/palette/ProcessPalette.vue | 8 +- src/layout/components/Message/src/Message.vue | 2 +- src/views/Login/components/LoginForm.vue | 26 +-- src/views/Login/components/MobileForm.vue | 14 +- src/views/Login/components/QrCodeForm.vue | 8 +- src/views/Profile/Index.vue | 2 +- src/views/Profile/components/ProfileUser.vue | 16 +- src/views/bpm/model/editor/index.vue | 2 +- .../detail/ProcessInstanceTaskList.vue | 8 +- .../bpm/processInstance/detail/index.vue | 2 +- src/views/infra/codegen/PreviewCode.vue | 2 +- .../mall/promotion/couponTemplate/index.vue | 2 +- .../mall/trade/order/tradeOrderDetail.vue | 4 +- .../components/wx-msg/components/MsgList.vue | 6 +- src/views/mp/components/wx-msg/main.vue | 4 +- src/views/mp/components/wx-music/main.vue | 2 +- .../mp/menu/components/MenuPreviewer.vue | 2 +- src/views/pay/order/index.vue | 2 +- src/views/pay/refund/index.vue | 2 +- stylelint.config.js | 189 ++++++++++++++++-- 31 files changed, 296 insertions(+), 149 deletions(-) diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 33c780e3..a13e2b9f 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -300,12 +300,12 @@ export default defineComponent({ diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index b2a0f64f..c8a3b972 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -147,10 +147,10 @@ const listToString = (list: UploadUserFile[], separator?: string) => { } :deep(.upload-file-list .el-upload-list__item) { - border: 1px solid #e4e7ed; - line-height: 2; - margin-bottom: 10px; position: relative; + margin-bottom: 10px; + line-height: 2; + border: 1px solid #e4e7ed; } :deep(.el-upload-list__item-file-name) { diff --git a/src/components/UploadFile/src/UploadImg.vue b/src/components/UploadFile/src/UploadImg.vue index 5feb2610..3cfc0a73 100644 --- a/src/components/UploadFile/src/UploadImg.vue +++ b/src/components/UploadFile/src/UploadImg.vue @@ -229,16 +229,16 @@ const uploadError = () => { position: absolute; top: 0; right: 0; - box-sizing: border-box; display: flex; - align-items: center; - justify-content: center; width: 100%; height: 100%; cursor: pointer; background: rgb(0 0 0 / 60%); opacity: 0; + box-sizing: border-box; transition: var(--el-transition-duration-fast); + align-items: center; + justify-content: center; .handle-icon { display: flex; diff --git a/src/components/UploadFile/src/UploadImgs.vue b/src/components/UploadFile/src/UploadImgs.vue index bfa75372..91bb5e31 100644 --- a/src/components/UploadFile/src/UploadImgs.vue +++ b/src/components/UploadFile/src/UploadImgs.vue @@ -248,16 +248,16 @@ const handlePictureCardPreview: UploadProps['onPreview'] = (uploadFile) => { position: absolute; top: 0; right: 0; - box-sizing: border-box; display: flex; - align-items: center; - justify-content: center; width: 100%; height: 100%; cursor: pointer; background: rgb(0 0 0 / 60%); opacity: 0; + box-sizing: border-box; transition: var(--el-transition-duration-fast); + align-items: center; + justify-content: center; .handle-icon { display: flex; diff --git a/src/components/Verifition/src/Verify.vue b/src/components/Verifition/src/Verify.vue index 02bcf86f..b7b50486 100644 --- a/src/components/Verifition/src/Verify.vue +++ b/src/components/Verifition/src/Verify.vue @@ -145,23 +145,23 @@ export default { diff --git a/src/components/Verifition/src/Verify/VerifyPoints.vue b/src/components/Verifition/src/Verify/VerifyPoints.vue index 2516b881..9d04f291 100644 --- a/src/components/Verifition/src/Verify/VerifyPoints.vue +++ b/src/components/Verifition/src/Verify/VerifyPoints.vue @@ -17,7 +17,7 @@ ref="canvas" :src="'data:image/png;base64,' + pointBackImgBase" alt="" - style="width: 100%; height: 100%; display: block" + style="display: block; width: 100%; height: 100%" @click="bindingClick ? canvasClick($event) : undefined" /> diff --git a/src/components/Verifition/src/Verify/VerifySlide.vue b/src/components/Verifition/src/Verify/VerifySlide.vue index 46928028..8b448b0d 100644 --- a/src/components/Verifition/src/Verify/VerifySlide.vue +++ b/src/components/Verifition/src/Verify/VerifySlide.vue @@ -9,7 +9,7 @@
@@ -63,7 +63,7 @@
diff --git a/src/components/XButton/src/XButton.vue b/src/components/XButton/src/XButton.vue index 5616a00e..40cba1ac 100644 --- a/src/components/XButton/src/XButton.vue +++ b/src/components/XButton/src/XButton.vue @@ -39,12 +39,12 @@ const getBindValue = computed(() => { diff --git a/src/components/XButton/src/XTextButton.vue b/src/components/XButton/src/XTextButton.vue index f1a979ef..b1a922b3 100644 --- a/src/components/XButton/src/XTextButton.vue +++ b/src/components/XButton/src/XTextButton.vue @@ -38,12 +38,12 @@ const getBindValue = computed(() => { diff --git a/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue b/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue index 2804741e..3fe21944 100644 --- a/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue +++ b/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue @@ -1,6 +1,6 @@