asp-smart-ui-plus-test
Version:
A Component Library for Vue 3
55 lines (50 loc) • 1.98 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var tableColumn = require('./table-column.js');
var pluginVue_exportHelper = require('../../../../../_virtual/plugin-vue_export-helper.js');
const _sfc_main = vue.defineComponent({
__name: "table-column-parent",
props: {
col: {
type: Object,
default: () => ({})
}
},
emits: ["input"],
setup(__props, { emit }) {
const input = ({ index, row }) => {
emit("input", {
index,
row
});
};
return (_ctx, _cache) => {
const _component_table_column_parent = vue.resolveComponent("table-column-parent", true);
const _component_asp_table_column = vue.resolveComponent("asp-table-column");
return vue.openBlock(), vue.createBlock(_component_asp_table_column, {
label: __props.col.label,
"render-header": __props.col.renderHeader
}, {
default: vue.withCtx(() => [
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.col.children, (item, i) => {
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
__props.col.isParent ? (vue.openBlock(), vue.createBlock(_component_table_column_parent, {
key: "parent" + i,
col: item,
onInput: input
}, null, 8, ["col"])) : (vue.openBlock(), vue.createBlock(tableColumn["default"], {
key: "children" + i,
col: item,
onInput: input
}, null, 8, ["col"]))
], 64);
}), 256))
]),
_: 1
}, 8, ["label", "render-header"]);
};
}
});
var tableColumnParent = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "E:\\code\\SmartUIPlus\\asp-packages\\components\\pc\\advanced\\table-list\\src\\table-column-parent.vue"]]);
exports["default"] = tableColumnParent;