!372 update src/components/Descriptions/src/Descriptions.vue.

Merge pull request !372 from AKING/N/A
pull/371/MERGE
芋道源码 2024-02-17 02:19:34 +00:00 committed by Gitee
commit 2a1e6518e2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 5 additions and 1 deletions

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>