@loview/utils
v3.1.4
Published
@loview/utils
Downloads
1
Readme
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>
);
};