File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
packages/coreui-vue/src/components/form Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,38 @@ const CFormControlWrapper = defineComponent({
5454 default : ( ) => ( slots . label && slots . label ( ) ) || props . label || props . floatingLabel ,
5555 } ,
5656 ) ,
57+ ( props . text || slots . text ) &&
58+ h (
59+ CFormText ,
60+ {
61+ id : props . describedby ,
62+ } ,
63+ {
64+ default : ( ) => ( slots . text && slots . text ( ) ) || props . text ,
65+ } ,
66+ ) ,
67+ h (
68+ CFormControlValidation ,
69+ {
70+ describedby : props . describedby ,
71+ feedback : props . feedback ,
72+ feedbackInvalid : props . feedbackInvalid ,
73+ feedbackValid : props . feedbackValid ,
74+ floatingLabel : props . floatingLabel ,
75+ invalid : props . invalid ,
76+ tooltipFeedback : props . tooltipFeedback ,
77+ valid : props . valid ,
78+ } ,
79+ {
80+ ...( slots . feedback && { feedback : ( ) => slots . feedback && slots . feedback ( ) } ) ,
81+ ...( slots . feedbackInvalid && {
82+ feedbackInvalid : ( ) => slots . feedbackInvalid && slots . feedbackInvalid ( ) ,
83+ } ) ,
84+ ...( slots . feedbackValid && {
85+ feedbackValid : ( ) => slots . feedbackInvalid && slots . feedbackInvalid ( ) ,
86+ } ) ,
87+ } ,
88+ ) ,
5789 ] )
5890 : [
5991 ( props . label || slots . label ) &&
You can’t perform that action at this time.
0 commit comments