Files
dsProject/dsBase/WebRoot/html/cdn/es/components/affix/src/affix.mjs
2025-08-14 15:45:08 +08:00

29 lines
613 B
JavaScript

import { buildProps, definePropType } from '../../../utils/props.mjs';
const affixProps = buildProps({
zIndex: {
type: definePropType([Number, String]),
default: 100
},
target: {
type: String,
default: ""
},
offset: {
type: Number,
default: 0
},
position: {
type: String,
values: ["top", "bottom"],
default: "top"
}
});
const affixEmits = {
scroll: ({ scrollTop, fixed }) => typeof scrollTop === "number" && typeof fixed === "boolean",
change: (fixed) => typeof fixed === "boolean"
};
export { affixEmits, affixProps };
//# sourceMappingURL=affix.mjs.map