移步到[url]http://www.uniorder.com/2013/10/24/ext-js-4-x-%E5%9C%A8%E4%B8%8B%E6%8B%89%E6%A1%86%E4%B8%AD%E6%94%BE%E5%85%A5-tree/[/url]查看更新的内容
如果你的组件里面包括combobox,则需要设置collapseIf为空实现。下为效果图:
[img]http://dl.iteye.com/upload/attachment/0078/6179/1bd17e98-2e10-30fc-8085-de25a7b4c941.png[/img]
Ext.define("GB.view.AddressCombo", {
extend : "Ext.form.field.Picker",
alias : "widget.addressCombo",
createPicker : function() {
var me = this, p = Ext.create('GB.view.ProvinceContainer', {
hidden : true,
floating : true,
listeners : {
"accept" : function(str) {
me.setValue(str);
me.collapse();
},
"cancel" : function() {
me.collapse();
}
}
});
return p;
},
collapseIf : Ext.emptyFn
});
如果你的组件里面包括combobox,则需要设置collapseIf为空实现。下为效果图:
[img]http://dl.iteye.com/upload/attachment/0078/6179/1bd17e98-2e10-30fc-8085-de25a7b4c941.png[/img]