提交 cec768a3 编写于 作者: Shine-zwj's avatar Shine-zwj

优化导航类部件工具栏状态逻辑

上级 76c8bc2a
...@@ -81,9 +81,6 @@ export default class CalendarExpViewEngine extends ViewEngine { ...@@ -81,9 +81,6 @@ export default class CalendarExpViewEngine extends ViewEngine {
this.view.$emit('viewload', args); this.view.$emit('viewload', args);
} }
if (Object.is(eventName, 'selectionchange')) { if (Object.is(eventName, 'selectionchange')) {
if(this.calendarExpBar && this.calendarExpBar.calcNavigationToolbarState && this.calendarExpBar.calcNavigationToolbarState instanceof Function){
this.calendarExpBar.calcNavigationToolbarState();
}
this.view.$emit('viewdataschange', args); this.view.$emit('viewdataschange', args);
} }
if (Object.is(eventName, 'activated')) { if (Object.is(eventName, 'activated')) {
......
...@@ -78,9 +78,6 @@ export default class DataViewExpViewEngine extends ViewEngine { ...@@ -78,9 +78,6 @@ export default class DataViewExpViewEngine extends ViewEngine {
*/ */
public dataviewExpBarEvent(eventName: string, args: any): void { public dataviewExpBarEvent(eventName: string, args: any): void {
if (Object.is(eventName, 'load')) { if (Object.is(eventName, 'load')) {
if(this.dataviewExpBar && this.dataviewExpBar.calcNavigationToolbarState && this.dataviewExpBar.calcNavigationToolbarState instanceof Function){
this.dataviewExpBar.calcNavigationToolbarState();
}
this.view.$emit('viewload', args); this.view.$emit('viewload', args);
} }
if (Object.is(eventName, 'selectionchange')) { if (Object.is(eventName, 'selectionchange')) {
......
...@@ -78,9 +78,6 @@ export default class GridExpViewEngine extends ViewEngine { ...@@ -78,9 +78,6 @@ export default class GridExpViewEngine extends ViewEngine {
*/ */
public gridExpBarEvent(eventName: string, args: any): void { public gridExpBarEvent(eventName: string, args: any): void {
if (Object.is(eventName, 'load')) { if (Object.is(eventName, 'load')) {
if(this.gridExpBar && this.gridExpBar.calcNavigationToolbarState && this.gridExpBar.calcNavigationToolbarState instanceof Function){
this.gridExpBar.calcNavigationToolbarState();
}
this.view.$emit('viewload', args); this.view.$emit('viewload', args);
} }
if (Object.is(eventName, 'selectionchange')) { if (Object.is(eventName, 'selectionchange')) {
......
...@@ -79,9 +79,6 @@ export default class TreeExpView extends ViewEngine { ...@@ -79,9 +79,6 @@ export default class TreeExpView extends ViewEngine {
*/ */
public treeExpBarEvent(eventName: string, args: any): void { public treeExpBarEvent(eventName: string, args: any): void {
if (Object.is(eventName, 'load')) { if (Object.is(eventName, 'load')) {
if(this.treeExpBar && this.treeExpBar.calcNavigationToolbarState && this.treeExpBar.calcNavigationToolbarState instanceof Function){
this.treeExpBar.calcNavigationToolbarState();
}
this.view.$emit('viewload', args); this.view.$emit('viewload', args);
} }
if (Object.is(eventName, 'selectionchange')) { if (Object.is(eventName, 'selectionchange')) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册