Mint-ui MessageBox.prompt配置
来源:互联网 发布:淘宝购物漏洞 编辑:程序博客网 时间:2024/06/07 20:57
Mint-ui 弹框配置
官方文档描述不清晰,复制粘贴效果不理想,最后看源码,找配置解决
MessageBox.prompt('请输入姓名').then(({ value, action }) => { ...});MessageBox.prompt(message, title);// 以上文档里只写了两个参数,明显不能满足需要,试了半天效果不理想,果断看源码// 以下源码// 重点来了,第三项才是配置参数,完美解决MessageBox.prompt = function(message, title, options) { if (typeof title === 'object') { options = title; title = ''; } return MessageBox(merge({ title: title, message: message, showCancelButton: true, showInput: true, $type: 'prompt' }, options));};// 测试代码MessageBox.prompt(' ', '测试', {inputPlaceholder: '测试文字'}).then(({ value, action }) => { console.log(value)})
2 0
- Mint-ui MessageBox.prompt配置
- Mint-ui MessageBox.confirm
- mint UI中messagebox弹框问题
- vue中配置mint-ui报css错误的问题
- vue2.0之Mint-UI配置填坑
- ExtJS中MessageBox.prompt禁止粘贴
- Vue搭配mint-ui
- vue引入Mint-UI
- vue mint-ui 使用手册
- MINT-UI+阿里ICONFONT应用
- vue2.0 mint-ui系列
- mint-ui swipe组件解析
- mint ui picker 设置初始值
- mint-ui 与 element-ui的区别
- Linux Mint配置
- Linux Mint输入法配置
- Linux Mint 配置Maven
- ExtJs--02--MessageBox相关弹窗alert,prompt,confirm使用
- 处理地址异常
- 【BZOJ 4584】【APIO 2016】赛艇
- Havel—Hakimi定理(度序列)
- 2017.5 期中考试 完挂
- 服务 -web服务器及ssh
- Mint-ui MessageBox.prompt配置
- POJ 1118 Lining Up 笔记
- xgboost在windows上的安装,用vs和cmake
- javaweb快速上手(一 开发环境配置)
- 行为型模式: 解释器模式
- C
- 【BZOJ 4887】【TJOI 2017】可乐
- 当我内心足够强大
- 在C#中怎么将label标签的背景设为透明