VSlideGroupItem.mjs 791 B

123456789101112131415161718192021222324
  1. // Composables
  2. import { makeGroupItemProps, useGroupItem } from "../../composables/group.mjs"; // Utilities
  3. import { VSlideGroupSymbol } from "./VSlideGroup.mjs";
  4. import { genericComponent } from "../../util/index.mjs"; // Types
  5. export const VSlideGroupItem = genericComponent()({
  6. name: 'VSlideGroupItem',
  7. props: makeGroupItemProps(),
  8. emits: {
  9. 'group:selected': val => true
  10. },
  11. setup(props, _ref) {
  12. let {
  13. slots
  14. } = _ref;
  15. const slideGroupItem = useGroupItem(props, VSlideGroupSymbol);
  16. return () => slots.default?.({
  17. isSelected: slideGroupItem.isSelected.value,
  18. select: slideGroupItem.select,
  19. toggle: slideGroupItem.toggle,
  20. selectedClass: slideGroupItem.selectedClass.value
  21. });
  22. }
  23. });
  24. //# sourceMappingURL=VSlideGroupItem.mjs.map