From 3523df74dbe99fe7a5236f7e9e9209d5d237b0c2 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Thu, 18 Sep 2025 12:43:03 +0800 Subject: [PATCH] feat: add `inheritAttrs` option to components that include `ClientOnly` (#697) --- .../plugin-md-power/src/client/components/CodeSandbox.vue | 7 ++++++- plugins/plugin-md-power/src/client/components/Replit.vue | 5 +++++ .../plugin-md-power/src/client/components/VPVideoEmbed.vue | 5 +++++ theme/src/client/components/VPEncryptGlobal.vue | 6 +++++- theme/src/client/components/VPEncryptPage.vue | 6 +++++- theme/src/client/components/VPIconify.vue | 7 ++++++- theme/src/client/features/components/RepoCard.vue | 6 +++++- theme/src/client/features/components/Swiper.vue | 4 ++++ 8 files changed, 41 insertions(+), 5 deletions(-) diff --git a/plugins/plugin-md-power/src/client/components/CodeSandbox.vue b/plugins/plugin-md-power/src/client/components/CodeSandbox.vue index c3d2f625..33591c2e 100644 --- a/plugins/plugin-md-power/src/client/components/CodeSandbox.vue +++ b/plugins/plugin-md-power/src/client/components/CodeSandbox.vue @@ -2,6 +2,10 @@ import type { CodeSandboxTokenMeta } from '../../shared/index.js' import { computed } from 'vue' +defineOptions({ + inheritAttrs: false, +}) + const props = defineProps() const EMBED_LINK = 'https://codesandbox.io/embed/' @@ -37,9 +41,10 @@ const source = computed(() => {