!372 update src/components/Descriptions/src/Descriptions.vue.
Merge pull request !372 from AKING/N/A
This commit is contained in:
commit
2a1e6518e2
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user