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