UNPKG

uv-ui

Version:

基于vue3的移动端组件库

26 lines (25 loc) 718 B
import { ref as s, reactive as o, openBlock as n, createElementBlock as a, normalizeStyle as m, renderSlot as l } from "vue"; import { useParent as i } from "../../hooks/useContext.js"; import "../../hooks/useCountDown.js"; import "./swipe-item.vue_vue_type_style_index_0_lang.js"; const p = { name: "UvSwipeItem" }, v = /* @__PURE__ */ Object.assign(p, { setup(c) { const e = s(null), t = o({ $el: e, transform: 0 }); return i("swipe", t), (r, f) => (n(), a("div", { class: "uv-swipe-item", style: m({ transform: `translateX(${t.transform}px)` }), ref_key: "swipeItemRef", ref: e }, [ l(r.$slots, "default") ], 4)); } }); export { v as default };