@szlx/custom-modal
v1.0.4
Published
> 主要处理问题统一确认按钮的位置在右边
Downloads
24
Readme
封装 uni.showModal
主要处理问题统一确认按钮的位置在右边
Installtion
npm i @szlx/custom-modalUsage
// main.js
import Vue from 'vue'
import CustomModal from '@szlx/custom-modal'
Vue.use(CustomModal)
// xxx.vue调用
this.$confirm({})
// js 中调用
import { showModal } from '@szlx/custom-modal'
showModal({})Install Options
| 参数名 | 说明 | 类型 | 必填 | 默认值 | | ------------------ | ---------------- | ------ | ----- | -------- | | name | 原型名称 | string | false | $confirm | | defaultTitle | 默认标题 | string | false | 提示 | | defaultConfirmText | 默认确认按钮问题 | string | false | 确认 | | defaultCancelText | 默认取消按钮问题 | string | false | 取消 |
showModal Custom Props
| 参数名 | 说明 | 类型 | 必填 | 默认值 | | -------- | -------- | -------- | ----- | ------ | | onOk | 确认回调 | function | false | - | | onCancel | 取消回调 | function | false | - |
