fix(ChatPrompt): proxy `disabled` prop · nuxt/ui@a8f2156

@@ -6,7 +6,7 @@ import type { ComponentConfig } from '../types/tv'

6677

type ChatPrompt = ComponentConfig<typeof theme, AppConfig, 'chatPrompt'>

889-

export interface ChatPromptProps extends /** @vue-ignore */ Pick<TextareaProps, 'autofocusDelay' | 'autoresizeDelay' | 'maxrows' | 'icon' | 'avatar' | 'loading' | 'loadingIcon'> {

9+

export interface ChatPromptProps extends Pick<TextareaProps, 'rows' | 'autofocus' | 'autofocusDelay' | 'autoresize' | 'autoresizeDelay' | 'maxrows' | 'icon' | 'avatar' | 'loading' | 'loadingIcon' | 'disabled'> {

1010

/**

1111

* The element or component this component should render as.

1212

* @defaultValue 'form'

@@ -17,9 +17,6 @@ export interface ChatPromptProps extends /** @vue-ignore */ Pick<TextareaProps,

1717

* @defaultValue t('chatPrompt.placeholder')

1818

*/

1919

placeholder?: string

20-

autofocus?: TextareaProps['autofocus']

21-

autoresize?: TextareaProps['autoresize']

22-

rows?: TextareaProps['rows']

2320

/**

2421

* @defaultValue 'outline'

2522

*/

@@ -66,7 +63,7 @@ const model = defineModel<string>({ default: '' })

6663

const { t } = useLocale()

6764

const appConfig = useAppConfig() as ChatPrompt['AppConfig']

686569-

const textareaProps = useForwardProps(reactivePick(props, 'autofocus', 'autoresize', 'rows'))

66+

const textareaProps = useForwardProps(reactivePick(props, 'rows', 'autofocus', 'autofocusDelay', 'autoresize', 'autoresizeDelay', 'maxrows', 'icon', 'avatar', 'loading', 'loadingIcon'))

70677168

const getProxySlots = () => omit(slots, ['header', 'footer'])

7269

@@ -105,7 +102,7 @@ defineExpose({

105102

ref="textarea"

106103

v-model="model"

107104

:placeholder="placeholder || t('chatPrompt.placeholder')"

108-

:disabled="Boolean(error)"

105+

:disabled="Boolean(error) || disabled"

109106

variant="none"

110107

v-bind="{ ...textareaProps, ...$attrs }"

111108

:ui="transformUI(omit(ui, ['root', 'body', 'header', 'footer']), props.ui)"