dropdown-item.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. /** dropdown-item */
  29. .t-dropdown-item {
  30. position: fixed;
  31. right: 0;
  32. left: 0;
  33. top: 0;
  34. overflow: hidden;
  35. bottom: 0;
  36. /** 树形结构 */
  37. }
  38. .t-dropdown-item__content {
  39. display: flex;
  40. flex-direction: column;
  41. z-index: 11600;
  42. overflow: hidden;
  43. }
  44. .t-dropdown-item__popup-host {
  45. display: block;
  46. width: 100%;
  47. height: 100%;
  48. overflow: hidden;
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. }
  53. .t-dropdown-item__body {
  54. flex: 1;
  55. background: var(--td-dropdown-menu-bg-color, var(--td-bg-color-block, #fff));
  56. overflow: auto;
  57. max-height: var(--td-dropdown-body-max-height, 560rpx);
  58. }
  59. .t-dropdown-item__body--tree {
  60. display: flex;
  61. overflow: hidden;
  62. }
  63. .t-dropdown-item__body--multi {
  64. padding-top: var(--td-spacer, 16rpx);
  65. padding-bottom: var(--td-spacer, 16rpx);
  66. overflow-y: auto;
  67. }
  68. .t-dropdown-item__footer {
  69. display: flex;
  70. background: var(--td-dropdown-menu-bg-color, var(--td-bg-color-block, #fff));
  71. position: relative;
  72. padding: 32rpx;
  73. }
  74. .t-dropdown-item__footer::before {
  75. z-index: 1;
  76. position: absolute;
  77. box-sizing: border-box;
  78. content: ' ';
  79. pointer-events: none;
  80. right: 0;
  81. left: 0;
  82. top: 0;
  83. border-top: 1px solid var(--td-border-level-1-color, #e6e6e6);
  84. transform: scaleY(0.5);
  85. }
  86. .t-dropdown-item__footer-btn {
  87. flex: 1;
  88. }
  89. .t-dropdown-item__footer-btn + .t-dropdown-item__footer-btn {
  90. margin-left: 32rpx;
  91. }
  92. .t-dropdown-item__radio,
  93. .t-dropdown-item__checkbox {
  94. width: 100%;
  95. overflow: scroll;
  96. }
  97. .t-dropdown-item__checkbox-group {
  98. display: grid;
  99. padding: 32rpx;
  100. grid-gap: 24rpx;
  101. }
  102. .t-dropdown-item__tree-item {
  103. height: var(--td-tree-item-height, 96rpx);
  104. line-height: var(--td-tree-item-height, 96rpx);
  105. font-size: var(--td-tree-item-font-size, 32rpx);
  106. padding-left: 32rpx;
  107. }
  108. .t-dropdown-item__tree-item--active {
  109. color: var(--td-tree-item-active-color, var(--td-primary-color, #0052d9));
  110. }