选择品类组件增加最小宽度

This commit is contained in:
linxd
2025-08-05 17:18:52 +08:00
parent e50909e9ac
commit affa3efe5e

View File

@ -165,7 +165,7 @@ const CategorySelector: React.FC<CategorySelectorProps> = ({
treeNodeFilterProp="title" treeNodeFilterProp="title"
multiple={multiple} multiple={multiple}
treeDefaultExpandAll={treeData.length < 30} // 当节点数较少时默认展开所有节点 treeDefaultExpandAll={treeData.length < 30} // 当节点数较少时默认展开所有节点
dropdownStyle={{ maxHeight: 400, overflow: 'auto', whiteSpace: 'nowrap', }} dropdownStyle={{ maxHeight: 400, overflow: 'auto', whiteSpace: 'nowrap',minWidth: 250 }}
treeCheckable={multiple} // 多选模式下显示复选框 treeCheckable={multiple} // 多选模式下显示复选框
showCheckedStrategy={SHOW_CHILD} // 显示策略:显示子节点 showCheckedStrategy={SHOW_CHILD} // 显示策略:显示子节点
filterTreeNode={(inputValue, node) => { filterTreeNode={(inputValue, node) => {