Code Monkey home page Code Monkey logo

seedit-login's Introduction

seedit-login spm version


Install

$ mk install seedit-login --save

说明

该模块只用来做PC端登录弹框
模块依赖jquery,内部没有引用,使用时请自己引入jquery

使用方法

var seeditLogin = require('seedit-login');
var login = new loginBox();
login.on('authSuccess', function() {
    document.location.reload();
}).show();

初始化参数

  • trigger 目标对象
  • width 弹框宽度
  • dialogClass 自定义类名,默认'mk-login-box'
  • title 自定义标题纯文字或html格式,默认'播种网帐号登录'
  • closeTpl 自定义关闭按钮纯文字或html格式,默认'x'

事件机制

  • show 触发弹框显示
  • hide 触发弹框隐藏
  • on 事件绑定,详细如下

on事件说明

  • submitStart 提交开始
  • submitDone 提交结束
  • authSuccess 登录成功
  • authError 登录失败
  • userinfoGotSuccess 用户信息获取成功
  • open 弹框显示后回调
  • close 弹框隐藏后回调

seedit-login's People

Contributors

shaofanchan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.