在Vue 3项目中使用lodash-es(Lodash的ES模块版本)可以通过以下步骤实现: 1. 安装lodash-es 首先,你需要通过npm或yarn安装lodash-es。 bash npm install lodash-es --save 或者 bash yarn add lodash-es 2. 导入并使用Lodash函数 安装完成后,你可以在组件中通过ES6的导入语
import { throttle } from 'lodash-es' import { on, off } from '@use-utils/element' import type { ThrottleBindingOptions } from './type' import type { AnyFC } from '@/types/modules/utils' import type { DebouncedFunc } from 'lodash-es' import type { CustomDirectiveFC } from '@/dir...