You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
802 B
32 lines
802 B
import '../../../utils/index.mjs';
|
|
import '../../../constants/index.mjs';
|
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
import { isNumber, isBoolean } from '../../../utils/types.mjs';
|
|
import { CHANGE_EVENT } from '../../../constants/event.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 }) => isNumber(scrollTop) && isBoolean(fixed),
|
|
[CHANGE_EVENT]: (fixed) => isBoolean(fixed)
|
|
};
|
|
|
|
export { affixEmits, affixProps };
|
|
//# sourceMappingURL=affix.mjs.map
|
|
|