From e450a029ac3a61c2348b1cef0444db4e0c70e593 Mon Sep 17 00:00:00 2001 From: chenxin Date: Thu, 5 Sep 2024 17:05:55 +0800 Subject: [PATCH] feat: adapt vue3.5 feat --- eslint.config.js | 1 + src/components/common/HelpInfo.vue | 4 +-- src/components/common/IconSelect.vue | 10 +++--- src/components/common/NovaIcon.vue | 6 ++-- src/components/common/Pagination.vue | 16 +++++----- src/components/common/Watermark.vue | 11 +++---- src/components/custom/CopyText.vue | 7 ++-- .../custom/Editor/MarkDownEditor/index.vue | 14 ++------ .../custom/Editor/RichTextEditor/index.vue | 15 +++++---- src/hooks/useEcharts.ts | 6 ++-- src/layouts/components/common/NoticeList.vue | 4 +-- .../dashboard/monitor/components/chart.vue | 3 +- .../dashboard/monitor/components/chart2.vue | 3 +- .../dashboard/monitor/components/chart3.vue | 3 +- .../dashboard/workbench/components/chart.vue | 3 +- src/views/demo/echarts/index.vue | 12 +++---- .../list/commonList/components/TableModal.vue | 32 ++++++++++--------- .../setting/account/components/TableModal.vue | 8 ++--- .../dictionary/components/DictModal.vue | 17 +++++----- .../setting/menu/components/TableModal.vue | 11 ++++--- 20 files changed, 87 insertions(+), 99 deletions(-) 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() {