|
|
|
@ -7,6 +7,7 @@ import { SvgIcon } from '@/components/common'
|
|
|
|
|
import { copyText } from '@/utils/format'
|
|
|
|
|
import { useIconRender } from '@/hooks/useIconRender'
|
|
|
|
|
import { t } from '@/locales'
|
|
|
|
|
import { useBasicLayout } from '@/hooks/useBasicLayout'
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
dateTime?: string
|
|
|
|
@ -25,6 +26,8 @@ const props = defineProps<Props>()
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits<Emit>()
|
|
|
|
|
|
|
|
|
|
const { isMobile } = useBasicLayout()
|
|
|
|
|
|
|
|
|
|
const { iconRender } = useIconRender()
|
|
|
|
|
|
|
|
|
|
const textRef = ref<HTMLElement>()
|
|
|
|
@ -113,7 +116,12 @@ function handleRegenerate() {
|
|
|
|
|
>
|
|
|
|
|
<SvgIcon icon="ri:restart-line" />
|
|
|
|
|
</button>
|
|
|
|
|
<NDropdown :placement="!inversion ? 'right' : 'left'" :options="options" @select="handleSelect">
|
|
|
|
|
<NDropdown
|
|
|
|
|
:trigger="isMobile ? 'click' : 'hover'"
|
|
|
|
|
:placement="!inversion ? 'right' : 'left'"
|
|
|
|
|
:options="options"
|
|
|
|
|
@select="handleSelect"
|
|
|
|
|
>
|
|
|
|
|
<button class="transition text-neutral-300 hover:text-neutral-800 dark:hover:text-neutral-200">
|
|
|
|
|
<SvgIcon icon="ri:more-2-fill" />
|
|
|
|
|
</button>
|
|
|
|
|