@dcodegroup-au/page-builder 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
<p
|
|
19
19
|
:class="{'text-gray-700': selectedItem === item, 'text-gray-400': selectedItem !== item}"
|
|
20
20
|
class="text-sm md:text-md font-normal group-hover:text-gray-700"
|
|
21
|
+
v-html="item.description"
|
|
21
22
|
>
|
|
22
|
-
{{ item.description }}
|
|
23
23
|
</p>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
@@ -69,15 +69,12 @@ const props = defineProps({
|
|
|
69
69
|
const component = ref(props.component);
|
|
70
70
|
const selectedItem = ref(null);
|
|
71
71
|
|
|
72
|
-
// Filter to get only public tabs
|
|
73
72
|
const publicTabs = ref(component.value.data.filter((item) => item.public));
|
|
74
73
|
|
|
75
|
-
// Method to select an item
|
|
76
74
|
const selectItem = (item) => {
|
|
77
75
|
selectedItem.value = item;
|
|
78
76
|
};
|
|
79
77
|
|
|
80
|
-
// Preselect the first public item on component mount
|
|
81
78
|
onMounted(() => {
|
|
82
79
|
if (publicTabs.value.length > 0) {
|
|
83
80
|
selectItem(publicTabs.value[0]);
|