mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 17:37:00 +00:00
refactor(nc-gui): icons logic
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<script lang="ts" setup>
|
||||
interface Props {
|
||||
option: OnboardingOptionType
|
||||
index: number
|
||||
totalOptions: number
|
||||
iconSize?: OnboardingQuestionType['iconSize']
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {})
|
||||
|
||||
const { option, iconSize } = toRefs(props)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-if="option.icons?.length">
|
||||
<AuthOnboardingQuestionOptionIcon
|
||||
v-for="(iconItem, i) of option.icons"
|
||||
:key="i"
|
||||
:icon-item="iconItem"
|
||||
:option-index="index"
|
||||
:total-options="totalOptions"
|
||||
:icon-size="iconSize"
|
||||
/>
|
||||
</template>
|
||||
</template>
|
||||
Reference in New Issue
Block a user