diff --git a/src/components/input/FormInput.vue b/src/components/input/FormInput.vue index 63be771..7f005e6 100644 --- a/src/components/input/FormInput.vue +++ b/src/components/input/FormInput.vue @@ -2,7 +2,7 @@
-
+
-
+
{{ title }}을 확인해주세요.
@@ -56,13 +58,24 @@ const props = defineProps({ type: Boolean, default: true, required: false, + }, + isCommon : { + type: Boolean, + default: false, + required: false, } }); const emit = defineEmits(['update:data']); const selectData = ref(props.value); + watchEffect(() => { + if (props.isCommon && props.data.length > 0) { + selectData.value = props.data[0].value; // 첫 번째 옵션의 값으로 설정 + } else { + selectData.value = props.value; // 기본값으로 설정 + } emit('update:data', selectData.value); }) diff --git a/src/components/input/UserFormInput.vue b/src/components/input/UserFormInput.vue index 4e0217d..54024ec 100644 --- a/src/components/input/UserFormInput.vue +++ b/src/components/input/UserFormInput.vue @@ -11,9 +11,10 @@ class="form-control" :type="type" @input="updateInput" - :value="value" + :value="computedValue" :maxLength="maxlength" :placeholder="title" + @blur="$emit('blur')" /> @ localhost.co.kr
@@ -23,78 +24,90 @@ class="form-control" :type="type" @input="updateInput" - :value="value" + :value="computedValue" :maxLength="maxlength" :placeholder="title" + @blur="$emit('blur')" />
-
{{ title }}를 확인해주세요.
- - diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue index 3713a04..456aa3e 100644 --- a/src/components/list/BoardCard.vue +++ b/src/components/list/BoardCard.vue @@ -34,11 +34,11 @@ {{ views || 0 }} - - {{ likes || 0 }} + + {{ likes }} - - {{ comments || 0 }} + + {{ comments }}
@@ -80,11 +80,11 @@ const props = defineProps({ }, likes: { type: Number, - default: 0, + default: null, }, comments: { type: Number, - default: 0, + default: null, }, attachment: { type: Boolean, diff --git a/src/components/list/BoardCardList.vue b/src/components/list/BoardCardList.vue index 23f55ca..f727c6e 100644 --- a/src/components/list/BoardCardList.vue +++ b/src/components/list/BoardCardList.vue @@ -1,43 +1,53 @@ - diff --git a/src/components/search/SearchBar.vue b/src/components/search/SearchBar.vue index 56a918b..a9c1052 100644 --- a/src/components/search/SearchBar.vue +++ b/src/components/search/SearchBar.vue @@ -1,6 +1,6 @@ diff --git a/src/components/user/LoginForm.vue b/src/components/user/LoginForm.vue index 9296d52..71a9b1d 100644 --- a/src/components/user/LoginForm.vue +++ b/src/components/user/LoginForm.vue @@ -12,7 +12,7 @@ diff --git a/src/components/user/RegisterForm.vue b/src/components/user/RegisterForm.vue index 52ebca7..df715b4 100644 --- a/src/components/user/RegisterForm.vue +++ b/src/components/user/RegisterForm.vue @@ -3,11 +3,12 @@
+ * {{ profilerr }} @@ -22,8 +23,10 @@ :useInputGroup="true" @update:data="id = $event" @update:alert="idAlert = $event" + @blur="checkIdDuplicate" :value="id" /> + {{ idError }} + {{ passwordcheckError }} +
@@ -74,6 +89,7 @@ :is-essential="true" :is-row="false" :is-label="true" + :is-common="true" :data="colorList" @update:data="color = $event" class="w-50" @@ -84,6 +100,7 @@ @@ -134,69 +152,80 @@ diff --git a/src/views/user/TheLogin.vue b/src/views/user/TheLogin.vue index dfbac2a..cc10bb1 100644 --- a/src/views/user/TheLogin.vue +++ b/src/views/user/TheLogin.vue @@ -2,7 +2,7 @@
- +
@@ -11,9 +11,6 @@ import LoginForm from '@c/user/LoginForm.vue'; import LogoHeader from '@c/user/LogoHeader.vue'; - const handleSubmit = async ({ id, password }) => { - console.log('Login'); - }; diff --git a/src/views/user/TheRegister.vue b/src/views/user/TheRegister.vue index 7c7ec8e..4296715 100644 --- a/src/views/user/TheRegister.vue +++ b/src/views/user/TheRegister.vue @@ -1,7 +1,7 @@ @@ -9,9 +9,6 @@