UNPKG

element-plus

Version:

A Component Library for Vue3.0

21 lines (18 loc) 397 B
import { h } from 'vue' import { TableColumnCtx } from './table.type' export function hGutter() { return h('col', { name: 'gutter', }) } export function hColgroup(columns: TableColumnCtx[], hasGutter = false) { return h('colgroup', {}, [ ...columns.map(column => h('col', { name: column.id, key: column.id, }), ), hasGutter && hGutter(), ]) }