Skip to content

Commit 24062c7

Browse files
AK47-dadadagitee-org
authored andcommitted
update src/components/Descriptions/src/Descriptions.vue.
字段映射的功能点添加,已测 Signed-off-by: AKING <[email protected]>
1 parent 948ef08 commit 24062c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Descriptions/src/Descriptions.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ const toggleClick = () => {
129129
<slot v-else-if="item.dictType">
130130
<DictTag :type="item.dictType" :value="data[item.field] + ''" />
131131
</slot>
132-
<slot v-else :name="item.field" :row="data">{{ data[item.field] }}</slot>
132+
<slot v-else :name="item.field" :row="data">
133+
{{
134+
item.mappedField ? data[item.mappedField] : data[item.field]
135+
}}
136+
</slot>
133137
</template>
134138
</ElDescriptionsItem>
135139
</ElDescriptions>

0 commit comments

Comments
 (0)