Showing
3 changed files
with
10 additions
and
5 deletions
@@ -14,7 +14,9 @@ withDefaults(defineProps<{ | @@ -14,7 +14,9 @@ withDefaults(defineProps<{ | ||
14 | // #endregion | 14 | // #endregion |
15 | 15 | ||
16 | // #region --Emit--. | 16 | // #region --Emit--. |
17 | -const emit = defineEmits(["eventSubmit"]); | 17 | +const emit = defineEmits<{ |
18 | + eventSubmit: [formData: any]; | ||
19 | +}>(); | ||
18 | // #endregion | 20 | // #endregion |
19 | 21 | ||
20 | // #region --Data/ref--. | 22 | // #region --Data/ref--. |
@@ -107,7 +109,7 @@ function handleMessageEvent(event: string) { | @@ -107,7 +109,7 @@ function handleMessageEvent(event: string) { | ||
107 | <ui-components-tiny-mce-field-editor | 109 | <ui-components-tiny-mce-field-editor |
108 | :error-message="v$?.message?.$errors[0]?.$message ? (v$.message.$errors[0].$message as string) : ''" | 110 | :error-message="v$?.message?.$errors[0]?.$message ? (v$.message.$errors[0].$message as string) : ''" |
109 | :model-value="formData.message" | 111 | :model-value="formData.message" |
110 | - @update:model-value="handleMessageEvent" | 112 | + @update-model-value="handleMessageEvent" |
111 | /> | 113 | /> |
112 | <v-btn | 114 | <v-btn |
113 | class="mt-6 mr-4" | 115 | class="mt-6 mr-4" |
@@ -14,7 +14,10 @@ withDefaults(defineProps<{ | @@ -14,7 +14,10 @@ withDefaults(defineProps<{ | ||
14 | // #endregion | 14 | // #endregion |
15 | 15 | ||
16 | // #region --Emits--. | 16 | // #region --Emits--. |
17 | -const emit = defineEmits(["eventSearch", "eventClearSearch"]); | 17 | +const emit = defineEmits<{ |
18 | + eventSearch: [search: string]; | ||
19 | + eventClearSearch: []; | ||
20 | +}>(); | ||
18 | // #endregion | 21 | // #endregion |
19 | 22 | ||
20 | // #region --Data/refs--. | 23 | // #region --Data/refs--. |
@@ -13,7 +13,7 @@ const props = defineProps<{ | @@ -13,7 +13,7 @@ const props = defineProps<{ | ||
13 | 13 | ||
14 | // #region --Emit--. | 14 | // #region --Emit--. |
15 | const emit = defineEmits<{ | 15 | const emit = defineEmits<{ |
16 | - (e: "update:modelValue", value: string): void; | 16 | + (e: "updateModelValue", value: string): void; |
17 | }>(); | 17 | }>(); |
18 | // #endregion | 18 | // #endregion |
19 | 19 | ||
@@ -63,7 +63,7 @@ const init = { | @@ -63,7 +63,7 @@ const init = { | ||
63 | 63 | ||
64 | // #region --Watch--. | 64 | // #region --Watch--. |
65 | watch(content, (newValue) => { | 65 | watch(content, (newValue) => { |
66 | - emit("update:modelValue", newValue); | 66 | + emit("updateModelValue", newValue); |
67 | }); | 67 | }); |
68 | 68 | ||
69 | watch( | 69 | watch( |
-
Please register or login to post a comment