{
xtype: "radiogroup",
fieldLabel: "分类",
columns: 8,
items: [{
boxLabel: "全部",
name: "launchType",
inputValue: "0"
}, {
boxLabel: "服饰",
name: "launchType",
inputValue: "1"
}, {
boxLabel: "鞋子",
name: "launchType",
inputValue: "2"
}, {
boxLabel: "包包",
name: "launchType",
inputValue: "3"
}]
}自己定义的这么一个radiogroup,结果始终点不动,也不报错,网上查了下,说是3.3有这个bug,inputValue为0会导致点不动,自己重写了下,版本3.3.1:
Ext.form.Radio.prototype.initComponent =
Ext.form.Radio.prototype.initComponent.createInterceptor(function() {
if ( this.inputValue === '0' ) {
this.inputValue = 0;
}
});
本文介绍了一个关于ExtJS框架中Radio Group控件的问题,当inputValue设置为0时,控件无法正常工作。文章提供了针对ExtJS 3.3.1版本的解决方案,通过重写Radio原型的方法来解决此问题。

被折叠的 条评论
为什么被折叠?



