maucash
maucash中常用组件抽取
1,385
| Install | |
|---|---|
npm install maucash |
|
| Latest Version: | 1.5.4 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Aug 24, 2020 |
| Links: | Repository · npm |
Maintainer: kuangshp
maucash
maucash项目常用组件(基于vue+iview框架)
一、安装及配置
# install dependencies
npm install maucash --save
# main.js中使用插件
import Maucash from 'maucash';
Vue.use(Maucash);
二、登录组件
-
1、示意图
-
2、组件使用方式
<maucash-login /> -
3、关于参数
baseUrl:String不同环境下的url地址imgUrl: String图片的url地址headers:Object请求头isSms:Boolean是否显示短信验证码(线下放款不需要)isLogInfo:Boolean登录页面中文字提示(审批系统需要提示)
-
4、事件
loginHandle:Function登录获取用户的token等参数
三、日期范围选择
-
1、示意图
-
2、使用方式
<date-picker /> -
3、参数
format: String时间显示格式placeholder: String日期选择输入框的文字提示
-
4、事件
confirm-date:Function获取选择的时间
四、主页图例数据
-
1、使用方式
<maucash-value-count :valueCountArray="valueCountArray" @confirm-date="confirmDate" :title="'Key Statistics'" :format="'dd-MM-yyyy'"/> -
2、参数
valueCountArray: Array数据title: String标题format: String时间格式
-
3、事件
confirm-date: Function用户选择的时间
五、弹框组件
-
1、使用方式
<maucash-modal ref="modal" :modalForm="formTop" :rulesForm="rulesForm" @fetchData="fetchData"> <FormItem label="Name" prop="applyName"> <Input v-model="formTop.applyName" placeholder="Placeholder loan name" :maxlength="255"></Input> </FormItem> <FormItem label="Mobile" prop="mobile"> <Input v-model="formTop.mobile" placeholder="placeholder loan mobile" :maxlength="255"></Input> </FormItem> <FormItem label="NIK" prop="nik"> <Input v-model="formTop.nik" placeholder="placeholder nik" :maxlength="255"></Input> </FormItem> </maucash-modal> -
2、参数说明
modalType: String: 弹框类型(默认form,随便传入有别的值下面就会显示取消与确认按钮)title: String: 弹框标题modalForm: Object: 弹框内表单内容rulesForm?:Object: 规则modelWidth?:Number: 弹框宽度
-
3、事件
fetchData(): 点击确认/ok的按钮
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.5.4 | ^2.5.11 | MIT | |
| 1.5.3 | ^2.5.11 | MIT | |
| 1.5.2 | ^2.5.11 | MIT | |
| 1.5.1 | ^2.5.11 | MIT | |
| 1.4.1 | ^2.5.11 | MIT | |
| 1.4.0 | ^2.5.11 | MIT | |
| 1.3.8 | ^2.5.11 | MIT | |
| 1.3.7 | ^2.5.11 | MIT | |
| 1.3.6 | ^2.5.11 | MIT | |
| 1.3.5 | ^2.5.11 | MIT | |
| 1.3.4 | ^2.5.11 | MIT | |
| 1.3.3 | ^2.5.11 | MIT | |
| 1.3.2 | ^2.5.11 | MIT | |
| 1.3.0 | ^2.5.11 | MIT | |
| 1.2.9 | ^2.5.11 | MIT | |
| 1.2.8 | ^2.5.11 | MIT | |
| 1.2.7 | ^2.5.11 | MIT | |
| 1.2.6 | ^2.5.11 | MIT | |
| 1.2.5 | ^2.5.11 | MIT | |
| 1.2.4 | ^2.5.11 | MIT | |
| 1.2.3 | ^2.5.11 | MIT | |
| 1.2.2 | ^2.5.11 | MIT | |
| 1.2.1 | ^2.5.11 | MIT | |
| 1.2.0 | ^2.5.11 | MIT | |
| 1.1.9 | ^2.5.11 | MIT | |
| 1.1.8 | ^2.5.11 | MIT | |
| 1.1.7 | ^2.5.11 | MIT | |
| 1.1.6 | ^2.5.11 | MIT | |
| 1.1.5 | ^2.5.11 | MIT | |
| 1.1.4 | ^2.5.11 | MIT |
Showing the latest 30 of 44. See every release on npm