0.3.7 • Published 2 years ago

edu-common-modules v0.3.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

edu-common-modules

使用

// 启动
yarn dev (node版本建议用14.18.0)

// 打包

yarn build (node版本建议)


// 安装
yarn add -D edu-common-modules --registry=https://fe-private-npm.xylink.com/

// 引入
import CommonLogin from "edu-common-modules"

<CommonLogin
      platformInfo={{ platformPreviewData: isPreview.current, ...userStore.platformInfo }}
      getloginmsg={getloginmsg}
      iAuthLogin={iAuthLogin}
      ref={loginRef}
      fetchImage={fetchImage}
      imageValidate={imageValidate}
      verificationCode={verificationCode}
      backup={backup}
      updatePassword={updatePassword}
      login={login}
      isManage
    />

参数

参数类型默认值说明是否必传
platformInfoobject平台信息yes
getloginmsg() => void'en/edu/manage/getloginmsg'接口)yes
iAuthLogin(data) => {}iauth 登录yes
fetchImage() => {}获取图片信息的接口yes
imageValidate(data) => {}资验证图片的接口yes
verificationCode(data) => {}短信验证yes
login(data) => {}登录接口符yes
backup() => void返回址yes
updatePassword(data: any, cb: ()) => void更新密码接口yes
isManagebooleanfalse是否是教育后台
onRegist(data: any, cb: ()) => void点击学员注册按钮回调
needRegistbooleanfalse是否需要学员注册功能
0.3.7

2 years ago

0.3.6

2 years ago

0.3.4

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.10

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.22

2 years ago

0.0.20

2 years ago

0.1.19

2 years ago

0.0.17

2 years ago

0.1.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago