From cb03111c22164365f2e5198d5162bff172492ffe Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 6 Sep 2024 20:43:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 1 + src/components/GiCodeView/index.vue | 7 ------- src/components/GiSvgIcon/index.vue | 4 ++-- src/hooks/modules/useTable.ts | 8 ++++---- src/stores/modules/app.ts | 8 ++++---- src/types/components.d.ts | 7 ------- 6 files changed, 11 insertions(+), 24 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 09443b9..2606913 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -47,6 +47,7 @@ export default antfu( 'style/brace-style': [2, '1tbs', { allowSingleLine: true }], // 对块执行一致的大括号样式 'style/comma-dangle': [2, 'never'], // 要求或不允许尾随逗号 'ts/consistent-type-definitions': 0, + 'ts/no-unused-expressions': 0, 'node/prefer-global/process': 0, 'antfu/top-level-function': 0, 'antfu/if-newline': 0 diff --git a/src/components/GiCodeView/index.vue b/src/components/GiCodeView/index.vue index fe7c3b9..9f9bbd1 100644 --- a/src/components/GiCodeView/index.vue +++ b/src/components/GiCodeView/index.vue @@ -37,11 +37,6 @@ const defaultConfig = { const config = defaultConfig const codeValue = computed(() => props.codeJson) -const visible = ref(false) -// 打开 -const open = () => { - visible.value = true -} const extensions = computed(() => { const arr = [isDark.value ? oneDark : githubLight] @@ -53,8 +48,6 @@ const extensions = computed(() => { } return arr }) - -defineExpose({ open })