Showing
1 changed file
with
16 additions
and
0 deletions
@@ -398,6 +398,22 @@ | @@ -398,6 +398,22 @@ | ||
398 | ); | 398 | ); |
399 | }); | 399 | }); |
400 | } | 400 | } |
401 | + /** | ||
402 | + * 只针对表格分页和组织列表分页的Tree(不是通过弹窗显示,默认是关闭的并且图标显示) | ||
403 | + * 如果是其他弹窗出来的Tree(会造成默认是关闭的并且图标显示),则在对应页面重写css样式即可 | ||
404 | + * <style scoped lang="less"> | ||
405 | + :deep(.vben-basic-tree) { | ||
406 | + width: 100% !important; | ||
407 | + } | ||
408 | + :deep(.is-unflod) { | ||
409 | + display: none !important; | ||
410 | + } | ||
411 | + :deep(.is-flod) { | ||
412 | + display: none !important; | ||
413 | + } | ||
414 | + </style> | ||
415 | + TODO下次优化通过传配置值来动态显示那些页面需要默认展开或收起 | ||
416 | + */ | ||
401 | return () => { | 417 | return () => { |
402 | const { title, helpMessage, toolbar, search, checkable } = props; | 418 | const { title, helpMessage, toolbar, search, checkable } = props; |
403 | const showTitle = title || toolbar || search || slots.headerTitle; | 419 | const showTitle = title || toolbar || search || slots.headerTitle; |