uni.showModal 设置默认输入内容的时候 h5可以, app 变成了提示,详见附件图片
能不能 加个默认内容参数啊
//重命名、创建文件夹
tipInputBox(type,name){ ///type 0,重命名; 1,创建文件夹
uni.showModal({
title: type ? '新建文件夹' : '重命名',
editable:true,
placeholderText:type ? '' : (name ? name : ''),
content:type ? '' : (name ? name : ''),
confirmColor:publicStyleObj.uniThemeColor,
success: function(res) {
if (res.confirm) {
if(!res.content){
type ? _this.$showToast('文件夹名称不能为空') : _this.$showToast('文件名不能为空')
return
}else{
if(type){//创建文件夹
_this.config.c_dir_par.name = res.content
_this.createDir()
}else{//重命名
_this.config.r_dir_par.name = res.content
_this.fileRename()
}
}
console.log('用户点击确定',res);
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
},
Junan_
谢谢
2024-08-08 14:21
9***@qq.com
输入框也是没有默认内容,content在app端也是空
2025-02-13 16:50