feat: tag items depending on region and gold state when bought
This commit is contained in:
@@ -7,6 +7,7 @@ interface Props {
|
||||
showPickrate?: boolean
|
||||
pickrate?: number
|
||||
class?: string
|
||||
tags?: ItemTag[]
|
||||
}
|
||||
|
||||
// Expose the icon element for external use (e.g., arrow drawing)
|
||||
@@ -20,7 +21,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
size: 48,
|
||||
showPickrate: false,
|
||||
pickrate: 0,
|
||||
class: ''
|
||||
class: '',
|
||||
tags: () => []
|
||||
})
|
||||
|
||||
// Tooltip state - encapsulated in this component
|
||||
@@ -100,6 +102,7 @@ const itemIconPath = computed(() => CDRAGON_BASE + mapPath(props.item.iconPath))
|
||||
:item="tooltipState.item"
|
||||
:x="tooltipState.x"
|
||||
:y="tooltipState.y"
|
||||
:tags="tags"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user