inetsoft-login
v0.0.3
Published
<p align="center">智网登录 UI</p>
Readme
快速开始
安装
npm install inetsoft-login --save-dev引入
import { createApp } from "vue";
import App from "./App.vue";
import InetsoftLogin from "inetsoft-login";
import "inetsoft-login/lib/style.css";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
createApp(App).use(InetsoftLogin).use(ElementPlus).mount("#app");使用
在项目登录页面使用组件
<InetsoftLogin
:bgImg=""
:logoImg=""
:logoTitle="''"
:logoPosition="{ top: 30 }"
:logoHeight="40"
:formTitle="''"
:formPosition="{ top: '50%' }"
:formWidth="360"
@login="">
</InetsoftLogin>API
属性 | 属性 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | bgImg | 背景图 | string | - | | logoImg | 登录页 logo | string | - | | logoTitle | 登录页 logo 标题 | string | - | | logoPosition | 登录页 logo 位置 | object | - | | logoHeight | 登录页 logo 高度 | number | - | | formTitle | 登录表单标题 | string | - | | formPosition | 登录表单位置 | object | - | | formWidth | 登录表单宽度 | number | - |
事件 | 事件 | 说明 | 类型 | 参数 | | --- | --- | --- | --- | | login | 登录事件 | function | {username:string, password:string} |
License
Day.js is licensed under a MIT License.
