diff --git a/eslint.config.js b/eslint.config.js index 949c548..fe1f81c 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -11,6 +11,7 @@ export default antfu( }, vue: { overrides: { + 'vue/no-unused-refs': 'off', // 暂时关闭,等待vue-lint的分支合并 'vue/no-reserved-component-names': 'off', 'vue/component-definition-name-casing': 'off', }, diff --git a/src/components/common/HelpInfo.vue b/src/components/common/HelpInfo.vue index 41bc443..969ae99 100644 --- a/src/components/common/HelpInfo.vue +++ b/src/components/common/HelpInfo.vue @@ -3,7 +3,7 @@ interface Props { message: string } -const props = defineProps() +const { message } = defineProps() diff --git a/src/components/common/IconSelect.vue b/src/components/common/IconSelect.vue index 543e972..ca37302 100644 --- a/src/components/common/IconSelect.vue +++ b/src/components/common/IconSelect.vue @@ -5,9 +5,9 @@ interface Props { disabled?: boolean } -const props = withDefaults(defineProps(), { - disabled: false, -}) +const { + disabled = false, +} = defineProps() interface IconList { prefix: string @@ -125,13 +125,13 @@ function clearIcon() {