element-ui - $prompt非空验证

//点击删除按钮

delStoreFun(data) {

let than = this;

this.$prompt('删除门店请填写备注', '提示', {

confirmButtonText: '确定',

cancelButtonText: '取消',

inputValidator: (value) => { //非空验证

if (!value) {

return '输入不能为空'

}

},

}).then(({ value }) => {

delShop({ id: data.systemStore.id,reason:value}).then((res) => {

than.$message({

message: "操作成功",

type: 'success'

});

than.list();

})

})

},

相关推荐
风雨中的小七1 天前
解密Prompt系列70. 从 MLA 到 CSA,聊聊大模型 Attention 的“瘦身”与“闪送”
prompt
在路上走着走着16 天前
Prompt Engineering 入门指南:从原理到上手
人工智能·prompt
coft16 天前
Loop Engineering — 从“写 prompt“到“设计循环“,AI Agent 的下一次进化
人工智能·prompt
CoLiuRs16 天前
从 Prompt 到 Loop:AI 工程到底在卷什么
人工智能·prompt
AI 小老六16 天前
GEPA 架构拆解:让 Prompt 和 Skill 优化不靠玄学
数据库·人工智能·ai·架构·开源·prompt
凯丨16 天前
从写 Prompt 到Loop Engineering:AI 编程的下一次跃迁
prompt
奋飛16 天前
从 Prompt 到 Agent:LangChain 究竟解决了什么问题
ai·langchain·prompt·agent
沪漂阿龙17 天前
Context Engineering:比 Prompt Engineering 更重要的上下文工程
人工智能·langchain·prompt
猿人谷17 天前
从 Prompt Engineering 到 Loop Engineering:AI 编程正在进入“闭环工程”时代
大数据·人工智能·prompt
取个鸣字真的难17 天前
Image2 生成 PPT 的最后分水岭:Prompt
人工智能·prompt·powerpoint