review:description 组件的实现

This commit is contained in:
YunaiV
2025-10-26 20:47:24 +08:00
parent e139481973
commit b1479c34c5
2 changed files with 3 additions and 0 deletions

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;
}