mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
更新骨架屏自定义模板时的key值 (#2944)
* 更新骨架屏自定义模板时的key值 之前骨架屏自定义模板时key都是0,因为没有传入模板作用域。现在把count循环的i传入作用域,解决该问题 * fix warning fix the linter issue before this merged
This commit is contained in:
parent
f55c320354
commit
8287f90521
@ -2,7 +2,7 @@
|
||||
<template v-if="uiLoading">
|
||||
<div :class="['el-skeleton', animated ? 'is-animated' : '', ]" v-bind="$attrs">
|
||||
<template v-for="i in count" :key="i">
|
||||
<slot v-if="loading" name="template">
|
||||
<slot v-if="loading" :key="i" name="template">
|
||||
<el-skeleton-item class="is-first" variant="p" />
|
||||
<el-skeleton-item
|
||||
v-for="item in rows"
|
||||
|
Loading…
Reference in New Issue
Block a user