1.0.3 • Published 2 years ago

nin_vue2_login v1.0.3

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

Installing

$ npm install nin_vue2_login

Example

Usage in vue2.x:

<template>
  <el-button @click="loginVisible = true">login</el-button>
  <Login @close="handleClose" :visible="loginVisible" :isClearForm="true" @submit="handleSubmit"></Login>
</template>

<script>
import Login from "nin_vue2_login";
export default {
  components: {
    Login
  },
  data(){
    return{
      loginVisible:false
    }
  }
  methods: {
    handleClose(){
      loginVisible.value = false;
    }
    handleSubmit(){
      //todo
    }
  }
}
</script>

<style scoped>
</style>

Options

PropertyDescriptiontypedefault
isClearForm切换tabs,是否清除表单内容Booleanfalse
elDialogWidth弹框宽度String460px
firstLable第一个lable文字String学生登录
secondLable第二个lable文字String教师登录
hiddenFirstTab隐藏第一个tabBooleanfalse
hiddenSecondTab隐藏第二个tabBooleanfalse