tree-select.scss 878 B

123456789101112131415161718192021222324252627282930313233343536
  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__item {
  20. flex: 1;
  21. background: transparent !important;
  22. // padding-left move to `el-tree-node__expand-icon`
  23. padding-left: 0;
  24. // fix: select height > tree node height
  25. // https://github.com/yujinpan/el-select-tree/pull/33
  26. height: 20px;
  27. line-height: 20px;
  28. }
  29. }
  30. }