Skip to content
On this page

一、介绍

产品工具类库是依赖于 lodash-es、js-base64 而建立起来的工具库,lodash 的所有方法都可以直接使用,同时产品也基于基础的方法封装 composePromise、createBase64、createPromise、defineListenerProp、download、qMittPlugin、returnPromiseTypeResult、theme、waterMark、withInstall 等方法供产品和项目方便使用,功能丰富且统一规范,更加模块化、简洁化,易学易用,互联互通

二、开始使用

建议使用产品提供的版本

  1. 引入

    bash
    import qqtUtils from '@qqt-product/utils'
  2. 在方法中使用

    bash
    qqtUtils.isObject(参数)
    qqtUtils.cloneDeep(参数)

    或者

    bash
    const { createPromise, uniqueId } = qqtUtils