UNPKG

birdpaper-ui

Version:

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

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