el-plus-powerful-table
Version:
## [DOCS](https://peng-xiao-shuai.github.io/vite-vue-admin-docs/zh-CN/component_directive/component/powerful-table-doc.html)
48 lines (47 loc) • 1.24 kB
JavaScript
import { defineComponent as s, createVNode as c, Fragment as m } from "vue";
import { powerfulTableComponentProp as p, isData as u, useREmit as f } from "../../powerful-table/src/powerful-table-data.mjs";
const e = /* @__PURE__ */ s({
name: "PTIcon",
props: {
...p,
prop: {
type: Object,
default: () => ({})
}
},
emits: ["return-emit", "component-emit"],
setup(n, {
emit: i
}) {
const o = u({
row: n.row,
index: n.index,
props: n.prop
}, n.prop.data), {
REmit: r,
event: l
} = f(i, "iconfont", {
row: n.row,
index: n.index,
props: n.prop
});
return () => c(m, null, [c("i", {
onClick: (t) => {
t.stopPropagation(), r("click", {
evt: t
}), l("click", t);
},
class: n.row[n.prop.prop] ? [n.row[n.prop.prop], (o == null ? void 0 : o.class) && (typeof (o == null ? void 0 : o.class) == "string" ? o == null ? void 0 : o.class : (o == null ? void 0 : o.class).join(","))] : [""],
style: (o == null ? void 0 : o.style) || {}
}, null)]);
}
});
e.install = (n) => {
n.component(e.name, e);
};
const y = e;
export {
y as PTIcon,
e as default
};
//# sourceMappingURL=icon.mjs.map