@@ -4,9 +4,9 @@ import { CFormFloating } from './CFormFloating'
4
4
import { CFormLabel } from './CFormLabel'
5
5
import { CFormText } from './CFormText'
6
6
7
- type CFormControlValidationProps = InstanceType < typeof CFormControlValidation > [ '$props' ]
7
+ import type { ComponentProps } from '../../utils/ComponentProps'
8
8
9
- interface CFormControlWrapperProps {
9
+ interface CFormControlWrapperProps extends ComponentProps < typeof CFormControlValidation > {
10
10
floatingLabel ?: string
11
11
id ?: string
12
12
label ?: string
@@ -27,7 +27,9 @@ const CFormControlWrapper = defineComponent({
27
27
/**
28
28
* @ignore
29
29
*/
30
- id : String ,
30
+ id : {
31
+ type : String ,
32
+ } ,
31
33
/**
32
34
* Add a caption for a component.
33
35
*
@@ -41,7 +43,7 @@ const CFormControlWrapper = defineComponent({
41
43
*/
42
44
text : String ,
43
45
} ,
44
- setup ( props : CFormControlWrapperProps & CFormControlValidationProps , { slots } ) {
46
+ setup ( props : CFormControlWrapperProps , { slots } ) {
45
47
const formControlValidation = ( ) =>
46
48
h (
47
49
CFormControlValidation ,
@@ -50,7 +52,6 @@ const CFormControlWrapper = defineComponent({
50
52
feedback : props . feedback ,
51
53
feedbackInvalid : props . feedbackInvalid ,
52
54
feedbackValid : props . feedbackValid ,
53
- floatingLabel : props . floatingLabel ,
54
55
invalid : props . invalid ,
55
56
tooltipFeedback : props . tooltipFeedback ,
56
57
valid : props . valid ,
0 commit comments