vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.6.1] VCarouselItem and content-class

Open thany opened this issue 1 year ago • 0 comments

Environment

Vuetify Version: 3.6.1 Vue Version: 3.4.26 Browsers: Firefox 125.0 OS: Windows 10

Steps to reproduce

Try putting a content-class as object/array on a v-carousel-item.

Expected Behavior

The typing for content-class match the actual implementation.

Actual Behavior

While the content-class does correctly carry the class over to the v-responsive__content, the typings require it to be a string. So ignoring the typescript error, it does actually work, which is weird.

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

If the current typing string is genuinely correct, we're going to need a way to serialise an object/array of classes into the string that it wants. I have not found an exported function in Vue that provides that functionality. Besides, it'd be good for consistency if all "class-ish" props have the same typings.

thany avatar May 01 '24 12:05 thany