UNPKG

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)

44 lines (43 loc) 1.16 kB
import { defineComponent as p, createVNode as c, Fragment as s } from "vue"; import { powerfulTableComponentProp as m, useREmit as u } from "../../powerful-table/src/powerful-table-data.mjs"; const e = /* @__PURE__ */ p({ name: "PTIcon", props: { ...m, prop: { type: Object, default: () => ({}) } }, emits: ["return-emit", "component-emit"], setup(n, { emit: r }) { const o = n.prop.data, { REmit: l, event: i } = u(r, "iconfont", { row: n.row, index: n.index, props: n.prop }); return () => c(s, null, [c("i", { onClick: (t) => { t.stopPropagation(), l("click", { evt: t }), i("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