review:description 组件的实现

pull/240/head
YunaiV 2025-10-26 20:47:24 +08:00
parent e139481973
commit b1479c34c5
2 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,7 @@ export default defineComponent({
>
{() => {
if (item.slot) {
// TODO @xingyu inline
const slotContent = getSlot(slots, item.slot, data);
return slotContent;
}

View File

@ -10,6 +10,7 @@ import { get, getNestedValue, isFunction } from '@vben/utils';
import { ElDescriptions, ElDescriptionsItem } from 'element-plus';
const props = {
// TODO @bordered border
bordered: { default: true, type: Boolean },
column: {
default: () => {
@ -127,6 +128,7 @@ export default defineComponent({
},
default: () => {
if (item.slot) {
// TODO @xingyu inline
const slotContent = getSlot(slots, item.slot, data);
return slotContent;
}