node版本:v12.16.2;v14.17.3;v16.13.1
使用formCreate组件生成器生成的时间组件,点击提交没反应
<form-create :option="option" :rule="rules" @on-submit="onSubmit" ></form-create>
<script>
import formCreate from "@form-create/iview";
export default {
components: {
formCreate: formCreate.$form()
},
data() {
return {
rules: [{
type: "timePicker",
field: "limited_time_login",
title: "限制时间",
props: {
"placeholder": "请选择限制时间",
"type": "timerange",
"format": "HH:mm",
}
}],
option: {
submitBtn: {
col: {
span: 3,
push: 3,
},
},
}
}
}
methods: {
// 提交表单 group
onSubmit(formData) {
console.log(123)
}
}
}
</script>
没有报错信息,就是点击按钮买油反应
把type:'timerange'改成type:'time'就能正常打印;
只要是时间段的都点击无效,尝试过改成日期,单个日期没问题,改成日期时间段就不行了
这几个node版本来回切换都一样出不来效果
点击按钮打印数据