UNPKG

yanzhen-design-vue

Version:

34 lines (33 loc) 1.5 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); const vue = require("vue"); const vxeTable = require("vxe-table"); const useVxeTableColumn = require("./use-vxe-table-column.cjs"); const vxeTableColumn = require("./vxe-table-column.cjs"); const _sfc_main = /* @__PURE__ */ vue.defineComponent({ ...{ name: vxeTableColumn.vxeTableColumnName }, __name: "vxe-table-column", props: vxeTableColumn.vxeTableColumnProps, emits: vxeTableColumn.vxeTableColumnEmits, setup(__props, { emit: __emit }) { const props = __props; const emit = __emit; const { ctx: { type, $slots, vxeColumnProps }, methods: { isHiddenByRow } } = useVxeTableColumn.useVxeTableColumn(props, emit); return (_ctx, _cache) => { return vue.openBlock(), vue.createBlock(vue.unref(vxeTable.Column), vue.mergeProps({ type: vue.unref(type) }, vue.unref(vxeColumnProps), { style: { "height": "100%" } }), vue.createSlots({ _: 2 }, [ vue.renderList(Object.keys(vue.unref($slots)), (name2) => { return { name: name2, fn: vue.withCtx((record) => [ vue.unref(isHiddenByRow)(record, name2) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [], 64)) : vue.renderSlot(_ctx.$slots, name2, vue.normalizeProps(vue.mergeProps({ key: 1 }, record))) ]) }; }) ]), 1040, ["type"]); }; } }); exports.default = _sfc_main;