fix: eslint error
parent
51e03f3edd
commit
47e5df9103
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue