Files
web-temp/layers/components/widgets/ButtonList.vue

22 lines
564 B
Vue

<script setup lang="ts">
import type { PageDataResourceGroup } from '#layers/types/api/pageData'
const props = defineProps<{
groupsData: PageDataResourceGroup[]
}>()
</script>
<template>
<template v-if="props.groupsData">
<AtomsButton
v-for="button in props.groupsData"
:key="button.group_code"
: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>
</template>
</template>