File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup lang="ts">
2+ import type { HTMLAttributes } from ' vue'
3+
24defineOptions ({
35 inheritAttrs: false ,
46})
@@ -9,6 +11,7 @@ const props = defineProps<{
911 copiedText? : string
1012 ariaLabelCopy? : string
1113 ariaLabelCopied? : string
14+ buttonAttrs? : HTMLAttributes
1215}>()
1316
1417const buttonCopyText = computed (() => props .copyText || $t (' common.copy' ))
@@ -37,6 +40,7 @@ function handleClick() {
3740 copied ? 'text-accent bg-accent/10' : 'text-fg-muted bg-bg border-border',
3841 ]"
3942 :aria-label =" copied ? buttonAriaLabelCopied : buttonAriaLabelCopy"
43+ v-bind =" buttonAttrs"
4044 >
4145 <span
4246 :class =" copied ? 'i-lucide:check' : 'i-lucide:copy'"
Original file line number Diff line number Diff line change @@ -245,7 +245,8 @@ useSeoMeta({
245245 v-if =" packagesData && packagesData.some(p => p !== null)"
246246 :copied =" copied"
247247 :copy-text =" $t('compare.packages.copy_as_markdown')"
248- class =" mb-4 inline-block hidden md:inline-flex"
248+ class =" mb-4"
249+ :button-attrs =" { class: 'hidden md:inline-flex' }"
249250 @click =" exportComparisonDataAsMarkdown"
250251 >
251252 <h2 id =" comparison-heading" class =" text-xs text-fg-subtle uppercase tracking-wider" >
You can’t perform that action at this time.
0 commit comments