expandIcon: function (props) {
        let icon = 'ant-design:plus-square-outlined';
        if (props.expanded) {
          icon = 'ant-design:minus-square-outlined';
        } else {
          icon = 'ant-design:plus-square-outlined';
        }
        return h(Icon, {
          icon: icon,
          onClick: function (e) {
            props.onExpand(props.record, e);
          },
          style: {
            fontSize: '22px',
            verticalAlign: 'middle',
            cursor: 'pointer',
            margin: '0 10px 3px 0',
          },
        });
      },

 

 

Logo

前往低代码交流专区

更多推荐