review:description 组件的实现
This commit is contained in:
@@ -133,6 +133,7 @@ export default defineComponent({
|
|||||||
>
|
>
|
||||||
{() => {
|
{() => {
|
||||||
if (item.slot) {
|
if (item.slot) {
|
||||||
|
// TODO @xingyu:这里要 inline 掉么?
|
||||||
const slotContent = getSlot(slots, item.slot, data);
|
const slotContent = getSlot(slots, item.slot, data);
|
||||||
return slotContent;
|
return slotContent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { get, getNestedValue, isFunction } from '@vben/utils';
|
|||||||
import { ElDescriptions, ElDescriptionsItem } from 'element-plus';
|
import { ElDescriptions, ElDescriptionsItem } from 'element-plus';
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
|
// TODO @星语:bordered 不生效;之前好像是 border
|
||||||
bordered: { default: true, type: Boolean },
|
bordered: { default: true, type: Boolean },
|
||||||
column: {
|
column: {
|
||||||
default: () => {
|
default: () => {
|
||||||
@@ -127,6 +128,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
default: () => {
|
default: () => {
|
||||||
if (item.slot) {
|
if (item.slot) {
|
||||||
|
// TODO @xingyu:这里要 inline 掉么?
|
||||||
const slotContent = getSlot(slots, item.slot, data);
|
const slotContent = getSlot(slots, item.slot, data);
|
||||||
return slotContent;
|
return slotContent;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user