zhangyong
2023-08-22 1353e87cb21a4032d585d7404bae9042f2ebcf08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { getCurrentInstance, computed } from 'vue';
import { memoize } from 'lodash-unified';
import memoOne from 'memoize-one';
 
const useCache = () => {
  const vm = getCurrentInstance();
  const props = vm.proxy.$props;
  return computed(() => {
    const _getItemStyleCache = (_, __, ___) => ({});
    return props.perfMode ? memoize(_getItemStyleCache) : memoOne(_getItemStyleCache);
  });
};
 
export { useCache };
//# sourceMappingURL=use-cache.mjs.map