docs(carousel): add draggable="false" to image elements (#1297)

This commit is contained in:
Jake
2024-01-31 20:04:19 +08:00
committed by GitHub
parent 5b008b789b
commit 89e15b90b1
13 changed files with 13 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ const items = [{
<UCarousel :items="items" :ui="{ item: 'w-full' }">
<template #default="{ item, index }">
<div class="text-center mx-auto">
<img :src="item.avatar.src" :alt="item.name" class="rounded-full w-48 h-48 mb-2">
<img :src="item.avatar.src" :alt="item.name" class="rounded-full w-48 h-48 mb-2" draggable="false">
<p class="font-semibold">
{{ index + 1 }}. {{ item.name }}