tree-select.scss 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @use 'mixins/mixins' as *;
  2. @use 'mixins/var' as *;
  3. @use 'common/var' as *;
  4. @include b(tree-select) {
  5. @include set-component-css-var('tree', $tree);
  6. }
  7. @include b(tree-select) {
  8. @include e(popper) {
  9. // padding-left same with select option
  10. .#{$namespace}-tree-node__expand-icon {
  11. margin-left: 8px;
  12. }
  13. // remove icon when show checkbox
  14. .#{$namespace}-tree-node.is-checked
  15. > .#{$namespace}-tree-node__content
  16. .#{$namespace}-select-dropdown__item.selected::after {
  17. content: none;
  18. }
  19. .#{$namespace}-select-dropdown__list
  20. > .#{$namespace}-select-dropdown__item {
  21. padding-left: 32px;
  22. }
  23. .#{$namespace}-select-dropdown__item {
  24. flex: 1;
  25. background: transparent !important;
  26. // padding-left move to `el-tree-node__expand-icon`
  27. padding-left: 0;
  28. // fix: select height > tree node height
  29. // https://github.com/yujinpan/el-select-tree/pull/33
  30. height: 20px;
  31. line-height: 20px;
  32. }
  33. }
  34. }