diff --git a/src/common/utils.js b/src/common/utils.js
new file mode 100644
index 0000000..1dd59e1
--- /dev/null
+++ b/src/common/utils.js
@@ -0,0 +1,7 @@
+export const wait = timeToDelay => new Promise(resolve => setTimeout(resolve, timeToDelay));
+
+export const isEmpty = (value) => {
+ if (value == "" || value == null || value == undefined || (value != null && typeof value == "object" && !Object.keys(value).length))
+ return true;
+ return false;
+}
diff --git a/src/components/editor/TEditor.vue b/src/components/editor/TEditor.vue
index 7099e8c..8210fc8 100644
--- a/src/components/editor/TEditor.vue
+++ b/src/components/editor/TEditor.vue
@@ -1,11 +1,15 @@
-
+
diff --git a/src/components/input/FormInput.vue b/src/components/input/FormInput.vue
index 0965533..2be1c33 100644
--- a/src/components/input/FormInput.vue
+++ b/src/components/input/FormInput.vue
@@ -52,14 +52,14 @@ const prop = defineProps({
},
});
-const emits = defineEmits(['inputVal'])
+const emits = defineEmits(['update:data'])
const updateInput = function (event) {
//Type Number 일때 maxlength 적용 안됨 방지
if (event.target.value.length > prop.maxlength) {
event.target.value = event.target.value.slice(0, prop.maxlength);
}
- emits('inputVal', event.target.value);
+ emits('update:data', event.target.value);
};
diff --git a/src/components/input/FormSelect.vue b/src/components/input/FormSelect.vue
index 95635fe..56a314e 100644
--- a/src/components/input/FormSelect.vue
+++ b/src/components/input/FormSelect.vue
@@ -43,14 +43,13 @@ const prop = defineProps({
},
});
-const emit = defineEmits(['selectVal'])
+const emit = defineEmits(['update:data'])
const selectData = ref(prop.value);
watchEffect(() => {
- emit('selectVal',selectData);
+ emit('update:data',selectData);
})
-