UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

35 lines (34 loc) 947 B
import { defineComponent as y, createElementBlock as v, openBlock as w, Fragment as z, createVNode as o, unref as e } from "vue"; import t from "./thumb.vue.mjs"; import { useBar as d } from "./hook/useBar.mjs"; const k = /* @__PURE__ */ y({ __name: "bar", props: { minSize: {}, always: { type: Boolean } }, setup(a, { expose: r }) { const i = a, { moveX: l, moveY: s, ratioX: n, ratioY: m, sizeWidth: c, sizeHeight: p, handleScroll: u, update: f } = d(i); return r({ handleScroll: u, update: f }), (h, B) => (w(), v(z, null, [ o(t, { move: e(l), ratio: e(n), size: e(c), always: a.always }, null, 8, ["move", "ratio", "size", "always"]), o(t, { move: e(s), ratio: e(m), size: e(p), vertical: "", always: a.always }, null, 8, ["move", "ratio", "size", "always"]) ], 64)); } }); export { k as default };