978cd9f9237569bad5d66e7630bfd1f0303c2f95a0188748fd169213d700872fcf1f707a0b706542ad3c5fb70cf366912c909f88e340523cbb3363884d6b17 728 B

123456789101112131415161718192021222324252627282930
  1. import { CHANGE_EVENT } from '../../../constants/event.mjs';
  2. import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
  3. import { isNumber, isBoolean } from '../../../utils/types.mjs';
  4. const affixProps = buildProps({
  5. zIndex: {
  6. type: definePropType([Number, String]),
  7. default: 100
  8. },
  9. target: {
  10. type: String,
  11. default: ""
  12. },
  13. offset: {
  14. type: Number,
  15. default: 0
  16. },
  17. position: {
  18. type: String,
  19. values: ["top", "bottom"],
  20. default: "top"
  21. }
  22. });
  23. const affixEmits = {
  24. scroll: ({ scrollTop, fixed }) => isNumber(scrollTop) && isBoolean(fixed),
  25. [CHANGE_EVENT]: (fixed) => isBoolean(fixed)
  26. };
  27. export { affixEmits, affixProps };
  28. //# sourceMappingURL=affix.mjs.map