update src/components/Descriptions/src/Descriptions.vue.

字段映射的功能点添加,已测

Signed-off-by: AKING <2734339436@qq.com>
(cherry picked from commit 24062c7a3b)
This commit is contained in:
AKING 2024-01-22 01:41:37 +00:00 committed by shizhong
parent 5dc7f8b595
commit a81b4f6b06

View File

@ -129,7 +129,11 @@ const toggleClick = () => {
<slot v-else-if="item.dictType">
<DictTag :type="item.dictType" :value="data[item.field] + ''" />
</slot>
<slot v-else :name="item.field" :row="data">{{ data[item.field] }}</slot>
<slot v-else :name="item.field" :row="data">
{{
item.mappedField ? data[item.mappedField] : data[item.field]
}}
</slot>
</template>
</ElDescriptionsItem>
</ElDescriptions>