a2e5b8cdc230bade6688effbddf859bbb78eb397eebfd8342387f710f2c039605e4e8e328462dbabd68f985902ac4eeabb3ce8b290f23180756e51600b218a 905 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
  2. import { isString } from '@vue/shared';
  3. import { isUndefined } from '../../../utils/types.mjs';
  4. const anchorProps = buildProps({
  5. container: {
  6. type: definePropType([
  7. String,
  8. Object
  9. ])
  10. },
  11. offset: {
  12. type: Number,
  13. default: 0
  14. },
  15. bound: {
  16. type: Number,
  17. default: 15
  18. },
  19. duration: {
  20. type: Number,
  21. default: 300
  22. },
  23. marker: {
  24. type: Boolean,
  25. default: true
  26. },
  27. type: {
  28. type: definePropType(String),
  29. default: "default"
  30. },
  31. direction: {
  32. type: definePropType(String),
  33. default: "vertical"
  34. },
  35. selectScrollTop: Boolean
  36. });
  37. const anchorEmits = {
  38. change: (href) => isString(href),
  39. click: (e, href) => e instanceof MouseEvent && (isString(href) || isUndefined(href))
  40. };
  41. export { anchorEmits, anchorProps };
  42. //# sourceMappingURL=anchor.mjs.map