问题:antd中使用带多选框的treeSelect组件时,点击小三角打开child,因为小三角的icon有点小,product端改为点击parent即可扩大孩子。图例:解决方案:.ant-select-tree-switcher{position:relative;}.ant-select-tree-switcher_open::before,.ant-select-tree-switcher_close::before{content:'';位置:绝对;右:-200px;顶部:0;左:0;bottom:0;}原理:通过增加小三角图标parent的宽度,其实就是点击小三角打开的child;如何增加宽度?其实就是通过插入一个元素,然后这个元素通过定位增加宽度。
