更新记录
v1.1(2023-03-21) 下载此版本
插件路径名称更新
v1.0(2023-03-17) 下载此版本
初始版本
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | √ | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - | - | - | - | - |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
lxx-showModal
介绍
showModal模态框app端样式组件支持js的方式调用
使用方法
pages.json 添加代码
{
"path": "components/lxx-showModal/index",
"style": {
"navigationStyle": "custom",
"app-plus": {
"animationType": "fade-in",
"background": "transparent",
"backgroundColor": "rgba(0,0,0,0)",
"popGesture": "none"
}
}
}
main.js 添加代码
import showModal from '@/components/lxx-showModal/modal.js'
Vue.prototype.$showModal = showModal
页面调用方法
this.$showModal({
title: '温馨提示',
content: '确定删除吗?',
cancelText:'取消',
confirmText: '确认'
}).then(res =>{}).catch(err=>{})