xuannan 发表于 2021-8-3 14:23:11

Calendar日历组件的change事件触发不到,也无法禁用

var month = this.form.get("month").node.getFirst() || this.form.get("month").node;
month.addEvent("change", function(ev){
console.log('Calendar')
})
无法触发,改成
this.form.get("month").node.onchange = function(){...}
this.form.get("month").node.firstChild = function(){...}
依然无效
而且用this.form.get("month").node.firstChild.disabled = true; 也无法禁用它,还是能修改第一次

论坛管理员 发表于 2021-8-4 13:33:27

您好:我们测试过,表单中的日历控件change是有效的。
请写在事件中
https://www.o2oa.net:443/x_file_assemble_control/jaxrs/file/7bc40f69-0230-49e6-b31d-dcd469db68e9/download/stream

xuannan 发表于 2021-8-5 18:17:17

就是不想写在组件的事件里面呀,维护脚本到处找

论坛管理员 发表于 2021-8-6 10:41:10

您好:如果你要自己写,请参考
https://blog.csdn.net/qq_36412715/article/details/103610825
页: [1]
查看完整版本: Calendar日历组件的change事件触发不到,也无法禁用