Browse Source

👣 制定开发规则

master
wangxiang 3 years ago
parent
commit
8d11e0e541
  1. 44
      kicc-ui/.eslintrc.js
  2. 5
      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({ @@ -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-quotes': [ 'error', 'double', { 'avoidEscape': false } ]
'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'
},
'svg': 'always',
'math': 'always'
}],
'vue/max-attributes-per-line': ['error', {
'singleline': 3,
'multiline': {
'max': 1,
'allowFirstLine': true
}
}],
}
});

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

@ -1,13 +1,12 @@ @@ -1,13 +1,12 @@
<template>
<BasicModal
v-bind="$attrs"
<BasicModal v-bind="$attrs"
@register="registerModal"
showFooter
:title="getTitle"
width="500px"
@ok="handleSubmit"
>
<BasicForm @register="registerForm" />
<BasicForm @register="registerForm"/>
</BasicModal>
</template>
<script lang="ts" setup>

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

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

Loading…
Cancel
Save