ef3e3f514008c003fe37b6aa71b3943c1b53cae037ee7f7d785d02f33ee2f15f2c4df35c46e69e58df1c348129cde1500f6db5663a3459de3a28b9f03a6dc9 1.4 KB

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