sci-pro
Version:
31 lines (30 loc) • 1.1 kB
JavaScript
import { defineComponent as p, ref as g, onMounted as v, getCurrentInstance as _, computed as w, inject as h, openBlock as y, createElementBlock as C, normalizeStyle as x, renderSlot as B } from "vue";
import "./style/index.css";
const S = p({ name: "sci-row" }), z = /* @__PURE__ */ p({
...S,
props: {
row: {}
},
setup(d) {
let o = g(!1);
const f = d;
v(() => {
var r, l, n, s, a, c, u;
const e = _(), t = (s = (n = (l = (r = e == null ? void 0 : e.parent) == null ? void 0 : r.vnode) == null ? void 0 : l.el) == null ? void 0 : n.children) == null ? void 0 : s.length;
o.value = (e == null ? void 0 : e.vnode.el) === ((u = (c = (a = e == null ? void 0 : e.parent) == null ? void 0 : a.vnode) == null ? void 0 : c.el) == null ? void 0 : u.children[t - 1]);
});
const m = w(() => ({
flex: f.row,
marginBottom: o.value ? "0px" : i.gap
})), i = h("layoutConfig", {});
return (e, t) => (y(), C("div", {
class: "sci-row",
style: x(m.value)
}, [
B(e.$slots, "default")
], 4));
}
});
export {
z as default
};