node_modules/ant-design-vue/lib/vc-table/hooks/useFrame.js
/** Lock frame, when frame pass reset the lock. */
Lock frame, when frame pass reset the lock.
Lock frame when frame pass reset the lock .
function useTimeoutLock(defaultState) {
  var frameRef = (0, _vue.ref)(defaultState || null);
  var timeoutRef = (0, _vue.ref)();
  function cleanUp() {
    clearTimeout(timeoutRef.value);
  }
  function setState(newState) {
    frameRef.value = newState;
    cleanUp();
    timeoutRef.value = setTimeout(function () {
      frameRef.value = null;
      timeoutRef.value = undefined;
    }, 100);
  }
  function getState() {
    return frameRef.value;
  }
  (0, _vue.onBeforeUnmount)(function () {
    cleanUp();
  });
  return [setState, getState];
}
function useTimeoutLock ( defaultState ) { var frameRef = ( 0 , _vue . ref ) ( defaultState || null ) ; var timeoutRef = ( 0 , _vue . ref ) ( ) ; function cleanUp ( ) { clearTimeout ( timeoutRef . value ) ; } function setState ( newState ) { frameRef . value = newState ; cleanUp ( ) ; timeoutRef . value = setTimeout ( function ( ) { frameRef . value = null ; timeoutRef . value = undefined ; } , 100 ) ; } function getState ( ) { return frameRef . value ; } ( 0 , _vue . onBeforeUnmount ) ( function ( ) { cleanUp ( ) ; } ) ; return [ setState , getState ] ; }
Lock frame, when frame pass reset the lock.
Lock frame when frame pass reset the lock .