yuang-framework-ui-pc
Version:
yuang-framework-ui-pc Library
30 lines (29 loc) • 1.06 kB
JavaScript
import { defineComponent, createElementBlock, openBlock, renderSlot, createCommentVNode, normalizeProps, mergeProps } from "vue";
const _sfc_main = defineComponent({
name: "ExpandRow",
props: {
/** 列配置(原始配置) */
column: Object,
/** 行索引 */
rowIndex: Number,
/** 行数据(原始数据) */
rowData: Object
}
});
const _export_sfc = (sfc, props) => {
const target = sfc.__vccOpts || sfc;
for (const [key, val] of props) {
target[key] = val;
}
return target;
};
const _hoisted_1 = { class: "el-table-v2__row-cell ele-table-td" };
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("div", _hoisted_1, [
_ctx.column && _ctx.column.slot ? renderSlot(_ctx.$slots, _ctx.column.slot, normalizeProps(mergeProps({ key: 0 }, { row: _ctx.rowData, column: _ctx.column, $index: _ctx.rowIndex }))) : createCommentVNode("", true)
]);
}
const expandRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
expandRow as default
};