MCPcopy
hub / github.com/DevCloudFE/ng-devui / isResizable

Method isResizable

devui/splitter/splitter.service.ts:85–90  ·  view source on GitHub ↗
(splitBarIndex)

Source from the content-addressed store, hash-verified

83
84 // 判断pane是否可以调整大小,只要有一边设置了不可调整或者收起,相邻pane调整就失效
85 isResizable(splitBarIndex) {
86 const prevPane = this.getPane(splitBarIndex);
87 const nextPane = this.getPane(splitBarIndex + 1);
88 const paneCollapsed = prevPane.collapsed || nextPane.collapsed;
89 return prevPane.resizable && nextPane.resizable && !paneCollapsed;
90 }
91
92 // 判断分割条是否是固定的,只要有一边不能调整, 就是禁用状态固定bar
93 isStaticBar(splitBarIndex) {

Callers 1

ngOnInitMethod · 0.80

Calls 1

getPaneMethod · 0.95

Tested by

no test coverage detected