33 <CdsBaseInput
44 ref =" baseInput"
55 v-model =" internalValue"
6- v-facade =" internalMask"
76 v-bind =" {...$attrs, ...props}"
87 type =" textarea"
9- :support-link-url =" supportLinkUrl || linkUrl "
10- :support-link =" supportLink || linkText "
11- :floating-label =" floatingLabel || mobile "
8+ :support-link-url =" supportLinkUrl"
9+ :support-link =" supportLink"
10+ :floating-label =" floatingLabel"
1211 @click =" emitClick"
1312 @change =" emitChange"
1413 @focus =" emitFocus"
@@ -41,48 +40,62 @@ const props = defineProps({
4140 type: String ,
4241 default: ' Label' ,
4342 },
44-
4543 /**
4644 * Exibe asterisco que indica campo obrigatório (Obs: Não faz a validação)
4745 */
4846 required: {
4947 type: Boolean ,
5048 default: false ,
5149 },
52-
5350 /**
5451 * Especifica o placeholder do textarea.
5552 */
5653 placeholder: {
5754 type: String ,
5855 default: ' Digite aqui a descrição' ,
5956 },
60-
6157 /**
6258 * Desabilita o input do textarea.
6359 */
6460 disabled: {
6561 type: Boolean ,
6662 default: false ,
6763 },
68-
6964 /**
7065 * Especifica o estado do textarea. As opções são 'default', 'valid', 'invalid' e 'loading'.
7166 */
7267 state: {
7368 type: String ,
7469 default: ' default' ,
7570 },
76-
7771 /**
7872 * Especifica a mensagem de erro que será exibida, caso o estado do textarea seja inválido.
7973 */
8074 errorMessage: {
8175 type: String ,
8276 default: ' Valor inválido' ,
8377 },
84-
85-
78+ /**
79+ * Especifica mensagem de auxílio.
80+ */
81+ supportingText: {
82+ type: [String , Array ],
83+ default: ' ' ,
84+ },
85+ /**
86+ * Controla a exibição e o conteúdo do link de suporte exibido ao lado da label.
87+ */
88+ supportLink: {
89+ type: String ,
90+ default: ' ' ,
91+ },
92+ /**
93+ * Define a url a ser acessada no clique do link de suporte.
94+ */
95+ supportLinkUrl: {
96+ type: String ,
97+ default: ' https://cuida.framer.wiki/' ,
98+ },
8699 /**
87100 * Especifica se a largura do textarea deve ser fluida.
88101 */
@@ -91,6 +104,34 @@ const props = defineProps({
91104 default: false ,
92105 required: false ,
93106 },
107+ /**
108+ * Quando true, o v-model é atualizado com o evento `change` no lugar do `input`.
109+ */
110+ lazy: {
111+ type: Boolean ,
112+ default: false ,
113+ },
114+ /**
115+ * Define exibição e texto do tooltip do input
116+ */
117+ tooltip: {
118+ type: String ,
119+ default: null ,
120+ },
121+ /**
122+ * Especifica ícone do tooltip do TextInput.
123+ */
124+ tooltipIcon: {
125+ type: String ,
126+ default: ' info-outline' ,
127+ },
128+ /**
129+ * Define o tipo do input, se true será um input adaptado para o mobile
130+ */
131+ floatingLabel: {
132+ type: Boolean ,
133+ default: false ,
134+ },
94135});
95136
96137const emits = defineEmits ({
0 commit comments