UNPKG

element-plus

Version:

A Component Library for Vue 3

24 lines (21 loc) 589 B
import { createVNode, mergeProps, isVNode } from 'vue'; import TableGrid from '../table-grid.mjs'; function _isSlot(s) { return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s); } const RightTable = (props, { slots }) => { if (!props.columns.length) return; const { rightTableRef, ...rest } = props; return createVNode(TableGrid, mergeProps({ "ref": rightTableRef }, rest), _isSlot(slots) ? slots : { default: () => [slots] }); }; export { RightTable as default }; //# sourceMappingURL=right-table.mjs.map