Commit 63a858b6cbdf7cf8c8b252ec4f38567f84ca1c97

Authored by Aaron
1 parent f8e722bf
Exists in master and in 1 other branch legacy

修复Scheme详情具名插槽

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
packages/scheme/index.vue
... ... @@ -197,7 +197,7 @@
197 197 <slot v-if="$scopedSlots[`view-${key}`] || $slots[`view-${key}`]" :name="`view-${key}`" :slot="key" :model="formModel"></slot>
198 198 </template>
199 199 <!-- 详情项具名插槽 -->
200   - <template v-for="item in _formList">
  200 + <template v-for="item in list">
201 201 <slot v-if="$scopedSlots[`view-item-${item.key}`] || $slots[`view-item-${item.key}`]" :name="`view-item-${item.key}`" :slot="`item-${item.key}`" v-bind="{ ...item, ...slotMethod }" :model="formModel" :row="formModel" :value="formModel[item.key]"></slot>
202 202 <slot v-else-if="$scopedSlots[`render-${item.key}`] || $slots[`render-${item.key}`]" :name="`render-${item.key}`" :slot="`item-${item.key}`" v-bind="{ ...item, ...slotMethod }" :model="formModel" :row="formModel" :value="formModel[item.key]"></slot>
203 203 </template>
... ...