el-plus-powerful-table-ts
Version:
## [DOCS](https://peng-xiao-shuai.github.io/vite-vue-admin-docs/zh-CN/component/powerful-table-doc.html)
2 lines (1 loc) • 895 B
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("../../powerful-table/src/powerful-table-data.js"),n=t.defineComponent({name:"PTIcon",props:{...l.powerfulTableComponentProp,prop:{type:Object,default:()=>({})}},emits:["return-emit","component-emit"],setup(o,{emit:r}){const e=o.prop.data,{REmit:i,event:s}=l.useREmit(r,"iconfont",{row:o.row,index:o.index,props:o.prop});return()=>t.createVNode(t.Fragment,null,[t.createVNode("i",{onClick:c=>{c.stopPropagation(),i("click",{evt:c}),s("click",c)},class:o.row[o.prop.prop]?[o.row[o.prop.prop],(e==null?void 0:e.class)&&(typeof(e==null?void 0:e.class)=="string"?e==null?void 0:e.class:(e==null?void 0:e.class).join(","))]:[""],style:(e==null?void 0:e.style)||{}},null)])}});n.install=o=>{o.component(n.name,n)};const u=n;exports.PTIcon=u;exports.default=n;