![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
ml_try
这个作者很懒,什么都没留下…
展开
-
vue ElementUI表单使用rules校验中的validate
data(){//方法1:value - 是要验证的值,这种方法的好处是不仅可以获取到value,还可以获取到该vue页面中的其//他变量,如果验证需要结合其他变量,比如id。let isUniqueName = (rule, value, callback) =>{ getUniqueNameMethod(value).then(reponse => {//后台验证方法,根据返回的值进行判断 let isError = true; if(isEr.原创 2022-01-11 16:58:18 · 1434 阅读 · 0 评论 -
关于vue子组件调用父组件中的方法
vue中子组件调用父组件中的方法使用$emit//父组件<template> <div> <child @parentmethod="test"></child> </div></template><script> import child from "./child"; export default{ components:{原创 2022-01-11 16:42:37 · 233 阅读 · 0 评论 -
Error in v-on handler: “Error: please transfer a valid prop path to form item
vue 数组splise 元素渲染原创 2021-12-21 13:07:48 · 3886 阅读 · 0 评论