From 8d11e0e541c3b9e6f2bd0f9163a349c9576f949d Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sun, 8 May 2022 02:19:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=A3=20=E5=88=B6=E5=AE=9A=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kicc-ui/.eslintrc.js | 44 ++++++++++++++------- kicc-ui/src/views/system/dict/DictModal.vue | 15 ++++--- kicc-ui/src/views/system/dict/dict.data.ts | 8 +++- 3 files changed, 44 insertions(+), 23 deletions(-) diff --git a/kicc-ui/.eslintrc.js b/kicc-ui/.eslintrc.js index deabb9cd..a7d562b4 100644 --- a/kicc-ui/.eslintrc.js +++ b/kicc-ui/.eslintrc.js @@ -58,24 +58,40 @@ module.exports = defineConfig({ 'vue/custom-event-name-casing': 'off', 'vue/attributes-order': 'off', 'vue/one-component-per-file': 'off', - 'vue/html-closing-bracket-newline': 'off', 'vue/max-attributes-per-line': 'off', 'vue/multiline-html-element-content-newline': 'off', 'vue/singleline-html-element-content-newline': 'off', 'vue/attribute-hyphenation': 'off', 'vue/require-default-prop': 'off', - 'vue/html-self-closing': [ - 'error', - { - html: { - void: 'always', - normal: 'never', - component: 'always', - }, - svg: 'always', - math: 'always', + 'vue/html-end-tags': 'error', + 'vue/html-quotes': [ 'error', 'double', { 'avoidEscape': false } ], + 'vue/no-multi-spaces': ['error', { 'ignoreProperties': false }], + 'vue/html-closing-bracket-newline': ['error', { + 'singleline': 'never', + 'multiline': 'always' + }], + 'vue/html-indent': ['error', 2, { + 'attribute': 1, + 'baseIndent': 1, + 'closeBracket': 0, + 'alignAttributesVertically': true, + 'ignores': [] + }], + 'vue/html-self-closing': ['error', { + 'html': { + 'void': 'never', + 'normal': 'always', + 'component': 'always' }, - ], - 'vue/html-quotes': [ 'error', 'double', { 'avoidEscape': false } ] - }, + 'svg': 'always', + 'math': 'always' + }], + 'vue/max-attributes-per-line': ['error', { + 'singleline': 3, + 'multiline': { + 'max': 1, + 'allowFirstLine': true + } + }], + } }); diff --git a/kicc-ui/src/views/system/dict/DictModal.vue b/kicc-ui/src/views/system/dict/DictModal.vue index 6d1af805..88bc3337 100644 --- a/kicc-ui/src/views/system/dict/DictModal.vue +++ b/kicc-ui/src/views/system/dict/DictModal.vue @@ -1,13 +1,12 @@