Browse Source

👣 制定开发规则

master
wangxiang 3 years ago
parent
commit
8d11e0e541
  1. 44
      kicc-ui/.eslintrc.js
  2. 3
      kicc-ui/src/views/system/dict/DictModal.vue
  3. 6
      kicc-ui/src/views/system/dict/dict.data.ts

44
kicc-ui/.eslintrc.js

@ -58,24 +58,40 @@ module.exports = defineConfig({
'vue/custom-event-name-casing': 'off', 'vue/custom-event-name-casing': 'off',
'vue/attributes-order': 'off', 'vue/attributes-order': 'off',
'vue/one-component-per-file': 'off', 'vue/one-component-per-file': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/max-attributes-per-line': 'off', 'vue/max-attributes-per-line': 'off',
'vue/multiline-html-element-content-newline': 'off', 'vue/multiline-html-element-content-newline': 'off',
'vue/singleline-html-element-content-newline': 'off', 'vue/singleline-html-element-content-newline': 'off',
'vue/attribute-hyphenation': 'off', 'vue/attribute-hyphenation': 'off',
'vue/require-default-prop': 'off', 'vue/require-default-prop': 'off',
'vue/html-self-closing': [ 'vue/html-end-tags': 'error',
'error', 'vue/html-quotes': [ 'error', 'double', { 'avoidEscape': false } ],
{ 'vue/no-multi-spaces': ['error', { 'ignoreProperties': false }],
html: { 'vue/html-closing-bracket-newline': ['error', {
void: 'always', 'singleline': 'never',
normal: 'never', 'multiline': 'always'
component: 'always', }],
}, 'vue/html-indent': ['error', 2, {
svg: 'always', 'attribute': 1,
math: 'always', 'baseIndent': 1,
}, 'closeBracket': 0,
], 'alignAttributesVertically': true,
'vue/html-quotes': [ 'error', 'double', { 'avoidEscape': false } ] 'ignores': []
}],
'vue/html-self-closing': ['error', {
'html': {
'void': 'never',
'normal': 'always',
'component': 'always'
}, },
'svg': 'always',
'math': 'always'
}],
'vue/max-attributes-per-line': ['error', {
'singleline': 3,
'multiline': {
'max': 1,
'allowFirstLine': true
}
}],
}
}); });

3
kicc-ui/src/views/system/dict/DictModal.vue

@ -1,6 +1,5 @@
<template> <template>
<BasicModal <BasicModal v-bind="$attrs"
v-bind="$attrs"
@register="registerModal" @register="registerModal"
showFooter showFooter
:title="getTitle" :title="getTitle"

6
kicc-ui/src/views/system/dict/dict.data.ts

@ -130,5 +130,11 @@ export const formSchema: FormSchema[] = [
field: 'remarks', field: 'remarks',
label: '备注', label: '备注',
component: 'InputTextArea', component: 'InputTextArea',
componentProps: {
rows: 6
}, },
colProps: {
span: 24
}
}
]; ];

Loading…
Cancel
Save