{ validator: validatePass, trigger: 'blur' }:使用名为validatePass的自定义验证函数,触发条件是在输入框失去焦点时触发(blur)。 2.在form组件中绑定rules表单验证规则,并在el-form-item表单中的一个表单项中绑定prop:将表单项与表单数据模型中的属性关联起来进行验证 <el-form :model="userForm" :rules="rule...
import router from '../../router'; import {ElMessage} from 'element-plus'; export default { setup() { const route = useRoute(); const datadialog = ref(false) // 新增弹窗 const upload = ref(""); //上传 const ruleFormRef = ref(null); //表单 let formSize = 'default'; let ru...
/* layui.use(['layer', 'form','element'], function () { var layer = layui.layer, $ = layui.jquery, form = layui.form(),element = layui.element(); form.on('submit(distri)', function (data) { window.opener.setCodes(selectAll()); return false; }); }) */ //window.open...
import router from '../../router'; import {ElMessage} from 'element-plus'; export default { setup() { const route = useRoute(); const datadialog = ref(false) // 新增弹窗 const upload = ref(""); //上传 const ruleFormRef = ref(null); //表单 let formSize = 'default'; let ru...
import {ElMessage} from 'element-plus'; export default { setup() { const route = useRoute(); const datadialog = ref(false) // 新增弹窗 const upload = ref(""); //上传 const ruleFormRef = ref(null); //表单 let formSize = 'default'; ...