3.1.4 • Published 11 months ago

@loview/utils v3.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

title: utils-工具函数库 group: path: / nav: title:

path: /components

@loview/utils

Install

Using npm:

$ npm install --save  @loview/utils --registry http://10.4.5.76:5000/

or using yarn:

$ yarn add @loview/utils --registry http://10.4.5.76:5000/

nanoid

用来生成唯一不重复 ID

import { nanoid } from '@loview/utils';
import { Button } from 'antd';
import React from 'react';
export default () => {
  return (
    <Button
      onClick={() => {
        console.log(nanoid());
      }}
    >
      点我生成
    </Button>
  );
};