针对您提到的uni-popup-dialog组件在mode="input"时页面会自动弹出键盘的问题,我们可以从以下几个方面来分析和解决: 1. 确认uni-popup-dialog组件及mode="input"属性的功能 uni-popup-dialog是uni-app框架下的一个组件,用于弹出对话框。当设置mode="input"时,该组件会显示为一个输入框,并期望用户输入文本。根据...
1.uni-app中使用 uni-popup 和 uni-popup-dialog组件mode模式为input时,会自动把键盘弹出来,如图所示: 2.代码如下: <uni-popup type="dialog" ref="dialog"> <uni-popup-dialog mode="input" title="name" placeholder="请输入name" @confirm="handleNameConfirm"></uni-popup-dialog> </uni-popup> <sc...
dcloudio/uni-uiPublic NotificationsYou must be signed in to change notification settings Fork671 Star1.9k New issue bbf13opened this issueJul 7, 2020· 2 comments bbf13commentedJul 7, 2020 bbf13closed this ascompletedJul 14, 2020
if (this.mode === 'input') { this.dialogType = 'info' this.val = this.value // #ifdef VUE2 this.val = this.value; // #endif // #ifdef VUE3 this.val = this.modelValue; // #endif } else { this.dialogType = this.type } @@ -310,4 +315,4 @@ .uni-popup__info { col...
2 changes: 1 addition & 1 deletion 2 pages/vue/popup/popup.vue Original file line numberDiff line numberDiff line change @@ -76,7 +76,7 @@ <view> <!-- 输入框示例 --> <uni-popup ref="inputDialog" type="dialog"> <uni-popup-dialog ref="inputClose" :maxlength="10" mode="input...
<uni-popup-dialogref="inputClose":maxlength="10"mode="input"title="输入内容"value="对话框预置提示内容!" <uni-popup-dialogref="inputClose":maxlength="10"mode="input"title="输入内容"v-model="value" placeholder="请输入内容,限制10个字"@confirm="dialogInputConfirm"></uni-popup-dialog> ...