Files
2026-03-09 20:51:58 +03:30

25 lines
861 B
JavaScript

import { defineComponent, ref, mergeProps, useSSRContext } from 'vue';
import { ssrRenderAttrs } from 'vue/server-renderer';
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "scroll",
__ssrInlineRender: true,
setup(__props) {
const scrollTop = ref(0);
return (_ctx, _push, _parent, _attrs) => {
_push(`<button${ssrRenderAttrs(mergeProps({
class: ["scroll-top", { open: scrollTop.value > 300 }]
}, _attrs))}><i class="fas fa-angle-up"></i></button>`);
};
}
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
const ssrContext = useSSRContext();
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("layouts/scroll.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export { _sfc_main as default };
//# sourceMappingURL=scroll-Bnjo9Y-U.mjs.map