From df7f5b95a78fdcb1ce6b75fd8d5f775d6812480c Mon Sep 17 00:00:00 2001 From: ZhaoBin <413853119@qq.com> Date: Thu, 15 Aug 2024 23:12:48 +0800 Subject: [PATCH] fix(copy-code): ignoreSelector dose not work (#233) --- plugins/features/plugin-copy-code/src/client/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/features/plugin-copy-code/src/client/config.ts b/plugins/features/plugin-copy-code/src/client/config.ts index 402d9cda1..f078e6876 100644 --- a/plugins/features/plugin-copy-code/src/client/config.ts +++ b/plugins/features/plugin-copy-code/src/client/config.ts @@ -6,12 +6,14 @@ declare const __CC_DELAY__: number declare const __CC_DURATION__: number declare const __CC_LOCALES__: CopyCodePluginLocaleConfig declare const __CC_SELECTOR__: string[] +declare const __CC_IGNORE_SELECTOR__: string[] declare const __CC_SHOW_IN_MOBILE__: boolean export default defineClientConfig({ setup: () => { useCopyCode({ selector: __CC_SELECTOR__, + ignoreSelector: __CC_IGNORE_SELECTOR__, locales: __CC_LOCALES__, duration: __CC_DURATION__, delay: __CC_DELAY__,