Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Bruno Predot
/
tmdb_test
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Bruno Predot
2025-05-17 15:28:48 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f104dcd984f917c27d786990b9d725169f6c5f6f
f104dcd9
1 parent
a65f44a2
Ré écriture des emits.
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
components/form/MovieCommentForm.vue
components/ui-components/SearchBar.vue
components/ui-components/TinyMceFieldEditor.vue
components/form/MovieCommentForm.vue
View file @
f104dcd
...
...
@@ -14,7 +14,9 @@ withDefaults(defineProps<{
// #endregion
// #region --Emit--.
const emit = defineEmits(["eventSubmit"]);
const emit = defineEmits<{
eventSubmit: [formData: any];
}>();
// #endregion
// #region --Data/ref--.
...
...
@@ -107,7 +109,7 @@ function handleMessageEvent(event: string) {
<ui-components-tiny-mce-field-editor
:error-message="v$?.message?.$errors[0]?.$message ? (v$.message.$errors[0].$message as string) : ''"
:model-value="formData.message"
@update
:
model-value="handleMessageEvent"
@update
-
model-value="handleMessageEvent"
/>
<v-btn
class="mt-6 mr-4"
...
...
components/ui-components/SearchBar.vue
View file @
f104dcd
...
...
@@ -14,7 +14,10 @@ withDefaults(defineProps<{
// #endregion
// #region --Emits--.
const emit = defineEmits(["eventSearch", "eventClearSearch"]);
const emit = defineEmits<{
eventSearch: [search: string];
eventClearSearch: [];
}>();
// #endregion
// #region --Data/refs--.
...
...
components/ui-components/TinyMceFieldEditor.vue
View file @
f104dcd
...
...
@@ -13,7 +13,7 @@ const props = defineProps<{
// #region --Emit--.
const emit = defineEmits<{
(e: "update
:m
odelValue", value: string): void;
(e: "update
M
odelValue", value: string): void;
}>();
// #endregion
...
...
@@ -63,7 +63,7 @@ const init = {
// #region --Watch--.
watch(content, (newValue) => {
emit("update
:m
odelValue", newValue);
emit("update
M
odelValue", newValue);
});
watch(
...
...
Please
register
or
login
to post a comment