phongdt:add id component

This commit is contained in:
Duong Truong Phong
2024-07-16 11:19:46 +07:00
parent 5a041acd54
commit 5f72a107ce
9 changed files with 18 additions and 7 deletions
@@ -10,6 +10,7 @@ const _props = defineProps<{
layout?: string;
label?: any;
content?: any;
component?: any;
}>();
const SETTING_OPTIONS = {
@@ -46,7 +47,7 @@ const mapActivesToItems = (index: number) => {
</script>
<template>
<div class="collection-container border-custom overflow-hidden" :class="[LAYOUT_PARSE['div.collection-container_Class'], LAYOUT_PARSE['collection_Class']]" :style="LAYOUT_PARSE['div.collection-container']">
<div :id="`cpn_${_props.component.id}`" class="collection-container border-custom overflow-hidden" :class="[LAYOUT_PARSE['div.collection-container_Class'], LAYOUT_PARSE['collection_Class']]" :style="LAYOUT_PARSE['div.collection-container']">
<DynamicComponent
v-for="(component, index) in _dataResult"
:key="index"