<template> <view> <button @click="openDialog">打开对话框</button> <uni-popup ref="popup" type="dialog"> <uni-popup-dialog title="输入内容" mode="input" :before-close="true" @close="handleClose" @confirm="handleConfirm" > <view> &...
beforeClose: { type: Boolean, default: false }, cancelText:{ type: String, default: '' }, confirmText:{ type: String, default: '' }, cancelText:{ type: String, default: '' }, confirmText:{ type: String, default: '' } }, data() { @@ -171,11 +175,6 @@ </script> <styl...
* @property {Boolean} beforeClose 是否拦截取消事件 * @property {Number} maxlength 输入 * @event {Function} confirm 点击确认按钮触发 * @event {Function} close 点击取消按钮触发 @@ -61,7 +61,7 @@ export default { name: "uniPopupDialog", mixins: [popup], emits: ['confirm', 'close']...
beforeClose: { type: Boolean, default: false }, cancelText:{ type: String, default: '' }, confirmText:{ type: String, default: '' }, cancelText:{ type: String, default: '' }, confirmText:{ type: String, default: '' } }, data() { @@ -171,11 +175,6 @@ </script> <styl...
* @property {Boolean} beforeClose 是否拦截取消事件 * @property {Number} maxlength 输入 * @event {Function} confirm 点击确认按钮触发 * @event {Function} close 点击取消按钮触发 Expand All@@ -61,7 +61,7 @@ exportdefault{ name:"uniPopupDialog", ...