文档中有单选按钮切换报表块,实现类似TAB切屏的效果.但我某个子屏中有tab,然后我就想结合隐藏tab页的js来实现。 按钮选不为1的选项时,确实可以隐藏,但是再按回1的时候,没有反应,并不会重新显示出来…这个有办法解决吗?或者有别的移动端子页的方案,可以支持其中一个子页的组件有tab的情况? test.zip 模板。 单选按钮 状态改变事件,加了else也不行 if (this.value !== 1) { // 设置所有选项卡不可见 this.options.form.getWidgetByName("tabpane0").setTabVisible("tab1", false); this.options.form.getWidgetByName("tabpane0").setTabVisible("tab2", false); this.options.form.getWidgetByName("tabpane0").setTabVisible("tab3", false); this.options.form.getWidgetByName("tabpane0").setTabVisible("tab4", false); this.options.form.getWidgetByName("tabpane0").setTabVisible("tab5", false); } else{ // 设置所有选项卡可见 this.options.form.getWidgetByName("tabpane0").setTabVisible("tab1", true); this.options.form.getWidgetByName("tabpane0").setTabVisible("tab2", true); this.options.form.getWidgetByName("tabpane0").setTabVisible("tab3", true); this.options.form.getWidgetByName("tabpane0").setTabVisible("tab4", true); this.options.form.getWidgetByName("tabpane0").setTabVisible("tab5", true); } |