el-tree在ie9中dhisplay:flex失效

 

解决方式

<el-tree
        :data="data"
        :props="defaultProps"
        show-checkbox
        node-key="id"
        default-expand-all
        :expand-on-click-node="false"
        :render-content="renderContent"
      ></el-tree>
renderContent(h, { node, data, store }) {
      console.log(node.label);
      console.log(data);
      console.log(store);
      return (
        <div style="display:inline-block;">
          <span style="color:red;">{node.label}</span>
          <span style="color:green;">[1]</span>
        </div>
      );
    }

 


 

posted @ 2020-06-23 10:28  ThisCall  阅读(206)  评论(0编辑  收藏  举报