tk-eui-plus
Version:
48 lines (47 loc) • 1.03 kB
JavaScript
import { defineComponent as f, useSlots as i, resolveComponent as a, openBlock as l, createBlock as r, withCtx as s, unref as d, renderSlot as u, createCommentVNode as p } from "vue";
const c = /* @__PURE__ */ f({
__name: "index",
props: {
offset: {
type: Number,
default: 0
},
position: {
type: String,
default: "top"
},
target: {
type: String,
default: ""
},
zIndex: {
type: Number,
default: 100
}
},
setup(e) {
let t = i();
return (o, m) => {
const n = a("el-affix");
return l(), r(n, {
offset: e.offset,
position: e.position,
target: e.target,
"z-index": e.zIndex
}, {
default: s(() => [
d(t).default ? u(o.$slots, "default", { key: 0 }) : p("v-if", !0)
]),
_: 3
/* FORWARDED */
}, 8, ["offset", "position", "target", "z-index"]);
};
}
}), g = {
install(e) {
e.component("tkAffix", c);
}
};
export {
g as default
};