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

youhua

上级 c1d4d390
<template> <template>
<div class="max-w-screen-md w-full flex flex-col space-y-4 p-6"> <div class="max-w-screen-md w-full flex flex-col space-y-4 p-6">
<UCard <UCard
class="transition-[box-shadow] hover:ring-2 has-[:focus]:ring-2 has-[:focus]:ring-green-500 dark:has-[:focus]:ring-green-400" class="transition-[box-shadow] hover:ring-2 has-[textarea:focus]:ring-2 has-[textarea:focus]:ring-green-500 dark:has-[textarea:focus]:ring-green-400"
:ui="cardUI" :ui="cardUI"
> >
<UTextarea <UTextarea
......
<template> <template>
<div class="flex w-full justify-center"> <div class="flex w-full justify-center">
<UCard <UCard
class="hover:ring-2 has-[:focus]:ring-2 has-[:focus]:ring-green-500 dark:has-[:focus]:ring-green-400" class="hover:ring-2 has-[textarea:focus]:ring-2 has-[textarea:focus]:ring-green-500 dark:has-[textarea:focus]:ring-green-400"
:ui="cardUI" :ui="cardUI"
> >
<UTextarea <UTextarea
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
trailing-icon="i-heroicons-stop-20-solid" trailing-icon="i-heroicons-stop-20-solid"
size="xl" size="xl"
variant="ghost" variant="ghost"
@click="handleStop" @click.stop="handleStop"
/> />
</UTooltip> </UTooltip>
</div> </div>
...@@ -55,7 +55,7 @@ const cardUI = { ...@@ -55,7 +55,7 @@ const cardUI = {
padding: '', padding: '',
base: 'flex items-end has-[textarea[rows="1"]]:items-center pl-4 pr-1 py-1 gap-2' base: 'flex items-end has-[textarea[rows="1"]]:items-center pl-4 pr-1 py-1 gap-2'
}, },
base: 'transition-[width] w-3/5 has-[:focus]:w-full', base: 'transition-[width] w-3/5 has-[textarea:focus]:w-full',
rounded: 'rounded has-[textarea[rows="1"]]:rounded-full' rounded: 'rounded has-[textarea[rows="1"]]:rounded-full'
} }
defineShortcuts({ defineShortcuts({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册