diff --git a/.eslintrc.js b/.eslintrc.js index 71a1637..12c2a4f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,21 +1,41 @@ module.exports = { - "env": { - "browser": true, - "es2021": true - }, - "extends": [ - "plugin:vue/essential", - "airbnb-base" + env: { + browser: true, + es2021: true, + }, + extends: [ + 'plugin:vue/essential', + 'airbnb-base', + ], + parserOptions: { + ecmaVersion: 13, + parser: '@typescript-eslint/parser', + sourceType: 'module', + }, + plugins: [ + 'vue', + '@typescript-eslint', + ], + rules: { + 'vue/html-self-closing': 'off', + 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', + 'no-param-reassign': 'off', + 'max-len': ['error', { code: 140, tabWidth: 2 }], + 'object-curly-newline': ['error', { multiline: true }], + 'arrow-parens': ['error', 'as-needed'], + 'linebreak-style': 'off', + 'vue/attributes-order': 'off', + 'vue/singleline-html-element-content-newline': 'off', + 'vue/max-attributes-per-line': 'off', + 'vue/multiline-html-element-content-newline': 'off', + 'vue/html-indent': 'off', + 'vue/html-closing-bracket-newline': [ + 'error', + { + singleline: 'never', + multiline: 'always', + }, ], - "parserOptions": { - "ecmaVersion": 13, - "parser": "@typescript-eslint/parser", - "sourceType": "module" - }, - "plugins": [ - "vue", - "@typescript-eslint" - ], - "rules": { - } + }, }; diff --git a/CHANGELOG.md b/CHANGELOG.md index dc55e89..76f4938 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - | first commit | [8dc26de](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8dc26de) - | vue3 | [12ed2ad](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/12ed2ad) - | 使用uview完成api请求 | [1b3efd8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/1b3efd8) + - | 更新代码 | [392c8cc](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/392c8cc) 范围|描述|commitId diff --git a/components/Calendar/Calendar - 副本.vue b/components/Calendar/Calendar - 副本.vue new file mode 100644 index 0000000..57afd47 --- /dev/null +++ b/components/Calendar/Calendar - 副本.vue @@ -0,0 +1,473 @@ + + + + + diff --git a/components/Calendar/Calendar.vue b/components/Calendar/Calendar.vue index 57afd47..212ea2e 100644 --- a/components/Calendar/Calendar.vue +++ b/components/Calendar/Calendar.vue @@ -1,14 +1,10 @@