0

Ext.grid.cell.Treecollapseexpand方法应该触发nodecollapsenodeexpand与被折叠/展开的 Ext.grid.Row

https://docs.sencha.com/extjs/7.3.1/modern/Ext.grid.Tree.html#event-nodecollapse

https://docs.sencha.com/extjs/7.3.1/modern/Ext.grid.Tree.html#event-nodeexpand

取而代之的是,我们得到一个空参数

4

1 回答 1

0

应该覆盖这两种方法并替换me.parentme.row

Ext.define('Override.grid.cell.Tree', {
  override: 'Ext.grid.cell.Tree',
  collapse: function() {
      var me = this;
      me.getGrid()
          .fireEventedAction('nodecollapse', [/*me.parent*/ me.row, me.getRecord(), 'collapse'], 'doToggle', me);
  },
  expand: function() {
      ...
      tree.fireEventedAction('nodeexpand', [/*me.parent*/ me.row, record, 'expand'], 'doToggle', me);
      ...
  }

相关支持问题:EXTJS-29424

于 2021-02-17T08:52:20.597 回答