scrollbar.mjs 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import '../../../utils/index.mjs';
  2. import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
  3. import { isNumber } from '@vueuse/core';
  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. });
  44. const scrollbarEmits = {
  45. scroll: ({
  46. scrollTop,
  47. scrollLeft
  48. }) => [scrollTop, scrollLeft].every(isNumber)
  49. };
  50. export { scrollbarEmits, scrollbarProps };
  51. //# sourceMappingURL=scrollbar.mjs.map