diff --git a/src/components/customUI/FileSystemCollapse.vue b/src/components/customUI/FileSystemCollapse.vue index 7b058b0..ae41078 100644 --- a/src/components/customUI/FileSystemCollapse.vue +++ b/src/components/customUI/FileSystemCollapse.vue @@ -64,10 +64,11 @@ watch( twMerge( 'flex-col text-xl', cls, - openChildren.includes(dataParentKey) || open ? 'flex' : 'hidden' + openChildren.includes(d.key) || open ? 'flex' : 'hidden' ) " v-for="d in data" + :key="d.key" :data-parent="d.key" :open="open" > diff --git a/src/components/customUI/Input.vue b/src/components/customUI/Input.vue index 5930c2a..bbaf4c5 100644 --- a/src/components/customUI/Input.vue +++ b/src/components/customUI/Input.vue @@ -9,7 +9,7 @@ const props = defineProps({ type: String, default: "", }, - value: String, + value: Object, isTopLabelExist: { type: Boolean, default: true, diff --git a/src/components/customUI/InputNumber.vue b/src/components/customUI/InputNumber.vue index 4bc9ea4..39cf804 100644 --- a/src/components/customUI/InputNumber.vue +++ b/src/components/customUI/InputNumber.vue @@ -9,7 +9,7 @@ const props = defineProps({ type: String, default: "", }, - value: String, + value: Object, isTopLabelExist: { type: Boolean, default: true, diff --git a/src/components/customUI/Modal.vue b/src/components/customUI/Modal.vue index 7e7e77a..ed875ab 100644 --- a/src/components/customUI/Modal.vue +++ b/src/components/customUI/Modal.vue @@ -51,7 +51,7 @@ onMounted(() => { : 'focus-visible:outline-none backdrop:bg-transparent', )" :style="modalStyle" v-draggable="draggable">
diff --git a/src/components/customUI/RadioGroup.vue b/src/components/customUI/RadioGroup.vue index f0ed74a..1e949af 100644 --- a/src/components/customUI/RadioGroup.vue +++ b/src/components/customUI/RadioGroup.vue @@ -4,7 +4,7 @@ import { twMerge } from "tailwind-merge"; const props = defineProps({ name: String, - value: String, + value: Object, items: Array, isLabelExist: { type: Boolean, diff --git a/src/components/customUI/SearchSelect.vue b/src/components/customUI/SearchSelect.vue index ae493eb..17fa2ac 100644 --- a/src/components/customUI/SearchSelect.vue +++ b/src/components/customUI/SearchSelect.vue @@ -18,7 +18,7 @@ const props = defineProps({ Attribute: String, onChange: Function, selectClass: String, - value: String || Number, + value: Object, isTopLabelExist: { type: Boolean, default: true, diff --git a/src/components/customUI/Select.vue b/src/components/customUI/Select.vue index 41166bc..1396843 100644 --- a/src/components/customUI/Select.vue +++ b/src/components/customUI/Select.vue @@ -18,7 +18,7 @@ const props = defineProps({ Attribute: String, onChange: Function, selectClass: String, - value: String || Number, + value: Object, isTopLabelExist: { type: Boolean, default: true, @@ -70,9 +70,7 @@ const props = defineProps({ :class="twMerge(disabled ? `text-white` : 'text-dark')" :value="option.value || option.key || option" > - {{ option[Attribute] || option }} -
diff --git a/src/components/customUI/Textarea.vue b/src/components/customUI/Textarea.vue index e14f010..02f6c0c 100644 --- a/src/components/customUI/Textarea.vue +++ b/src/components/customUI/Textarea.vue @@ -3,7 +3,7 @@ import { defineProps } from "vue"; const props = defineProps({ name: String, - value: String, + value: Object, placeholder: String, }); diff --git a/src/components/navbar/Navbar.vue b/src/components/navbar/Navbar.vue index 480984f..6610ac3 100644 --- a/src/components/navbar/Navbar.vue +++ b/src/components/navbar/Navbar.vue @@ -1,5 +1,6 @@