You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 KiB

3 months ago
  1. import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
  2. import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
  3. import { isNumber } from '../../../utils/types.mjs';
  4. const scrollbarProps = buildProps({
  5. height: {
  6. type: [String, Number],
  7. default: ""
  8. },
  9. maxHeight: {
  10. type: [String, Number],
  11. default: ""
  12. },
  13. native: {
  14. type: Boolean,
  15. default: false
  16. },
  17. wrapStyle: {
  18. type: definePropType([String, Object, Array]),
  19. default: ""
  20. },
  21. wrapClass: {
  22. type: [String, Array],
  23. default: ""
  24. },
  25. viewClass: {
  26. type: [String, Array],
  27. default: ""
  28. },
  29. viewStyle: {
  30. type: [String, Array, Object],
  31. default: ""
  32. },
  33. noresize: Boolean,
  34. tag: {
  35. type: String,
  36. default: "div"
  37. },
  38. always: Boolean,
  39. minSize: {
  40. type: Number,
  41. default: 20
  42. },
  43. tabindex: {
  44. type: [String, Number],
  45. default: void 0
  46. },
  47. id: String,
  48. role: String,
  49. ...useAriaProps(["ariaLabel", "ariaOrientation"])
  50. });
  51. const scrollbarEmits = {
  52. scroll: ({
  53. scrollTop,
  54. scrollLeft
  55. }) => [scrollTop, scrollLeft].every(isNumber)
  56. };
  57. export { scrollbarEmits, scrollbarProps };
  58. //# sourceMappingURL=scrollbar.mjs.map