Commit 24062c7a by AKING Committed by Gitee

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

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

Signed-off-by: AKING <2734339436@qq.com>
parent 948ef085
...@@ -129,7 +129,11 @@ const toggleClick = () => { ...@@ -129,7 +129,11 @@ const toggleClick = () => {
<slot v-else-if="item.dictType"> <slot v-else-if="item.dictType">
<DictTag :type="item.dictType" :value="data[item.field] + ''" /> <DictTag :type="item.dictType" :value="data[item.field] + ''" />
</slot> </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> </template>
</ElDescriptionsItem> </ElDescriptionsItem>
</ElDescriptions> </ElDescriptions>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment