UNPKG

@pit-front-end/components

Version:

湖南创智艾泰克科技有限公司

37 lines (36 loc) 995 B
import { defineComponent as p, resolveComponent as s, createBlock as o, openBlock as i, withCtx as a, createElementVNode as h, resolveDynamicComponent as u } from "vue"; import { rightMenuEmits as d, rightMenuProps as C } from "./right-menu.js"; const k = /* @__PURE__ */ p({ name: "PitRightMenu", inheritAttrs: !1, __name: "right-menu", props: C, emits: d, setup(r, { emit: c }) { const e = r, t = { handleClick() { c("change"); } }; return (_, n) => { const l = s("el-tooltip"); return i(), o(l, { content: e.content, placement: "top" }, { default: a(() => [ h("span", { onClick: n[0] || (n[0] = //@ts-ignore (...m) => t.handleClick && t.handleClick(...m)) }, [ (i(), o(u(e.icon), { style: { width: "1em", height: "1em", cursor: "pointer" } })) ]) ]), _: 1 }, 8, ["content"]); }; } }); export { k as default };