UNPKG

birdpaper-ui

Version:

一个通用的 vue3 UI组件库。A common vue3 UI component library.

29 lines (28 loc) 842 B
import { defineComponent, openBlock, createElementBlock, Fragment, renderList } from "vue"; const _hoisted_1 = ["name", "width"]; const __default__ = defineComponent({ name: "TableColumns" }); const _sfc_main = /* @__PURE__ */ defineComponent({ ...__default__, props: { // TODO cols: { type: Array, default: () => [] } }, setup(__props) { return (_ctx, _cache) => { return openBlock(), createElementBlock("colgroup", null, [ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.cols, (item, index) => { return openBlock(), createElementBlock("col", { key: `bp-table-tr-${index}`, name: `bp_table_tr_${index}`, width: item.width }, null, 8, _hoisted_1); }), 128)) ]); }; } }); export { _sfc_main as default };