28 lines
733 B
Vue
28 lines
733 B
Vue
<script setup lang="ts">
|
|
import type { PageDataResourceGroup } from '#layers/types/api/pageData'
|
|
|
|
const props = defineProps<{
|
|
resourcesData: PageDataResourceGroup[]
|
|
buttonType?: string
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
v-if="props.resourcesData"
|
|
class="flex flex-wrap justify-center gap-3 md:gap-4"
|
|
>
|
|
<AtomsButton
|
|
v-for="button in props.resourcesData"
|
|
:key="button.group_code"
|
|
:button-type="props.buttonType"
|
|
class="size-extra-small md:size-medium"
|
|
:background-color="button.btn_info?.color_code_btn"
|
|
:text-color="button.btn_info?.color_code_txt"
|
|
:disabled="button.btn_info?.disabled"
|
|
>
|
|
{{ button.btn_info?.txt_btn_name }}
|
|
</AtomsButton>
|
|
</div>
|
|
</template>
|