提交 c536849d 编写于 作者: View Design's avatar View Design

Update ProsePre.global.vue

上级 7bdefb2d
<template> <template>
<UCard :ui="{ body: { padding: 'p-0 sm:p-0' }, base: 'overflow-hidden mt-5 mb-5' }"> <UCard :ui="cardUI">
<pre class="flex justify-between items-center m-0 rounded-none dark"> <pre class="flex justify-between items-center m-0 p-1 pl-4 pr-1 rounded-none dark">
<div>{{ language }}</div> <div>{{ language }}</div>
<UButton <UButton
leading-icon="i-heroicons-document-duplicate-20-solid" leading-icon="i-heroicons-document-duplicate-20-solid"
...@@ -44,6 +44,13 @@ const props = defineProps({ ...@@ -44,6 +44,13 @@ const props = defineProps({
default: null default: null
} }
}) })
const cardUI = {
body: {
padding: 'p-0 sm:p-0'
},
base: 'overflow-hidden mt-5 mb-5',
ring: 'ring-0 dark:ring-1'
}
const handleCopy = () => { const handleCopy = () => {
useCopyToClipboard().copy(props.code) useCopyToClipboard().copy(props.code)
toast.add({ toast.add({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册