fix: eslint error

pull/2936/head
Amour1688 2020-10-02 22:28:41 +08:00
parent 51e03f3edd
commit 47e5df9103
4 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ const Comment = (
actions && actions.length ? ( actions && actions.length ? (
<ul class={`${prefixCls}-actions`}> <ul class={`${prefixCls}-actions`}>
{actions.map((action, index) => ( {actions.map((action, index) => (
<li key={`action-${index}`}>{action}</li> // eslint-disable-line react/no-array-index-key <li key={`action-${index}`}>{action}</li>
))} ))}
</ul> </ul>
) : null; ) : null;

View File

@ -18,7 +18,7 @@ export default function useFrameWheel(
let nextFrame: number | null | undefined = null; let nextFrame: number | null | undefined = null;
// Firefox patch // Firefox patch
let wheelValue: null = null; let wheelValue = null;
let isMouseScroll = false; let isMouseScroll = false;
// Scroll status sync // Scroll status sync

View File

@ -10,7 +10,7 @@ export default function useHeights<T>(
): [(item: T, instance: HTMLElement) => void, () => void, CacheMap, Ref<number>] { ): [(item: T, instance: HTMLElement) => void, () => void, CacheMap, Ref<number>] {
const instance = new Map<VNodeProps['key'], HTMLElement>(); const instance = new Map<VNodeProps['key'], HTMLElement>();
const heights = reactive<CacheMap>({}); const heights = reactive<CacheMap>({});
let updatedMark = ref(0); const updatedMark = ref(0);
let heightUpdateId = 0; let heightUpdateId = 0;
function collectHeight() { function collectHeight() {
heightUpdateId += 1; heightUpdateId += 1;