@ray-js/random-password
v0.0.3
Published
门锁随机密码
Downloads
1
Readme
English | 简体中文
@ray/random-password
Random Password
Installation
$ npm install @ray/random-password
# or
$ yarn add @ray/random-password
Usage
import React from 'react';
import { View } from '@ray-js/components';
import RandomPassword from '@ray/random-password';
import './index.less';
const prefix = 'demo';
const RandomPasswordView = () => {
return (
<View className={`${prefix}-container`}>
<RandomPassword
className={`${prefix}-margin`}
password="234567"
getPassword={psw => console.log(`psw`, psw)}
/>
<RandomPassword
randomText="随机"
digitalBase={6}
randomTextColor="#FF4800"
getPassword={psw => console.log(`psw`, psw)}
/>
</View>
);
};
export default RandomPasswordView;
Quick Start
yarn build # Compile
yarn watch # Real-time compilation
yarn start:tuya # Start the Tuya mini