UNPKG

@cmstops/pro-compo

Version:

[物料平台文档中心](https://arco.design/docs/material/guide)

67 lines (66 loc) 1.89 kB
import { defineComponent, computed, openBlock, createBlock, withCtx, renderSlot } from "vue"; import _sfc_main$1 from "./CustomItem.js"; const _sfc_main = defineComponent({ __name: "index", props: { abttrites: {}, extraAttrs: {}, item: {}, index: {} }, emits: ["cellMouseEnter", "cellMouseLeave", "clickTitle"], setup(__props, { emit: __emit }) { const props = __props; const emit = __emit; const customMeta = computed(() => { return props.extraAttrs.custom || {}; }); const cellMouseEnter = (params) => { emit("cellMouseEnter", params); }; const cellMouseLeave = (params) => { emit("cellMouseLeave", params); }; const clickTitle = (item) => { emit("clickTitle", item); }; return (_ctx, _cache) => { return openBlock(), createBlock(_sfc_main$1, { item: _ctx.item, abttrites: _ctx.abttrites, "thumb-key": customMeta.value.thumbKey, "show-attrs": customMeta.value.showAttrs, onCellMouseEnter: cellMouseEnter, onCellMouseLeave: cellMouseLeave, onClickTitle: clickTitle }, { index: withCtx(() => [ renderSlot(_ctx.$slots, "index", { row: _ctx.item, index: _ctx.index }) ]), tip: withCtx(() => [ renderSlot(_ctx.$slots, "tip", { row: _ctx.item, index: _ctx.index }) ]), batch: withCtx(() => [ renderSlot(_ctx.$slots, "batch", { row: _ctx.item, index: _ctx.index }) ]), option: withCtx(() => [ renderSlot(_ctx.$slots, "option", { row: _ctx.item, index: _ctx.index }) ]), _: 3 }, 8, ["item", "abttrites", "thumb-key", "show-attrs"]); }; } }); export { _sfc_main as default };