UNPKG

mine-h5-ui

Version:

一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍

28 lines (27 loc) 781 B
import { defineComponent as n, useSlots as a, watch as r, createElementBlock as l, openBlock as i, normalizeClass as c, normalizeStyle as p } from "vue"; import { useHandler as m } from "./hooks.js"; /*! * mine-h5-ui v2.16.0 * Copyright (c) 2025 biaov * @license MIT */ const z = /* @__PURE__ */ n({ name: "MeSpace", __name: "index", props: { size: { default: "10px" }, direction: { default: "horizontal" } }, setup(d) { const t = a(), { spaceRef: o, onRender: s } = m(); return r(t.default, s, { immediate: !0 }), (e, f) => (i(), l("div", { ref_key: "spaceRef", ref: o, style: p(`--size:${e.size};`), class: c(["me-space", e.direction]) }, null, 6)); } }); export { z as default };